Skip to content

Commit

Permalink
test out using snp-sites for multi filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Sep 28, 2020
1 parent 55efe1a commit 0fb1d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions workflow/envs/biopython.yaml → workflow/envs/filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ channels:
dependencies:
- python=3.8
- biopython=1.78
- snp-sites=2.5.1
6 changes: 4 additions & 2 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ rule snippy_multi_filter:
params:
missing = float(config["snippy_missing_data"] / 100)
conda:
os.path.join(envs_dir,"biopython.yaml")
os.path.join(envs_dir,"filter.yaml")
shell:
"python {scripts_dir}/filter_sites.py --fasta {input.full_aln} --missing {params.missing} --output {output.filter_snp_aln} --log {log}"
"snp-sites -m -c -b -o {results_dir}/snippy_multi/snippy-core.filter0.fasta {input.full_aln} ;"
"if [[ {config[snippy_missing_data]} > 0 ]]; then "
"python {scripts_dir}/filter_sites.py --fasta {input.full_aln} --missing {params.missing} --output {output.filter_snp_aln} --log {log}; fi"

0 comments on commit 0fb1d24

Please sign in to comment.