Skip to content

Commit

Permalink
Update snakemake
Browse files Browse the repository at this point in the history
change seed to 27
  • Loading branch information
Rendrick27 committed May 12, 2024
1 parent 3857b25 commit 6b7c000
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ from python import newick_tree_visualizer


# Dataset
sample_names = [os.path.splitext(os.path.basename(file))[0] for file in glob.glob("ascn_/*.txt")]
sample_names = [os.path.splitext(os.path.basename(file))[0] for file in glob.glob("ascn/*.txt")]

rule all:
input:
"Tree.svg"

rule Download_ASCN:
input:
ascn="ascn_/{sample}.txt"
ascn="ascn/{sample}.txt"
output:
fasta="fasta/{sample}.fasta"
run:
Expand Down Expand Up @@ -106,7 +106,7 @@ rule maximum_likelihood_tree_step_1:
outgroup="Macrobiotus_rybaki"
shell:
"""
raxml-ng --msa {input.msa} --model {input.model} --threads {params.threads} --seed 333 --tree pars{{100}},rand{{100}} --force perf_threads --outgroup {params.outgroup}
raxml-ng --msa {input.msa} --model {input.model} --threads {params.threads} --seed 27 --tree pars{{100}},rand{{100}} --force perf_threads --outgroup {params.outgroup}
"""
rule maximum_likelihood_tree_step_2:
input:
Expand All @@ -123,7 +123,7 @@ rule maximum_likelihood_tree_step_2:
#outgroup="Macrobiotus_rybaki,Sisubiotus_spectabilis,Mesobiotus_datanlanicus"
shell:
"""
raxml-ng --bootstrap --msa {input.msa} --model {input.model} --threads {params.threads} --seed 1 --bs-trees autoMRE{{{params.bootstrap_trees}}} --force perf_threads --outgroup {params.outgroup}
raxml-ng --bootstrap --msa {input.msa} --model {input.model} --threads {params.threads} --seed 27 --bs-trees autoMRE{{{params.bootstrap_trees}}} --force perf_threads --outgroup {params.outgroup}
"""
rule maximum_likelihood_tree_step_3:
input:
Expand All @@ -137,7 +137,7 @@ rule maximum_likelihood_tree_step_3:
shell:
"raxml-ng --support --tree {input.tree} --bs-trees {input.bootstraps} --threads {params.threads} --force perf_threads"

rule build_tree_mafft:
rule build_tree:
input:
tree="tree/concatenated.fasta.raxml.bestTree.raxml.support"
output:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6b7c000

Please sign in to comment.