[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECY6PJH4RD7VB8JD00AMHR":3,"skill-same:01M7ECY6PJH4RD7VB8JD00AMHR":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7ECY6PJH4RD7VB8JD00AMHR","bio-ecological-genomics-conservation-genetics",null,"Assesses genetic health of populations for conservation with Ne estimation across time horizons (LDNe NeEstimator V2 option-file API + SNeP physical-linkage correction; recent trajectory via GONE\u002FGONE2; deep history via Stairway Plot 2 \u002F dadi \u002F fastsimcoal2 \u002F PSMC), F-statistics, runs of homozygosity binned by length class to date inbreeding, genetic-load decomposition (Bertorelle 2022 realized vs masked), the modern 100\u002F1000 Ne rule (Frankham 2014), Ne\u002FNc 2-6 orders of magnitude in marine fish (Hauser & Carvalho 2008), tree-sequence forward simulations (SLiM 4 + pyslim + tskit), and the Sukumaran-Knowles caveat against MSC methods for management-unit definition. Use when estimating Ne by time horizon, detecting inbreeding via F_ROH, decomposing genetic load, justifying conservation thresholds, distinguishing ESU\u002FMU\u002FDPS, configuring NeEstimator V2, or correcting LDNe physical linkage.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-ecological-genomics-conservation-genetics\ndescription: Assesses genetic health of populations for conservation with Ne estimation across time horizons (LDNe NeEstimator V2 option-file API + SNeP physical-linkage correction; recent trajectory via GONE\u002FGONE2; deep history via Stairway Plot 2 \u002F dadi \u002F fastsimcoal2 \u002F PSMC), F-statistics, runs of homozygosity binned by length class to date inbreeding, genetic-load decomposition (Bertorelle 2022 realized vs masked), the modern 100\u002F1000 Ne rule (Frankham 2014), Ne\u002FNc 2-6 orders of magnitude in marine fish (Hauser & Carvalho 2008), tree-sequence forward simulations (SLiM 4 + pyslim + tskit), and the Sukumaran-Knowles caveat against MSC methods for management-unit definition. Use when estimating Ne by time horizon, detecting inbreeding via F_ROH, decomposing genetic load, justifying conservation thresholds, distinguishing ESU\u002FMU\u002FDPS, configuring NeEstimator V2, or correcting LDNe physical linkage.\ntool_type: mixed\nprimary_tool: hierfstat\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"ecological-genomics\u002Fconservation-genetics\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: hierfstat 0.5+, adegenet 2.1+, detectRUNS 2.0+, poppr 2.9+, NeEstimator V2.1+, GONE2, SNeP 1.1+, SLiM 4+, msprime 1.3+, bcftools 1.19+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Conservation Genetics\n\n**\"Assess the genetic health of my endangered population\"** -> Estimate Ne by time horizon (contemporary LD, recent trajectory, deep demographic history), measure inbreeding via F_ROH with length-class thresholds, decompose realized vs masked genetic load, and interpret against the modern 100\u002F1000 Ne rule.\n- R: `hierfstat::basic.stats()` for F-statistics and diversity\n- R: `detectRUNS::consecutiveRUNS.run()` or `bcftools roh -G30` for ROH detection\n- CLI: `Ne2.exe option_file.ne2` for NeEstimator V2 contemporary Ne (option-file driven, NOT CLI flags)\n- CLI: `gone2` for recent Ne trajectory from genome-wide LD (requires populated cM map)\n\n## The Single Most Important Modern Insight -- There is No Single Best Ne Estimator\n\nThe most common methodological failure in conservation genetics is treating \"Ne\" as one quantity. **It is not.** Each Ne estimator captures a different time horizon with different biases:\n- **LD-based (NeEstimator V2, Waples 2006)**: Last 1-few generations; biased downward at small N\n- **GONE \u002F GONE2 (Santiago 2020)**: Recent 100-200 generations trajectory; requires populated cM genetic map\n- **Heterozygote-excess**: Last 1 generation only; very low power\n- **Temporal (Jorde-Ryman)**: Between two time-sampled cohorts\n- **Stairway Plot 2 \u002F dadi \u002F fastsimcoal2**: 10^3 to 10^5 generations from SFS\n- **PSMC**: 10^4 to 10^6 generations from single high-coverage genome\n\nA second cornerstone: **Ne\u002FNc ratio is NOT 0.1 universally.** Frankham 1995 reported a median of 0.1 in vertebrates, but Hauser & Carvalho 2008 *Fish Fish* 9:333-362 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (i.e., 10^-2 to 10^-6) in marine fish with sex-biased and sweepstakes-recruitment reproduction. Conservation papers that assume Ne\u002FNc = 0.1 are wrong for many taxa.\n\nA third: **the 50\u002F500 rule was revised to 100\u002F1000** by Frankham et al. 2014 *Biol Conserv* 170:56-63. The 50\u002F500 numbers came from 1980 and underestimate the Ne needed for adaptive maintenance. The modern thresholds are Ne >= 100 for short-term inbreeding-fitness protection and Ne >= 1000 for long-term adaptive potential.\n\n## Algorithmic Taxonomy\n\n| Method | Time horizon | Strength | Bias mode |\n|--------|--------------|----------|-----------|\n| LDNe (NeEstimator V2 LD method) | Last 1-few generations | Single sample; SNP-friendly | Biased downward at small N; sensitive to physical linkage |\n| SNeP (LD with physical-linkage correction) | Last 1-few generations | Corrects LDNe for chromosomal linkage in genomic data | Requires phased genotypes |\n| GONE \u002F GONE2 | Recent 100-200 generations | Detects bottleneck\u002Fexpansion trajectory | Requires populated cM genetic map column (NOT physical position) |\n| Heterozygote-excess | Last 1 generation | Detects recent bottleneck | Very low power; requires high heterozygosity |\n| Temporal (Jorde-Ryman, Pollak) | Between two cohorts | Direct drift estimate | Requires temporal samples |\n| Sibship (Wang COLONY) | Current generation | Pedigree-based from kinship | Computationally expensive |\n| dadi (Gutenkunst 2009) | 10^3 - 10^5 generations | Diffusion SFS-based; analytical | Local-optima trap; \u003C=3 populations practical |\n| fastsimcoal2 (Excoffier 2013) | 10^3 - 10^5 generations | Simulation-based composite-likelihood | Optimization needs >= 50 replicates |\n| moments (Jouganous 2017) | 10^3 - 10^5 generations | Moment-based ODE; faster than dadi | Same dimensionality limits |\n| momi2 (Kamm 2020) | 10^3 - 10^5 generations | Analytical SFS via moments | Stiff at very recent times |\n| Stairway Plot 2 | 10^3 - 10^5 generations | Folded SFS; no parametric model | Requires explicit mutation rate and generation time |\n| PSMC | 10^4 - 10^6 generations | Whole-genome pairwise coalescent | Requires >= 20x WGS coverage |\n| MSMC2 | Multi-individual deep coalescent | Better recent resolution than PSMC | Requires phased data; computational |\n| msprime (Kelleher 2016) | Simulation (not inference) | Gold-standard neutral simulator | Used to generate data under a fitted model |\n| SLiM 3\u002F4 (Haller & Messer 2019) | Forward simulation | Non-WF, age structure, spatial | Eidos scripting; tree-sequence recording essential for speed |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended approach | Why |\n|----------|---------------------|-----|\n| Contemporary Ne from a single SNP sample | NeEstimator V2 LD method with Pcrit = 0.02 | Standard; widely accepted by conservation reviewers |\n| LDNe applied to RAD-seq \u002F WGS | Use SNeP (Barbato 2015) OR thin SNPs to >= 1 cM apart | LDNe assumes inter-locus r^2 reflects demography only; physical linkage inflates it |\n| Recent Ne trajectory (bottleneck detection) | GONE2 with populated cM genetic-map column | GONE2 fails silently if cM column is zero (PLINK default uses physical position) |\n| Deep demographic history (mammal\u002Fvertebrate) | PSMC with >= 20x WGS or Stairway Plot 2 from SFS | PSMC requires high coverage; Stairway Plot 2 needs only the SFS |\n| Multi-population demographic inference | dadi \u002F fastsimcoal2 with >= 50 independent optimization replicates | Likelihood surfaces have local optima; single-replicate inference is unreliable |\n| Inbreeding from genomic data | F_ROH with length-class thresholds (bcftools roh OR detectRUNS) | F_IS is genome-averaged; F_ROH partitions inbreeding by time |\n| Genetic-load assessment | Decompose realized vs masked via Bertorelle 2022 framework | Single \"load\" estimate hides the dynamics |\n| Define management unit (MU) or ESU | Moritz 1994 reciprocal monophyly + nuclear divergence | Do NOT use BPP\u002FBFD* species-delimitation methods (Sukumaran-Knowles 2017 oversplitting) |\n| Forward simulation of selection + demography | SLiM 4 with tree-sequence recording + pyslim\u002Ftskit | Tree-sequence recording is 5-100x faster than mutation tracking |\n| Comparing Ne across species | Cite Ne\u002FNc taxonomic variation (Hauser & Carvalho 2008) | The Ne\u002FNc = 0.1 default is wrong for many taxa |\n| Genetic rescue decision | Frankham 2015 meta-analysis; usually favors rescue | Outbreeding-depression fear is overstated for most cases |\n\n## Genetic Diversity and F-Statistics\n\n**Goal:** Compute standard population-genetic metrics with Weir-Cockerham estimators and bootstrap confidence intervals.\n\n**Approach:** Convert VCF to genind via adegenet, then to hierfstat format. Run `basic.stats` for Fis\u002FFst\u002FHo\u002FHe and `pairwise.WCfst` with bootstrapping for population differentiation.\n\n```r\nlibrary(hierfstat)\nlibrary(adegenet)\nlibrary(poppr)\n\n# VCF\u002Fgenepop\u002FPLINK -> genind via adegenet\ndata_genind \u003C- read.genepop('populations.gen')\ndata_hf \u003C- genind2hierfstat(data_genind)\n\n# F-statistics with Weir-Cockerham estimators\nbstats \u003C- basic.stats(data_hf)\ncat('Overall Fis:', bstats$overall['Fis'], '\\n')\ncat('Overall Fst:', bstats$overall['Fst'], '\\n')\n\n# Pairwise FST with bootstrap CIs\npw_fst \u003C- pairwise.WCfst(data_hf)\nboot_fst \u003C- boot.ppfst(data_hf, nboot = 1000)\n\n# Rarefied allelic richness (corrects for unequal sample sizes)\nar \u003C- allelic.richness(data_hf)\n\n# Private alleles unique to each population\npa \u003C- private_alleles(data_genind, count.alleles = TRUE)\n```\n\n## Runs of Homozygosity with Length-Class Dating\n\n**Goal:** Detect autozygous segments and date the inbreeding events by ROH length class.\n\n**Approach:** Use `bcftools roh -G30` (HMM-based, density-independent) for VCF input OR `detectRUNS::consecutiveRUNS.run()` for PLINK. Bin ROH by length to date inbreeding events: > 16 Mb means parents\u002Fgrandparents; 4-16 Mb means ~5 generations; 1-4 Mb means ~10-20 generations; \u003C 1 Mb is deep background.\n\n```r\nlibrary(detectRUNS)\n\n# detectRUNS: SNP-by-SNP scanning from PLINK files\nruns \u003C- consecutiveRUNS.run(\n    genotypeFile = 'genotypes.ped',\n    mapFile = 'genotypes.map',\n    minSNP = 20,        # Minimum SNPs per run; prevents short-stretch false positives\n    minLengthBps = 1e6, # 1 Mb minimum; shorter ROH usually not IBD-derived\n    maxGap = 1e6,\n    maxOppRun = 1,\n    maxMissRun = 2\n)\n\n# F_ROH per individual = sum(ROH length) \u002F autosomal genome length\n# > 16 Mb ROH: parents\u002Fgrandparents inbreeding (very recent)\n# 4-16 Mb: ~5 generations back\n# 1-4 Mb: ~10-20 generations (historical bottleneck)\n# \u003C 1 Mb: deep background, ancient homozygosity\nfroh \u003C- Froh_inbreeding(runs, mapFile = 'genotypes.map', genome_wide = TRUE)\n\n# Bin ROH by length to estimate inbreeding timing\nruns_summary \u003C- summaryRuns(runs, genotypeFile = 'genotypes.ped',\n                            mapFile = 'genotypes.map')\nplot_DistributionRuns(runs)\n```\n\n```bash\n# Alternative: bcftools roh with HMM (density-independent; better for low-density data)\n# -G30: per-sample genotype likelihood threshold (30 = high-quality calls)\n# --AF-tag AF: use AF tag from VCF for allele frequencies (else --AF-file)\nbcftools roh -G30 --AF-tag AF -o roh_results.txt input.vcf.gz\n```\n\n## NeEstimator V2 — Option-File API\n\n**Goal:** Estimate contemporary Ne via LD method from a single sample (Do et al. 2014 *Mol Ecol Resour* 14:209-214).\n\n**Approach:** NeEstimator V2 is option-file driven, NOT CLI-flag driven. Create a `.ne2` text option file specifying input format, methods (LD\u002FHetExcess\u002FCoancestry\u002FTemporal), Pcrit thresholds, and output. Run with `Ne2.exe option_file.ne2`.\n\n```text\n# Example NeEstimator V2 option file (option_file.ne2)\n# Line order matters; defaults can cause silent failures\n# See NeEstimator V2 documentation: https:\u002F\u002Fgithub.com\u002Fbunop\u002FNeEstimator2.X\n\n# Input format\n1 0                                   # 1=GenePop, 2=FSTAT; second value reserved\ninput_genotypes.gen\n\n# Methods (1 = run; 0 = skip)\n1 0 0 0                               # LD only; others (HetExcess, Coancestry, Temporal) off\n\n# Pcrit cutoffs (allele frequencies below threshold excluded)\n3                                     # number of Pcrit values\n0.05 0.02 0.01                        # 0.02 is standard; 0.05 conservative; 0.01 sensitive\n\n# Mating system: 0 = random mating; 1 = monogamy\n0\n\n# Output\noutput_results.txt\n```\n\n```bash\n# Run NeEstimator V2 (Java-based)\njava -jar NeEstimator.jar option_file.ne2\n# Verify INFO output line: confirms which methods ran and which were skipped\n\n# Common failure: \"Ne = infinity\" reported\n# Diagnosis: insufficient drift signal (population larger than method can detect)\n# Try multiple Pcrit; with genomic data add SNeP physical-linkage correction\n```\n\n## GONE2 — Recent Ne Trajectory with the cM-Column Trap\n\n**Goal:** Estimate the Ne trajectory over the last ~100-200 generations from genome-wide LD across recombination rates.\n\n**Approach:** GONE2 requires a genetic map with POPULATED cM positions (not just physical position). PLINK MAP files default to cM=0; if this is not corrected, GONE2 will silently produce nonsense. Verify the cM column is populated from a genetic-map file or use Hi-C-derived recombination map.\n\n```bash\n# GONE2 input: PLINK BED\u002FBIM\u002FFAM or VCF + populated MAP\n# CRITICAL: BIM\u002FMAP cM column must be populated; default cM=0 produces silent failure\n\n# Check cM column populated\nhead genotypes.bim   # column 3 should NOT be all zeros\n\n# Run GONE2\n# -t 4: threads\n# -u 0.05: upper recombination rate bound (exclude pairs with r > 0.05)\n# Smaller -u focuses on more recent generations\n.\u002Fgone2 -t 4 -u 0.05 genotypes.vcf\n\n# Output: OUTPUT_GONE2 with generation, Ne, CI_low, CI_high\n```\n\n```r\n# Parse GONE2 output and plot Ne trajectory\ngone_out \u003C- read.table('OUTPUT_GONE2', header = TRUE, sep = '\\t')\n\npdf('gone2_ne_trajectory.pdf', width = 8, height = 5)\nplot(gone_out$generation, gone_out$Ne,\n     type = 'l', lwd = 2, col = 'blue',\n     xlab = 'Generations ago', ylab = 'Effective population size (Ne)',\n     main = 'Recent Ne Trajectory (GONE2)', log = 'y')\npolygon(c(gone_out$generation, rev(gone_out$generation)),\n        c(gone_out$CI_low, rev(gone_out$CI_high)),\n        col = adjustcolor('blue', alpha = 0.2), border = NA)\ndev.off()\n```\n\n## SNeP — Physical-Linkage-Corrected LDNe for Genomic Data\n\n**Goal:** Apply physical-linkage correction to LDNe when SNPs come from RAD-seq or WGS (where inter-locus r^2 reflects chromosomal linkage, not just demography).\n\n**Approach:** SNeP (Barbato 2015 *Front Genet* 6:109) implements Waples & Do's physical-linkage correction. Use when SNPs are not pre-thinned to >= 1 cM apart.\n\n```bash\n# SNeP input: PLINK PED\u002FMAP or VCF + map file\n# Multi-threaded; supports several corrections (sample size, mutation, phasing, recombination)\n.\u002FSNeP1.1 -ped genotypes.ped -map genotypes.map -threads 4 \\\n          -mutationrate 1.4e-8 -out snep_results.txt\n\n# Output: Ne estimates per recombination-rate bin\n```\n\n## Deep Demographic History\n\n**Goal:** Reconstruct Ne trajectory over thousands of generations from genome-wide variation.\n\n**Approach:** Pick the appropriate tool by data type. PSMC for a single high-coverage diploid genome. Stairway Plot 2 for SFS from population samples. dadi or fastsimcoal2 for multi-population history with composite likelihood.\n\n```bash\n# --- PSMC: single high-coverage WGS (>= 20x) ---\nbcftools mpileup -C50 -Q 30 -q 30 -f reference.fa sample.bam | \\\n    bcftools call -c | vcfutils.pl vcf2fq -d 10 -D 100 > consensus.fq\nfq2psmcfa -q20 consensus.fq > consensus.psmcfa\npsmc -N25 -t15 -r5 -p '4+25*2+4+6' -o sample.psmc consensus.psmcfa\npsmc_plot.pl -u 1.4e-8 -g 5 -p sample_psmc_plot sample.psmc\n\n# --- Stairway Plot 2: SFS-based (works with RAD-seq or WGS) ---\n# Build SFS from VCF (use easySFS or vcf2sfs)\n# Create blueprint.txt specifying nseq, L, mu, generation time\njava -cp stairway_plot_v2.jar Stairbuilder blueprint.txt\nbash blueprint.sh\n\n# --- fastsimcoal2: multi-population composite-likelihood SFS ---\n# REQUIRES >= 50 independent optimization replicates; single-run is unreliable\nfor i in {1..50}; do\n    fsc27 -t template.tpl -e template.est -m -L 50 -n 100000 -q\ndone\n# Compare likelihoods across replicates; report best AND distribution\n```\n\n## Genetic Load — Realized vs Masked Decomposition\n\n**Goal:** Decompose total genetic load into realized (currently expressed) and masked (heterozygous, potential) components per Bertorelle 2022 framework.\n\n**Approach:** Use SnpEff\u002FVEP to annotate variants for predicted functional effect. Compute realized load from homozygous-derived-allele counts at deleterious positions; compute masked load from heterozygous counts. Hedrick & Garcia-Dorado 2016 distinguish purging vs drift dynamics; report both.\n\n```r\n# Conceptual workflow (Bertorelle et al. 2022 NRG 23:492-503)\n# Realized load: count_homozygous_deleterious \u002F total_deleterious_sites\n# Masked load: count_heterozygous_deleterious \u002F total_deleterious_sites\n# Total load = realized + 0.5 * masked (assuming partial dominance)\n\n# Annotate VCF with SnpEff or VEP first to classify deleterious vs neutral\n# Then per individual:\n# realized_load \u003C- sum(genotype == 2 & severity == 'HIGH') \u002F sum(severity == 'HIGH')\n# masked_load \u003C- sum(genotype == 1 & severity == 'HIGH') \u002F sum(severity == 'HIGH')\n\n# Cite Hedrick & Garcia-Dorado 2016 TREE 31:940-952 for purging vs drift:\n# Strong-s alleles purge under inbreeding (potentially good)\n# Weak-s alleles fix by drift (definitely bad)\n# Net effect depends on selection-coefficient distribution\n# Empirical purging example: Robinson 2018 Curr Biol 28:3487-3494 (Channel Island foxes)\n# Simulation-based load assessment: Kyriazis 2021 Evol Lett 5:33-47\n```\n\n## Forward Simulation with Tree-Sequence Recording\n\n**Goal:** Simulate selection and non-Wright-Fisher demography efficiently using SLiM 4 with tskit tree-sequence recording.\n\n**Approach:** SLiM 4 with `treeSeqOutput()` records the genealogy; `pyslim` + `tskit` adds neutral mutations a posteriori. This is 5-100x faster than mutation-tracking (Haller, Galloway, Kelleher, Messer, Ralph 2019 *Mol Ecol Resour* 19:552-566). The Eidos scripting language is NOT Python.\n\n```python\n# Reference: SLiM 4+, pyslim 1.0+, tskit 0.5+, msprime 1.3+\n# Note: SLiM scripts (.slim files) use Eidos, not Python.\n# See https:\u002F\u002Fmesserlab.org\u002Fslim\u002F for full Eidos syntax.\n\n# After running a SLiM simulation with treeSeqOutput():\nimport tskit\nimport pyslim\nimport msprime\n\nts = tskit.load('simulation.trees')\nts = pyslim.update(ts)  # update to current SLiM\u002Fpyslim conventions\n\n# Recapitate: add coalescence above the SLiM tree root (neutral burn-in)\nts_recap = pyslim.recapitate(ts, recombination_rate=1e-8,\n                              ancestral_Ne=10000, random_seed=42)\n\n# Add neutral mutations after-the-fact via msprime\nts_mut = msprime.sim_mutations(ts_recap, rate=1e-8, random_seed=42)\n\n# Export VCF for downstream analyses\nwith open('simulation.vcf', 'w') as f:\n    ts_mut.write_vcf(f)\n```\n\n## Per-Method Failure Modes\n\n### LDNe applied to RAD-seq SNPs without physical-linkage correction\n\n**Trigger:** Running NeEstimator V2 LD method on RAD-seq or WGS genotypes thinned only by MAF, with multiple SNPs per chromosome at close physical distance. For RAD-seq biases more broadly, see Andrews 2016 *Nat Rev Genet* 17:81-92.\n\n**Mechanism:** LDNe assumes inter-locus r^2 reflects only demographic LD (drift, random mating). With physically linked SNPs, much r^2 is chromosomal, NOT demographic. The estimator interprets this as \"more drift has happened\" and reports a smaller Ne.\n\n**Symptom:** LDNe estimate dramatically lower than ecologically reasonable; downward bias compared with temporal or other estimators on the same population.\n\n**Fix:** Thin SNPs to >= 1 cM apart OR use SNeP (Barbato 2015) which corrects for physical linkage explicitly. NeEstimator V2 has a `Chrom` flag for chromosome-aware LDNe; document its use.\n\n### GONE2 silent failure with PLINK MAP cM=0 (the default)\n\n**Trigger:** Running GONE\u002FGONE2 on PLINK output where the MAP file's cM column was never populated (defaults to 0 because PLINK uses physical position).\n\n**Mechanism:** GONE\u002FGONE2 use the cM positions to interpret recombination distances; cM=0 for all loci means the algorithm cannot distinguish linked from unlinked SNPs and produces nonsense.\n\n**Symptom:** GONE2 output shows extreme Ne values or completely flat trajectory; results inconsistent across runs or with other methods.\n\n**Fix:** Populate the cM column from a species-specific genetic map, OR build one from Hi-C data, OR use the linkage-rate approximation from PLINK `--cm-map`. Verify with `head genotypes.bim` — column 3 should not be all zeros.\n\n### NeEstimator silently fails with malformed option file\n\n**Trigger:** Modifying line order in the `.ne2` option file or omitting expected parameters.\n\n**Mechanism:** NeEstimator V2 reads the option file by line order with rigid parsing. Reordered lines or skipped parameters cause the program to misinterpret subsequent lines without raising clear errors.\n\n**Symptom:** \"INFO\" output line shows fewer methods running than expected; results file is empty or has impossible values.\n\n**Fix:** Strictly follow the documented option-file format. The INFO line confirms which methods actually ran. Cross-reference with the official documentation (https:\u002F\u002Fgithub.com\u002Fbunop\u002FNeEstimator2.X).\n\n### dadi\u002Ffastsimcoal2 single-replicate inference at local optimum\n\n**Trigger:** Running dadi or fastsimcoal2 with only 1-5 optimization replicates and reporting the result.\n\n**Mechanism:** Likelihood surfaces for demographic inference have local optima. A single optimization may converge to a local maximum that is much worse than the global maximum.\n\n**Symptom:** Reviewer asks \"how many replicates?\"; parameter estimates inconsistent across studies; demographic events implausible.\n\n**Fix:** Run >= 50 independent replicates with random starting parameters; report the best-likelihood replicate AND the spread; flag if the top replicates disagree.\n\n### Ne\u002FNc = 0.1 assumption applied to fish or other high-fecundity taxon\n\n**Trigger:** Converting Ne to Nc via ratio = 0.1 for a marine fish, broadcast spawner, or other species with high reproductive skew.\n\n**Mechanism:** Frankham 1995 median Ne\u002FNc = 0.1 was derived from primarily terrestrial vertebrates. Hauser & Carvalho 2008 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (10^-2 to 10^-6) in marine fish with sex-biased and sweepstakes recruitment. The 0.1 default produces wildly wrong Nc estimates.\n\n**Symptom:** Census size estimate disagrees with field observations by orders of magnitude.\n\n**Fix:** Use taxon-specific Ne\u002FNc ratios from the literature. For marine fish with sweepstakes recruitment, Hauser & Carvalho 2008 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (10^-2 to 10^-6). For long-lived mammals, 0.1 - 0.3 is typical. Cite Hauser & Carvalho 2008 when discussing Ne\u002FNc.\n\n## Quantitative Thresholds\n\n| Threshold | Value | Source \u002F rationale |\n|-----------|-------|-------------------|\n| Modern Ne for inbreeding protection | Ne >= 100 | Frankham 2014 Biol Conserv 170:56-63 (revised from 50) |\n| Modern Ne for adaptive maintenance | Ne >= 1000 | Frankham 2014 (revised from 500) |\n| F_ROH for very recent inbreeding | ROH > 16 Mb | Parents\u002Fgrandparents-scale; standard ROH-length-class convention |\n| F_ROH for historical bottleneck | 1-4 Mb ROH | ~10-20 generations back |\n| LDNe Pcrit (allele frequency cutoff) | 0.02 standard; 0.05 conservative; 0.01 sensitive | NeEstimator V2 convention |\n| GONE2 minimum SNPs | 10,000 | Reliable trajectory inference |\n| GONE2 minimum N | 50 diploids | Statistical power floor |\n| PSMC minimum coverage | >= 20x WGS | Single-genome SMC requires high coverage |\n| dadi \u002F fsc2 optimization replicates | >= 50 | Local-optima trap below this |\n| Ne\u002FNc default (use cautiously) | 0.1 vertebrate median | Hauser & Carvalho 2008 documented 2-6 orders of magnitude variation in marine fish (10^-2 to 10^-6) |\n| SLiM forward-sim with tree sequences | treeSeqOutput() mandatory for speed | 5-100x faster than mutation tracking |\n\n## Common errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| LDNe reports Ne = infinity | Population too large for method to detect drift | Try multiple Pcrit; switch to SNeP for genomic data; acknowledge \"Ne very large\" |\n| GONE2 nonsense trajectory | cM column = 0 in BIM\u002FMAP file (PLINK default) | Populate cM with species genetic map or Hi-C inference |\n| NeEstimator silent skip | Malformed option file or wrong method index | Check INFO line in output; align with documented format |\n| bcftools roh empty output | Missing -G30 flag or --AF-tag | Add `-G30 --AF-tag AF` |\n| detectRUNS missing F_ROH | Wrong mapFile path or chromosome naming mismatch | Verify map file format matches PED file |\n| dadi numerical error at recent times | Mixing float32 in SFS construction | Use numpy float64 explicitly |\n| SLiM script error \"Eidos not Python\" | Trying to use Python syntax | SLiM uses Eidos; consult SLiM manual |\n| msprime PopulationConfiguration deprecation | Old msprime \u003C1.0 API in newer install | Use `msprime.Demography()` constructor |\n\n## References\n\n- Waples RS (2006) A bias correction for estimates of effective population size based on linkage disequilibrium. *Conserv Genet* 7(2):167-184. doi:10.1007\u002Fs10592-005-9100-y\n- Do C, Waples RS, Peel D, Macbeth GM, Tillett BJ, Ovenden JR (2014) NeEstimator V2. *Mol Ecol Resour* 14(1):209-214. doi:10.1111\u002F1755-0998.12157\n- Santiago E, Novo I, Pardiñas AF, Saura M, Wang J, Caballero A (2020) Recent demographic history inferred by high-resolution analysis of linkage disequilibrium (GONE). *Mol Biol Evol* 37(12):3642-3653. doi:10.1093\u002Fmolbev\u002Fmsaa169\n- Barbato M, Orozco-terWengel P, Tapio M, Bruford MW (2015) SNeP: physical-linkage-corrected LDNe. *Front Genet* 6:109. doi:10.3389\u002Ffgene.2015.00109\n- Frankham R, Bradshaw CJA, Brook BW (2014) Revised 100\u002F1000 Ne rules. *Biol Conserv* 170:56-63. doi:10.1016\u002Fj.biocon.2013.12.036\n- Hauser L, Carvalho GR (2008) Paradigm shifts in marine fisheries genetics. *Fish Fish* 9(4):333-362. doi:10.1111\u002Fj.1467-2979.2008.00299.x\n- Hedrick PW, García-Dorado A (2016) Understanding inbreeding depression, purging, and genetic rescue. *Trends Ecol Evol* 31(12):940-952. doi:10.1016\u002Fj.tree.2016.09.005\n- Bertorelle G, Raffini F, Bosse M, Bortoluzzi C, Iannucci A, Trucchi E, Morales HE, van Oosterhout C (2022) Genetic load. *Nat Rev Genet* 23(8):492-503. doi:10.1038\u002Fs41576-022-00448-x\n- Gutenkunst RN, Hernandez RD, Williamson SH, Bustamante CD (2009) Inferring joint demographic history with dadi. *PLoS Genet* 5(10):e1000695. doi:10.1371\u002Fjournal.pgen.1000695\n- Excoffier L, Dupanloup I, Huerta-Sánchez E, Sousa VC, Foll M (2013) Robust demographic inference (fastsimcoal2). *PLoS Genet* 9(10):e1003905. doi:10.1371\u002Fjournal.pgen.1003905\n- Jouganous J, Long W, Ragsdale AP, Gravel S (2017) Inferring the joint demographic history of multiple populations: beyond the diffusion approximation (moments). *Genetics* 206(3):1549-1567. doi:10.1534\u002Fgenetics.117.200493\n- Kamm J, Terhorst J, Durbin R, Song YS (2020) Efficiently inferring the demographic history of many populations with allele count data (momi2). *J Am Stat Assoc* 115(531):1472-1487. doi:10.1080\u002F01621459.2019.1635482\n- Kelleher J, Etheridge AM, McVean G (2016) Efficient coalescent simulation (msprime). *PLoS Comput Biol* 12(5):e1004842. doi:10.1371\u002Fjournal.pcbi.1004842\n- Haller BC, Messer PW (2019) SLiM 3: forward genetic simulation beyond Wright-Fisher. *Mol Biol Evol* 36(3):632-637. doi:10.1093\u002Fmolbev\u002Fmsy228\n- Haller BC, Galloway J, Kelleher J, Messer PW, Ralph PL (2019) Tree-sequence recording in SLiM. *Mol Ecol Resour* 19(2):552-566. doi:10.1111\u002F1755-0998.12968\n- Andrews KR, Good JM, Miller MR, Luikart G, Hohenlohe PA (2016) Harnessing RADseq for population genomics. *Nat Rev Genet* 17(2):81-92. doi:10.1038\u002Fnrg.2015.28\n- Frankham R (2015) Genetic rescue meta-analysis. *Mol Ecol* 24(11):2610-2618. doi:10.1111\u002Fmec.13139\n- Frankham R (1995) Effective population size \u002F adult population size ratios in wildlife. *Genet Res* 66:95-107. doi:10.1017\u002FS0016672300034455\n- Moritz C (1994) Defining 'Evolutionarily Significant Units' for conservation. *Trends Ecol Evol* 9(10):373-375. doi:10.1016\u002F0169-5347(94)90057-4\n- Robinson JA, Brown C, Kim BY, Lohmueller KE, Wayne RK (2018) Purging of strongly deleterious mutations explains long-term persistence and absence of inbreeding depression in island foxes. *Curr Biol* 28(21):3487-3494.e4. doi:10.1016\u002Fj.cub.2018.08.066\n- Kyriazis CC, Wayne RK, Lohmueller KE (2021) Strongly deleterious mutations are a primary determinant of extinction risk due to inbreeding depression. *Evol Lett* 5(1):33-47. doi:10.1002\u002Fevl3.209\n\n## Related Skills\n\n- ecological-genomics\u002Flandscape-genomics - Adaptive variation and genotype-environment associations\n- ecological-genomics\u002Fspecies-delimitation - Taxonomic unit definition (cite Sukumaran-Knowles caveat for ESU\u002FMU vs species)\n- population-genetics\u002Fpopulation-structure - Population stratification and STRUCTURE\u002FADMIXTURE\n- population-genetics\u002Fselection-statistics - Genome-wide selection signatures\n- variant-calling\u002Fvcf-basics - VCF preparation from RAD-seq or WGS\n","## Version Compatibility\n\nReference examples tested with: hierfstat 0.5+, adegenet 2.1+, detectRUNS 2.0+, poppr 2.9+, NeEstimator V2.1+, GONE2, SNeP 1.1+, SLiM 4+, msprime 1.3+, bcftools 1.19+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Conservation Genetics\n\n**\"Assess the genetic health of my endangered population\"** -> Estimate Ne by time horizon (contemporary LD, recent trajectory, deep demographic history), measure inbreeding via F_ROH with length-class thresholds, decompose realized vs masked genetic load, and interpret against the modern 100\u002F1000 Ne rule.\n- R: `hierfstat::basic.stats()` for F-statistics and diversity\n- R: `detectRUNS::consecutiveRUNS.run()` or `bcftools roh -G30` for ROH detection\n- CLI: `Ne2.exe option_file.ne2` for NeEstimator V2 contemporary Ne (option-file driven, NOT CLI flags)\n- CLI: `gone2` for recent Ne trajectory from genome-wide LD (requires populated cM map)\n\n## The Single Most Important Modern Insight -- There is No Single Best Ne Estimator\n\nThe most common methodological failure in conservation genetics is treating \"Ne\" as one quantity. **It is not.** Each Ne estimator captures a different time horizon with different biases:\n- **LD-based (NeEstimator V2, Waples 2006)**: Last 1-few generations; biased downward at small N\n- **GONE \u002F GONE2 (Santiago 2020)**: Recent 100-200 generations trajectory; requires populated cM genetic map\n- **Heterozygote-excess**: Last 1 generation only; very low power\n- **Temporal (Jorde-Ryman)**: Between two time-sampled cohorts\n- **Stairway Plot 2 \u002F dadi \u002F fastsimcoal2**: 10^3 to 10^5 generations from SFS\n- **PSMC**: 10^4 to 10^6 generations from single high-coverage genome\n\nA second cornerstone: **Ne\u002FNc ratio is NOT 0.1 universally.** Frankham 1995 reported a median of 0.1 in vertebrates, but Hauser & Carvalho 2008 *Fish Fish* 9:333-362 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (i.e., 10^-2 to 10^-6) in marine fish with sex-biased and sweepstakes-recruitment reproduction. Conservation papers that assume Ne\u002FNc = 0.1 are wrong for many taxa.\n\nA third: **the 50\u002F500 rule was revised to 100\u002F1000** by Frankham et al. 2014 *Biol Conserv* 170:56-63. The 50\u002F500 numbers came from 1980 and underestimate the Ne needed for adaptive maintenance. The modern thresholds are Ne >= 100 for short-term inbreeding-fitness protection and Ne >= 1000 for long-term adaptive potential.\n\n## Algorithmic Taxonomy\n\n| Method | Time horizon | Strength | Bias mode |\n|--------|--------------|----------|-----------|\n| LDNe (NeEstimator V2 LD method) | Last 1-few generations | Single sample; SNP-friendly | Biased downward at small N; sensitive to physical linkage |\n| SNeP (LD with physical-linkage correction) | Last 1-few generations | Corrects LDNe for chromosomal linkage in genomic data | Requires phased genotypes |\n| GONE \u002F GONE2 | Recent 100-200 generations | Detects bottleneck\u002Fexpansion trajectory | Requires populated cM genetic map column (NOT physical position) |\n| Heterozygote-excess | Last 1 generation | Detects recent bottleneck | Very low power; requires high heterozygosity |\n| Temporal (Jorde-Ryman, Pollak) | Between two cohorts | Direct drift estimate | Requires temporal samples |\n| Sibship (Wang COLONY) | Current generation | Pedigree-based from kinship | Computationally expensive |\n| dadi (Gutenkunst 2009) | 10^3 - 10^5 generations | Diffusion SFS-based; analytical | Local-optima trap; \u003C=3 populations practical |\n| fastsimcoal2 (Excoffier 2013) | 10^3 - 10^5 generations | Simulation-based composite-likelihood | Optimization needs >= 50 replicates |\n| moments (Jouganous 2017) | 10^3 - 10^5 generations | Moment-based ODE; faster than dadi | Same dimensionality limits |\n| momi2 (Kamm 2020) | 10^3 - 10^5 generations | Analytical SFS via moments | Stiff at very recent times |\n| Stairway Plot 2 | 10^3 - 10^5 generations | Folded SFS; no parametric model | Requires explicit mutation rate and generation time |\n| PSMC | 10^4 - 10^6 generations | Whole-genome pairwise coalescent | Requires >= 20x WGS coverage |\n| MSMC2 | Multi-individual deep coalescent | Better recent resolution than PSMC | Requires phased data; computational |\n| msprime (Kelleher 2016) | Simulation (not inference) | Gold-standard neutral simulator | Used to generate data under a fitted model |\n| SLiM 3\u002F4 (Haller & Messer 2019) | Forward simulation | Non-WF, age structure, spatial | Eidos scripting; tree-sequence recording essential for speed |\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended approach | Why |\n|----------|---------------------|-----|\n| Contemporary Ne from a single SNP sample | NeEstimator V2 LD method with Pcrit = 0.02 | Standard; widely accepted by conservation reviewers |\n| LDNe applied to RAD-seq \u002F WGS | Use SNeP (Barbato 2015) OR thin SNPs to >= 1 cM apart | LDNe assumes inter-locus r^2 reflects demography only; physical linkage inflates it |\n| Recent Ne trajectory (bottleneck detection) | GONE2 with populated cM genetic-map column | GONE2 fails silently if cM column is zero (PLINK default uses physical position) |\n| Deep demographic history (mammal\u002Fvertebrate) | PSMC with >= 20x WGS or Stairway Plot 2 from SFS | PSMC requires high coverage; Stairway Plot 2 needs only the SFS |\n| Multi-population demographic inference | dadi \u002F fastsimcoal2 with >= 50 independent optimization replicates | Likelihood surfaces have local optima; single-replicate inference is unreliable |\n| Inbreeding from genomic data | F_ROH with length-class thresholds (bcftools roh OR detectRUNS) | F_IS is genome-averaged; F_ROH partitions inbreeding by time |\n| Genetic-load assessment | Decompose realized vs masked via Bertorelle 2022 framework | Single \"load\" estimate hides the dynamics |\n| Define management unit (MU) or ESU | Moritz 1994 reciprocal monophyly + nuclear divergence | Do NOT use BPP\u002FBFD* species-delimitation methods (Sukumaran-Knowles 2017 oversplitting) |\n| Forward simulation of selection + demography | SLiM 4 with tree-sequence recording + pyslim\u002Ftskit | Tree-sequence recording is 5-100x faster than mutation tracking |\n| Comparing Ne across species | Cite Ne\u002FNc taxonomic variation (Hauser & Carvalho 2008) | The Ne\u002FNc = 0.1 default is wrong for many taxa |\n| Genetic rescue decision | Frankham 2015 meta-analysis; usually favors rescue | Outbreeding-depression fear is overstated for most cases |\n\n## Genetic Diversity and F-Statistics\n\n**Goal:** Compute standard population-genetic metrics with Weir-Cockerham estimators and bootstrap confidence intervals.\n\n**Approach:** Convert VCF to genind via adegenet, then to hierfstat format. Run `basic.stats` for Fis\u002FFst\u002FHo\u002FHe and `pairwise.WCfst` with bootstrapping for population differentiation.\n\n```r\nlibrary(hierfstat)\nlibrary(adegenet)\nlibrary(poppr)\n\n# VCF\u002Fgenepop\u002FPLINK -> genind via adegenet\ndata_genind \u003C- read.genepop('populations.gen')\ndata_hf \u003C- genind2hierfstat(data_genind)\n\n# F-statistics with Weir-Cockerham estimators\nbstats \u003C- basic.stats(data_hf)\ncat('Overall Fis:', bstats$overall['Fis'], '\\n')\ncat('Overall Fst:', bstats$overall['Fst'], '\\n')\n\n# Pairwise FST with bootstrap CIs\npw_fst \u003C- pairwise.WCfst(data_hf)\nboot_fst \u003C- boot.ppfst(data_hf, nboot = 1000)\n\n# Rarefied allelic richness (corrects for unequal sample sizes)\nar \u003C- allelic.richness(data_hf)\n\n# Private alleles unique to each population\npa \u003C- private_alleles(data_genind, count.alleles = TRUE)\n```\n\n## Runs of Homozygosity with Length-Class Dating\n\n**Goal:** Detect autozygous segments and date the inbreeding events by ROH length class.\n\n**Approach:** Use `bcftools roh -G30` (HMM-based, density-independent) for VCF input OR `detectRUNS::consecutiveRUNS.run()` for PLINK. Bin ROH by length to date inbreeding events: > 16 Mb means parents\u002Fgrandparents; 4-16 Mb means ~5 generations; 1-4 Mb means ~10-20 generations; \u003C 1 Mb is deep background.\n\n```r\nlibrary(detectRUNS)\n\n# detectRUNS: SNP-by-SNP scanning from PLINK files\nruns \u003C- consecutiveRUNS.run(\n    genotypeFile = 'genotypes.ped',\n    mapFile = 'genotypes.map',\n    minSNP = 20,        # Minimum SNPs per run; prevents short-stretch false positives\n    minLengthBps = 1e6, # 1 Mb minimum; shorter ROH usually not IBD-derived\n    maxGap = 1e6,\n    maxOppRun = 1,\n    maxMissRun = 2\n)\n\n# F_ROH per individual = sum(ROH length) \u002F autosomal genome length\n# > 16 Mb ROH: parents\u002Fgrandparents inbreeding (very recent)\n# 4-16 Mb: ~5 generations back\n# 1-4 Mb: ~10-20 generations (historical bottleneck)\n# \u003C 1 Mb: deep background, ancient homozygosity\nfroh \u003C- Froh_inbreeding(runs, mapFile = 'genotypes.map', genome_wide = TRUE)\n\n# Bin ROH by length to estimate inbreeding timing\nruns_summary \u003C- summaryRuns(runs, genotypeFile = 'genotypes.ped',\n                            mapFile = 'genotypes.map')\nplot_DistributionRuns(runs)\n```\n\n```bash\n# Alternative: bcftools roh with HMM (density-independent; better for low-density data)\n# -G30: per-sample genotype likelihood threshold (30 = high-quality calls)\n# --AF-tag AF: use AF tag from VCF for allele frequencies (else --AF-file)\nbcftools roh -G30 --AF-tag AF -o roh_results.txt input.vcf.gz\n```\n\n## NeEstimator V2 — Option-File API\n\n**Goal:** Estimate contemporary Ne via LD method from a single sample (Do et al. 2014 *Mol Ecol Resour* 14:209-214).\n\n**Approach:** NeEstimator V2 is option-file driven, NOT CLI-flag driven. Create a `.ne2` text option file specifying input format, methods (LD\u002FHetExcess\u002FCoancestry\u002FTemporal), Pcrit thresholds, and output. Run with `Ne2.exe option_file.ne2`.\n\n```text\n# Example NeEstimator V2 option file (option_file.ne2)\n# Line order matters; defaults can cause silent failures\n# See NeEstimator V2 documentation: https:\u002F\u002Fgithub.com\u002Fbunop\u002FNeEstimator2.X\n\n# Input format\n1 0                                   # 1=GenePop, 2=FSTAT; second value reserved\ninput_genotypes.gen\n\n# Methods (1 = run; 0 = skip)\n1 0 0 0                               # LD only; others (HetExcess, Coancestry, Temporal) off\n\n# Pcrit cutoffs (allele frequencies below threshold excluded)\n3                                     # number of Pcrit values\n0.05 0.02 0.01                        # 0.02 is standard; 0.05 conservative; 0.01 sensitive\n\n# Mating system: 0 = random mating; 1 = monogamy\n0\n\n# Output\noutput_results.txt\n```\n\n```bash\n# Run NeEstimator V2 (Java-based)\njava -jar NeEstimator.jar option_file.ne2\n# Verify INFO output line: confirms which methods ran and which were skipped\n\n# Common failure: \"Ne = infinity\" reported\n# Diagnosis: insufficient drift signal (population larger than method can detect)\n# Try multiple Pcrit; with genomic data add SNeP physical-linkage correction\n```\n\n## GONE2 — Recent Ne Trajectory with the cM-Column Trap\n\n**Goal:** Estimate the Ne trajectory over the last ~100-200 generations from genome-wide LD across recombination rates.\n\n**Approach:** GONE2 requires a genetic map with POPULATED cM positions (not just physical position). PLINK MAP files default to cM=0; if this is not corrected, GONE2 will silently produce nonsense. Verify the cM column is populated from a genetic-map file or use Hi-C-derived recombination map.\n\n```bash\n# GONE2 input: PLINK BED\u002FBIM\u002FFAM or VCF + populated MAP\n# CRITICAL: BIM\u002FMAP cM column must be populated; default cM=0 produces silent failure\n\n# Check cM column populated\nhead genotypes.bim   # column 3 should NOT be all zeros\n\n# Run GONE2\n# -t 4: threads\n# -u 0.05: upper recombination rate bound (exclude pairs with r > 0.05)\n# Smaller -u focuses on more recent generations\n.\u002Fgone2 -t 4 -u 0.05 genotypes.vcf\n\n# Output: OUTPUT_GONE2 with generation, Ne, CI_low, CI_high\n```\n\n```r\n# Parse GONE2 output and plot Ne trajectory\ngone_out \u003C- read.table('OUTPUT_GONE2', header = TRUE, sep = '\\t')\n\npdf('gone2_ne_trajectory.pdf', width = 8, height = 5)\nplot(gone_out$generation, gone_out$Ne,\n     type = 'l', lwd = 2, col = 'blue',\n     xlab = 'Generations ago', ylab = 'Effective population size (Ne)',\n     main = 'Recent Ne Trajectory (GONE2)', log = 'y')\npolygon(c(gone_out$generation, rev(gone_out$generation)),\n        c(gone_out$CI_low, rev(gone_out$CI_high)),\n        col = adjustcolor('blue', alpha = 0.2), border = NA)\ndev.off()\n```\n\n## SNeP — Physical-Linkage-Corrected LDNe for Genomic Data\n\n**Goal:** Apply physical-linkage correction to LDNe when SNPs come from RAD-seq or WGS (where inter-locus r^2 reflects chromosomal linkage, not just demography).\n\n**Approach:** SNeP (Barbato 2015 *Front Genet* 6:109) implements Waples & Do's physical-linkage correction. Use when SNPs are not pre-thinned to >= 1 cM apart.\n\n```bash\n# SNeP input: PLINK PED\u002FMAP or VCF + map file\n# Multi-threaded; supports several corrections (sample size, mutation, phasing, recombination)\n.\u002FSNeP1.1 -ped genotypes.ped -map genotypes.map -threads 4 \\\n          -mutationrate 1.4e-8 -out snep_results.txt\n\n# Output: Ne estimates per recombination-rate bin\n```\n\n## Deep Demographic History\n\n**Goal:** Reconstruct Ne trajectory over thousands of generations from genome-wide variation.\n\n**Approach:** Pick the appropriate tool by data type. PSMC for a single high-coverage diploid genome. Stairway Plot 2 for SFS from population samples. dadi or fastsimcoal2 for multi-population history with composite likelihood.\n\n```bash\n# --- PSMC: single high-coverage WGS (>= 20x) ---\nbcftools mpileup -C50 -Q 30 -q 30 -f reference.fa sample.bam | \\\n    bcftools call -c | vcfutils.pl vcf2fq -d 10 -D 100 > consensus.fq\nfq2psmcfa -q20 consensus.fq > consensus.psmcfa\npsmc -N25 -t15 -r5 -p '4+25*2+4+6' -o sample.psmc consensus.psmcfa\npsmc_plot.pl -u 1.4e-8 -g 5 -p sample_psmc_plot sample.psmc\n\n# --- Stairway Plot 2: SFS-based (works with RAD-seq or WGS) ---\n# Build SFS from VCF (use easySFS or vcf2sfs)\n# Create blueprint.txt specifying nseq, L, mu, generation time\njava -cp stairway_plot_v2.jar Stairbuilder blueprint.txt\nbash blueprint.sh\n\n# --- fastsimcoal2: multi-population composite-likelihood SFS ---\n# REQUIRES >= 50 independent optimization replicates; single-run is unreliable\nfor i in {1..50}; do\n    fsc27 -t template.tpl -e template.est -m -L 50 -n 100000 -q\ndone\n# Compare likelihoods across replicates; report best AND distribution\n```\n\n## Genetic Load — Realized vs Masked Decomposition\n\n**Goal:** Decompose total genetic load into realized (currently expressed) and masked (heterozygous, potential) components per Bertorelle 2022 framework.\n\n**Approach:** Use SnpEff\u002FVEP to annotate variants for predicted functional effect. Compute realized load from homozygous-derived-allele counts at deleterious positions; compute masked load from heterozygous counts. Hedrick & Garcia-Dorado 2016 distinguish purging vs drift dynamics; report both.\n\n```r\n# Conceptual workflow (Bertorelle et al. 2022 NRG 23:492-503)\n# Realized load: count_homozygous_deleterious \u002F total_deleterious_sites\n# Masked load: count_heterozygous_deleterious \u002F total_deleterious_sites\n# Total load = realized + 0.5 * masked (assuming partial dominance)\n\n# Annotate VCF with SnpEff or VEP first to classify deleterious vs neutral\n# Then per individual:\n# realized_load \u003C- sum(genotype == 2 & severity == 'HIGH') \u002F sum(severity == 'HIGH')\n# masked_load \u003C- sum(genotype == 1 & severity == 'HIGH') \u002F sum(severity == 'HIGH')\n\n# Cite Hedrick & Garcia-Dorado 2016 TREE 31:940-952 for purging vs drift:\n# Strong-s alleles purge under inbreeding (potentially good)\n# Weak-s alleles fix by drift (definitely bad)\n# Net effect depends on selection-coefficient distribution\n# Empirical purging example: Robinson 2018 Curr Biol 28:3487-3494 (Channel Island foxes)\n# Simulation-based load assessment: Kyriazis 2021 Evol Lett 5:33-47\n```\n\n## Forward Simulation with Tree-Sequence Recording\n\n**Goal:** Simulate selection and non-Wright-Fisher demography efficiently using SLiM 4 with tskit tree-sequence recording.\n\n**Approach:** SLiM 4 with `treeSeqOutput()` records the genealogy; `pyslim` + `tskit` adds neutral mutations a posteriori. This is 5-100x faster than mutation-tracking (Haller, Galloway, Kelleher, Messer, Ralph 2019 *Mol Ecol Resour* 19:552-566). The Eidos scripting language is NOT Python.\n\n```python\n# Reference: SLiM 4+, pyslim 1.0+, tskit 0.5+, msprime 1.3+\n# Note: SLiM scripts (.slim files) use Eidos, not Python.\n# See https:\u002F\u002Fmesserlab.org\u002Fslim\u002F for full Eidos syntax.\n\n# After running a SLiM simulation with treeSeqOutput():\nimport tskit\nimport pyslim\nimport msprime\n\nts = tskit.load('simulation.trees')\nts = pyslim.update(ts)  # update to current SLiM\u002Fpyslim conventions\n\n# Recapitate: add coalescence above the SLiM tree root (neutral burn-in)\nts_recap = pyslim.recapitate(ts, recombination_rate=1e-8,\n                              ancestral_Ne=10000, random_seed=42)\n\n# Add neutral mutations after-the-fact via msprime\nts_mut = msprime.sim_mutations(ts_recap, rate=1e-8, random_seed=42)\n\n# Export VCF for downstream analyses\nwith open('simulation.vcf', 'w') as f:\n    ts_mut.write_vcf(f)\n```\n\n## Per-Method Failure Modes\n\n### LDNe applied to RAD-seq SNPs without physical-linkage correction\n\n**Trigger:** Running NeEstimator V2 LD method on RAD-seq or WGS genotypes thinned only by MAF, with multiple SNPs per chromosome at close physical distance. For RAD-seq biases more broadly, see Andrews 2016 *Nat Rev Genet* 17:81-92.\n\n**Mechanism:** LDNe assumes inter-locus r^2 reflects only demographic LD (drift, random mating). With physically linked SNPs, much r^2 is chromosomal, NOT demographic. The estimator interprets this as \"more drift has happened\" and reports a smaller Ne.\n\n**Symptom:** LDNe estimate dramatically lower than ecologically reasonable; downward bias compared with temporal or other estimators on the same population.\n\n**Fix:** Thin SNPs to >= 1 cM apart OR use SNeP (Barbato 2015) which corrects for physical linkage explicitly. NeEstimator V2 has a `Chrom` flag for chromosome-aware LDNe; document its use.\n\n### GONE2 silent failure with PLINK MAP cM=0 (the default)\n\n**Trigger:** Running GONE\u002FGONE2 on PLINK output where the MAP file's cM column was never populated (defaults to 0 because PLINK uses physical position).\n\n**Mechanism:** GONE\u002FGONE2 use the cM positions to interpret recombination distances; cM=0 for all loci means the algorithm cannot distinguish linked from unlinked SNPs and produces nonsense.\n\n**Symptom:** GONE2 output shows extreme Ne values or completely flat trajectory; results inconsistent across runs or with other methods.\n\n**Fix:** Populate the cM column from a species-specific genetic map, OR build one from Hi-C data, OR use the linkage-rate approximation from PLINK `--cm-map`. Verify with `head genotypes.bim` — column 3 should not be all zeros.\n\n### NeEstimator silently fails with malformed option file\n\n**Trigger:** Modifying line order in the `.ne2` option file or omitting expected parameters.\n\n**Mechanism:** NeEstimator V2 reads the option file by line order with rigid parsing. Reordered lines or skipped parameters cause the program to misinterpret subsequent lines without raising clear errors.\n\n**Symptom:** \"INFO\" output line shows fewer methods running than expected; results file is empty or has impossible values.\n\n**Fix:** Strictly follow the documented option-file format. The INFO line confirms which methods actually ran. Cross-reference with the official documentation (https:\u002F\u002Fgithub.com\u002Fbunop\u002FNeEstimator2.X).\n\n### dadi\u002Ffastsimcoal2 single-replicate inference at local optimum\n\n**Trigger:** Running dadi or fastsimcoal2 with only 1-5 optimization replicates and reporting the result.\n\n**Mechanism:** Likelihood surfaces for demographic inference have local optima. A single optimization may converge to a local maximum that is much worse than the global maximum.\n\n**Symptom:** Reviewer asks \"how many replicates?\"; parameter estimates inconsistent across studies; demographic events implausible.\n\n**Fix:** Run >= 50 independent replicates with random starting parameters; report the best-likelihood replicate AND the spread; flag if the top replicates disagree.\n\n### Ne\u002FNc = 0.1 assumption applied to fish or other high-fecundity taxon\n\n**Trigger:** Converting Ne to Nc via ratio = 0.1 for a marine fish, broadcast spawner, or other species with high reproductive skew.\n\n**Mechanism:** Frankham 1995 median Ne\u002FNc = 0.1 was derived from primarily terrestrial vertebrates. Hauser & Carvalho 2008 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (10^-2 to 10^-6) in marine fish with sex-biased and sweepstakes recruitment. The 0.1 default produces wildly wrong Nc estimates.\n\n**Symptom:** Census size estimate disagrees with field observations by orders of magnitude.\n\n**Fix:** Use taxon-specific Ne\u002FNc ratios from the literature. For marine fish with sweepstakes recruitment, Hauser & Carvalho 2008 documented Ne\u002FNc spanning 2-6 orders of magnitude smaller than census (10^-2 to 10^-6). For long-lived mammals, 0.1 - 0.3 is typical. Cite Hauser & Carvalho 2008 when discussing Ne\u002FNc.\n\n## Quantitative Thresholds\n\n| Threshold | Value | Source \u002F rationale |\n|-----------|-------|-------------------|\n| Modern Ne for inbreeding protection | Ne >= 100 | Frankham 2014 Biol Conserv 170:56-63 (revised from 50) |\n| Modern Ne for adaptive maintenance | Ne >= 1000 | Frankham 2014 (revised from 500) |\n| F_ROH for very recent inbreeding | ROH > 16 Mb | Parents\u002Fgrandparents-scale; standard ROH-length-class convention |\n| F_ROH for historical bottleneck | 1-4 Mb ROH | ~10-20 generations back |\n| LDNe Pcrit (allele frequency cutoff) | 0.02 standard; 0.05 conservative; 0.01 sensitive | NeEstimator V2 convention |\n| GONE2 minimum SNPs | 10,000 | Reliable trajectory inference |\n| GONE2 minimum N | 50 diploids | Statistical power floor |\n| PSMC minimum coverage | >= 20x WGS | Single-genome SMC requires high coverage |\n| dadi \u002F fsc2 optimization replicates | >= 50 | Local-optima trap below this |\n| Ne\u002FNc default (use cautiously) | 0.1 vertebrate median | Hauser & Carvalho 2008 documented 2-6 orders of magnitude variation in marine fish (10^-2 to 10^-6) |\n| SLiM forward-sim with tree sequences | treeSeqOutput() mandatory for speed | 5-100x faster than mutation tracking |\n\n## Common errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| LDNe reports Ne = infinity | Population too large for method to detect drift | Try multiple Pcrit; switch to SNeP for genomic data; acknowledge \"Ne very large\" |\n| GONE2 nonsense trajectory | cM column = 0 in BIM\u002FMAP file (PLINK default) | Populate cM with species genetic map or Hi-C inference |\n| NeEstimator silent skip | Malformed option file or wrong method index | Check INFO line in output; align with documented format |\n| bcftools roh empty output | Missing -G30 flag or --AF-tag | Add `-G30 --AF-tag AF` |\n| detectRUNS missing F_ROH | Wrong mapFile path or chromosome naming mismatch | Verify map file format matches PED file |\n| dadi numerical error at recent times | Mixing float32 in SFS construction | Use numpy float64 explicitly |\n| SLiM script error \"Eidos not Python\" | Trying to use Python syntax | SLiM uses Eidos; consult SLiM manual |\n| msprime PopulationConfiguration deprecation | Old msprime \u003C1.0 API in newer install | Use `msprime.Demography()` constructor |\n\n## References\n\n- Waples RS (2006) A bias correction for estimates of effective population size based on linkage disequilibrium. *Conserv Genet* 7(2):167-184. doi:10.1007\u002Fs10592-005-9100-y\n- Do C, Waples RS, Peel D, Macbeth GM, Tillett BJ, Ovenden JR (2014) NeEstimator V2. *Mol Ecol Resour* 14(1):209-214. doi:10.1111\u002F1755-0998.12157\n- Santiago E, Novo I, Pardiñas AF, Saura M, Wang J, Caballero A (2020) Recent demographic history inferred by high-resolution analysis of linkage disequilibrium (GONE). *Mol Biol Evol* 37(12):3642-3653. doi:10.1093\u002Fmolbev\u002Fmsaa169\n- Barbato M, Orozco-terWengel P, Tapio M, Bruford MW (2015) SNeP: physical-linkage-corrected LDNe. *Front Genet* 6:109. doi:10.3389\u002Ffgene.2015.00109\n- Frankham R, Bradshaw CJA, Brook BW (2014) Revised 100\u002F1000 Ne rules. *Biol Conserv* 170:56-63. doi:10.1016\u002Fj.biocon.2013.12.036\n- Hauser L, Carvalho GR (2008) Paradigm shifts in marine fisheries genetics. *Fish Fish* 9(4):333-362. doi:10.1111\u002Fj.1467-2979.2008.00299.x\n- Hedrick PW, García-Dorado A (2016) Understanding inbreeding depression, purging, and genetic rescue. *Trends Ecol Evol* 31(12):940-952. doi:10.1016\u002Fj.tree.2016.09.005\n- Bertorelle G, Raffini F, Bosse M, Bortoluzzi C, Iannucci A, Trucchi E, Morales HE, van Oosterhout C (2022) Genetic load. *Nat Rev Genet* 23(8):492-503. doi:10.1038\u002Fs41576-022-00448-x\n- Gutenkunst RN, Hernandez RD, Williamson SH, Bustamante CD (2009) Inferring joint demographic history with dadi. *PLoS Genet* 5(10):e1000695. doi:10.1371\u002Fjournal.pgen.1000695\n- Excoffier L, Dupanloup I, Huerta-Sánchez E, Sousa VC, Foll M (2013) Robust demographic inference (fastsimcoal2). *PLoS Genet* 9(10):e1003905. doi:10.1371\u002Fjournal.pgen.1003905\n- Jouganous J, Long W, Ragsdale AP, Gravel S (2017) Inferring the joint demographic history of multiple populations: beyond the diffusion approximation (moments). *Genetics* 206(3):1549-1567. doi:10.1534\u002Fgenetics.117.200493\n- Kamm J, Terhorst J, Durbin R, Song YS (2020) Efficiently inferring the demographic history of many populations with allele count data (momi2). *J Am Stat Assoc* 115(531):1472-1487. doi:10.1080\u002F01621459.2019.1635482\n- Kelleher J, Etheridge AM, McVean G (2016) Efficient coalescent simulation (msprime). *PLoS Comput Biol* 12(5):e1004842. doi:10.1371\u002Fjournal.pcbi.1004842\n- Haller BC, Messer PW (2019) SLiM 3: forward genetic simulation beyond Wright-Fisher. *Mol Biol Evol* 36(3):632-637. doi:10.1093\u002Fmolbev\u002Fmsy228\n- Haller BC, Galloway J, Kelleher J, Messer PW, Ralph PL (2019) Tree-sequence recording in SLiM. *Mol Ecol Resour* 19(2):552-566. doi:10.1111\u002F1755-0998.12968\n- Andrews KR, Good JM, Miller MR, Luikart G, Hohenlohe PA (2016) Harnessing RADseq for population genomics. *Nat Rev Genet* 17(2):81-92. doi:10.1038\u002Fnrg.2015.28\n- Frankham R (2015) Genetic rescue meta-analysis. *Mol Ecol* 24(11):2610-2618. doi:10.1111\u002Fmec.13139\n- Frankham R (1995) Effective population size \u002F adult population size ratios in wildlife. *Genet Res* 66:95-107. doi:10.1017\u002FS0016672300034455\n- Moritz C (1994) Defining 'Evolutionarily Significant Units' for conservation. *Trends Ecol Evol* 9(10):373-375. doi:10.1016\u002F0169-5347(94)90057-4\n- Robinson JA, Brown C, Kim BY, Lohmueller KE, Wayne RK (2018) Purging of strongly deleterious mutations explains long-term persistence and absence of inbreeding depression in island foxes. *Curr Biol* 28(21):3487-3494.e4. doi:10.1016\u002Fj.cub.2018.08.066\n- Kyriazis CC, Wayne RK, Lohmueller KE (2021) Strongly deleterious mutations are a primary determinant of extinction risk due to inbreeding depression. *Evol Lett* 5(1):33-47. doi:10.1002\u002Fevl3.209\n\n## Related Skills\n\n- ecological-genomics\u002Flandscape-genomics - Adaptive variation and genotype-environment associations\n- ecological-genomics\u002Fspecies-delimitation - Taxonomic unit definition (cite Sukumaran-Knowles caveat for ESU\u002FMU vs species)\n- population-genetics\u002Fpopulation-structure - Population stratification and STRUCTURE\u002FADMIXTURE\n- population-genetics\u002Fselection-statistics - Genome-wide selection signatures\n- variant-calling\u002Fvcf-basics - VCF preparation from RAD-seq or WGS\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","ecological-genomics\u002Fconservation-genetics\u002FSKILL.md","hierfstat","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ecological-genomics-conservation-genetics",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ecological-genomics-conservation-genetics",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-ecological-genomics-conservation-genetics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics\u002FSKILL.md",true,[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fconservation_diversity.R","OTHER","其他",4075,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics\u002Fexamples\u002Fconservation_diversity.R",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fne_estimation.R",6480,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics\u002Fexamples\u002Fne_estimation.R",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"usage-guide.md","REFERENCE","参考文档",9164,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-ecological-genomics-conservation-genetics\u002Fusage-guide.md",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":74},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":74},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":74},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]