Skip to content

Commit

Permalink
Merge pull request #57 from gymrek-lab/feat/vcf_output
Browse files Browse the repository at this point in the history
Feat/vcf output
  • Loading branch information
mlamkin7 authored Jun 30, 2022
2 parents 07e51b9 + 4bdece4 commit d76c013
Show file tree
Hide file tree
Showing 4 changed files with 542,066 additions and 11 deletions.
14 changes: 7 additions & 7 deletions docs/commands/simgenotype.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ Sample Header 2

Example Command
```
haptools simgenotype
--invcf 1000Genomes.vcf.gz \
--sample_info /path/to/sampleinfo.csv \
--model /path/to/model/file.dat \
--map /path/to/plink/file/ \
--chroms 7,8,9,10,21,22,X \
--out /path/to/output
haptools simgenotype \
--model ./tests/data/outvcf_gen.dat \
--mapdir ./tests/data/map/ \
--chroms 1,2 \
--invcf ./tests/data/outvcf_test.vcf \
--sample_info ./tests/data/outvcf_info.tab \
--out ./tests/data/example_simgenotype
```
11 changes: 7 additions & 4 deletions haptools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@ def karyogram(bp, sample, out, title, centromeres, colors):
"describing the populations in the header of the model file.", required=True)
def simgenotype(invcf, sample_info, model, mapdir, out, popsize, seed, chroms):
"""
Simulate admixed genomes under a pre-defined model
Simulate admixed genomes under a pre-defined model.
Example:
haptools simgenotype \
--model tests/data/dat_files/AFR_south_carolina.dat \
--mapdir map/ \
--out test
--model ./tests/data/outvcf_gen.dat \
--mapdir ./tests/map/ \
--chroms 1,2 \
--invcf ./tests/data/outvcf_test.vcf \
--sampleinfo ./tests/data/outvcf_info.tab \
--out ./tests/data/example_simgenotype
"""
from .sim_genotype import simulate_gt, write_breakpoints, output_vcf, validate_params
chroms = chroms.split(',')
Expand Down
Loading

0 comments on commit d76c013

Please sign in to comment.