Skip to content

Update README.rst #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Quick start guide

2. Convert your VCF(s) to the SMC++ input format with vcf2smc_::

$ smc++ vcf2smc my.data.vcf.gz out/chr1.smc.gz chr1 Pop1:S1,S2
$ smc++ vcf2smc my.data.vcf.gz out/example.chr1.smc.gz chr1 Pop1:S1,S2

This command will parse data for the contig ``chr1`` for samples
``S1`` and ``S2`` which are members of population ``Pop1``. You
Expand Down Expand Up @@ -325,21 +325,21 @@ This command fits two-population clean split models using marginal
estimates produced by estimate_. To use ``split``, first estimate each
population marginally using ``estimate``::

$ smc++ vcf2smc my.vcf.gz data/pop1.smc.gz <contig> pop1:ind1_1,ind1_2
$ smc++ vcf2smc my.vcf.gz data/pop2.smc.gz <contig> pop2:ind2_1,ind2_2
$ smc++ estimate -o pop1/ <mu> data/pop1.smc.gz
$ smc++ estimate -o pop2/ <mu> data/pop2.smc.gz
$ smc++ vcf2smc my.vcf.gz data/pop1.<contig>.smc.gz <contig> pop1:ind1_1,ind1_2
$ smc++ vcf2smc my.vcf.gz data/pop2.<contig>.smc.gz <contig> pop2:ind2_1,ind2_2
$ smc++ estimate -o pop1/ <mu> data/pop1.chr*.smc.gz
$ smc++ estimate -o pop2/ <mu> data/pop2.chr*.smc.gz

Next, create datasets containing the joint frequency spectrum for both
populations::

$ smc++ vcf2smc my.vcf.gz data/pop12.smc.gz <contig> pop1:ind1_1,ind1_2 pop2:ind2_1,ind2_2
$ smc++ vcf2smc my.vcf.gz data/pop21.smc.gz <contig> pop2:ind2_1,ind2_2 pop1:ind1_1,ind1_2
$ smc++ vcf2smc my.vcf.gz data/pop12.<contig>.smc.gz <contig> pop1:ind1_1,ind1_2 pop2:ind2_1,ind2_2
$ smc++ vcf2smc my.vcf.gz data/pop21.<contig>.smc.gz <contig> pop2:ind2_1,ind2_2 pop1:ind1_1,ind1_2

Finally, run ``split`` to refine the marginal estimates into an estimate
of the joint demography::
of the joint demography using 4 sets of vcf2smc outputs. ::

$ smc++ split -o split/ pop1/model.final.json pop2/model.final.json data/*.smc.gz
$ smc++ split -o split/ pop1/model.final.json pop2/model.final.json data/pop[12]*.chr*.smc.gz
$ smc++ plot joint.pdf split/model.final.json

posterior
Expand Down