Skip to content

Commit

Permalink
use pangenie scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ASLeonard committed Nov 16, 2023
1 parent 44bf558 commit ce7b856
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snakepit/pangenie_panel.smk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ configfile: "config.json"
samples = config['assemblies'].keys()
samples_parents = [s for s in samples if not s in config['trios']]
scripts = config['scripts']
mscripts = config['mscripts']
outdir = config['outdir']
chromosomes = list(map(str,range(1,30))) #[str(i) for i in range(1,23)] + [config['reference']['prefix'] + 'X', config['reference']['prefix'] + 'Y']
frac_missing = config.get('frac_missing',0.2) # skip positions with more than this fraction of missing alleles
Expand Down Expand Up @@ -241,7 +240,7 @@ rule combine_haplotypes:
mem_mb=10000,
walltime = '24:00'
shell:
'python3 {mscripts}/merge_vcfs.py combine_columns -samples {input.samples} -vcf {input.haps} > {output}'
'python3 {scripts}/merge_vcfs.py combine_columns -samples {input.samples} -vcf {input.haps} > {output}'


#################################################################
Expand Down Expand Up @@ -287,7 +286,7 @@ rule check_mendelian_consistency:
walltime = '24:00'
shell:
"""
python3 {mscripts}/mendelian-consistency.py filter -vcf {input.vcf} -samples {input.samples} -ped {input.ped} -o {output.tsv} > {output.vcf}
python3 {scripts}/mendelian-consistency.py filter -vcf {input.vcf} -samples {input.samples} -ped {input.ped} -o {output.tsv} > {output.vcf}
"""

rule merge_haplotypes:
Expand All @@ -304,7 +303,7 @@ rule merge_haplotypes:
walltime = '4:00'
shell:
"""
python3 {mscripts}/merge_vcfs.py merge -vcf {input.vcf} -r {input.reference} -ploidy 2 -chromosomes {wildcards.chr} -max_edit_distance 0.02 > {output.tmp}
python3 {scripts}/merge_vcfs.py merge -vcf {input.vcf} -r {input.reference} -ploidy 2 -chromosomes {wildcards.chr} -max_edit_distance 0.02 > {output.tmp}
"""

#############################################
Expand Down

0 comments on commit ce7b856

Please sign in to comment.