IBSrelate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Please see our paper in Molecular Ecology at: https://doi.org/10.1111/mec.14954 | Please see our paper in Molecular Ecology at: https://doi.org/10.1111/mec.14954 | ||
=Usage= | |||
<code><pre> | |||
# make consensus - needed to make saf files | |||
{ANGSD} -b ./data/1000G_aln/NA19042.mapped.ILLUMINA.bwa.LWK.low_coverage.20130415.list \ | |||
-r {CHR} -minMapQ 30 -minQ 20 -setMinDepth 3 -doFasta 2 -doCounts 1 -out ./data/consensus.NA19042.chr{CHR} | |||
# make *.saf files (per individual) | |||
{ANGSD} -b ./data/1000G_aln/NA19027.mapped.ILLUMINA.bwa.LWK.low_coverage.20130415.list \ | |||
-r {CHR} \ | |||
-ref ./data/1000G_aln/hs37d5.fa \ | |||
-anc ./data/consensus.NA19042.chr{CHR}.fa.gz \ | |||
-sites ./data/1000G_aln/GEM_mappability1_75mer.angsd \ | |||
-minMapQ 30 -minQ 20 -GL 2 \ | |||
-doSaf 1 -doDepth 1 -doCounts 1 \ | |||
-out ./data/1000G_aln/saf/chromosomes/NA19027_chr{CHR} | |||
# realSFS for each pair of individuals | |||
{realSFS} ./data/1000G_aln/saf/chromosomes/NA19042_chr{CHR}.saf.idx ./data/1000G_aln/saf/chromosomes/NA19027_chr{CHR}.saf.idx -r {CHR} -P 2 -tole 1e-10 > ./data/1000G_aln/saf/chromosomes/NA19042_NA19027_chr{CHR}.2dsfs | |||
# make genotype likelihood file | |||
{ANGSD} -b ./data/1000G_aln/bamlist.all.txt \ | |||
-r {CHR} \ | |||
-sites ./data/1000G_aln/GEM_mappability1_75mer.angsd \ | |||
-minMapQ 30 -minQ 20 -GL 2 \ | |||
-doGlf 1 \ | |||
-out ./data/1000G_aln/GLF/chromosomes/chr{CHR} | |||
# IBS | |||
{IBS} -glf ./data/1000G_aln/GLF/chromosomes/chr{CHR}.glf.gz \ | |||
-seed {CHR} -maxSites 300000000 -model 0 \ | |||
-nInd 5 -allpairs 1 \ | |||
-outFileName ./data/1000G_aln/GLF/chromosomes/chr{CHR}.model0 | |||
</pre></code> | |||
Revision as of 17:47, 4 December 2018
This page contains information about the program IBSrelate.
Please see our paper in Molecular Ecology at: https://doi.org/10.1111/mec.14954
Usage
# make consensus - needed to make saf files
{ANGSD} -b ./data/1000G_aln/NA19042.mapped.ILLUMINA.bwa.LWK.low_coverage.20130415.list \
-r {CHR} -minMapQ 30 -minQ 20 -setMinDepth 3 -doFasta 2 -doCounts 1 -out ./data/consensus.NA19042.chr{CHR}
# make *.saf files (per individual)
{ANGSD} -b ./data/1000G_aln/NA19027.mapped.ILLUMINA.bwa.LWK.low_coverage.20130415.list \
-r {CHR} \
-ref ./data/1000G_aln/hs37d5.fa \
-anc ./data/consensus.NA19042.chr{CHR}.fa.gz \
-sites ./data/1000G_aln/GEM_mappability1_75mer.angsd \
-minMapQ 30 -minQ 20 -GL 2 \
-doSaf 1 -doDepth 1 -doCounts 1 \
-out ./data/1000G_aln/saf/chromosomes/NA19027_chr{CHR}
# realSFS for each pair of individuals
{realSFS} ./data/1000G_aln/saf/chromosomes/NA19042_chr{CHR}.saf.idx ./data/1000G_aln/saf/chromosomes/NA19027_chr{CHR}.saf.idx -r {CHR} -P 2 -tole 1e-10 > ./data/1000G_aln/saf/chromosomes/NA19042_NA19027_chr{CHR}.2dsfs
# make genotype likelihood file
{ANGSD} -b ./data/1000G_aln/bamlist.all.txt \
-r {CHR} \
-sites ./data/1000G_aln/GEM_mappability1_75mer.angsd \
-minMapQ 30 -minQ 20 -GL 2 \
-doGlf 1 \
-out ./data/1000G_aln/GLF/chromosomes/chr{CHR}
# IBS
{IBS} -glf ./data/1000G_aln/GLF/chromosomes/chr{CHR}.glf.gz \
-seed {CHR} -maxSites 300000000 -model 0 \
-nInd 5 -allpairs 1 \
-outFileName ./data/1000G_aln/GLF/chromosomes/chr{CHR}.model0
Citation
Waples, R. K., Albrechtsen, A. and Moltke, I. (2018), Allele frequency‐free inference of close familial relationships from genotypes or low depth sequencing data. Mol Ecol. doi:10.1111/mec.14954
Bibtex
@article{doi:10.1111/mec.14954, author = {Waples, Ryan K and Albrechtsen, Anders and Moltke, Ida}, title = {Allele frequency-free inference of close familial relationships from genotypes or low depth sequencing data}, journal = {Molecular Ecology}, volume = {0}, number = {ja}, pages = {}, doi = {10.1111/mec.14954}, url = {https://onlinelibrary.wiley.com/doi/abs/10.1111/mec.14954}, eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1111/mec.14954}, }