@@ -71,12 +71,11 @@ model = model_class()
7171genetic_map_class = getattr (species ,config ["genetic_map" ])
7272genetic_map = genetic_map_class ()
7373
74- # A list containing the names all simulated chromosomes you would
75- # like to include in each analysis
76- # TODO: Change this to list(species.genome.chromosomes)
74+ # The names of all chromosomes to simulate, separated by commas
75+ # Use "all" to simulate all chromsomes for the genome
7776chrm_list = [chrom for chrom in species .genome .chromosomes ]
7877if (config ["chrm_list" ] != "all" ):
79- chrm_list = chrm_list [: config ["chrm_list" ]]
78+ chrm_list = [ chr for chr in config ["chrm_list" ]. split ( "," ) ]
8079
8180# For plotting
8281generation_time = config ["generation_time" ]
@@ -152,7 +151,7 @@ rule run_stairwayplot:
152151 stairwayplot_code ,
153152 output : output_dir + "/Results/{seeds}/stairwayplot_estimated_Ne.txt"
154153 threads : 20
155- run :
154+ run :
156155 inputs = expand (output_dir + "/Intermediate/{seeds}/{chrms}.trees" ,
157156 seeds = wildcards .seeds , chrms = chrm_list )
158157 runner = stairway .StairwayPlotRunner (
@@ -286,7 +285,7 @@ rule all_plot:
286285 f3 = ne_files_msmc ,
287286 output :
288287 output_dir + "/Results/all_estimated_Ne.pdf"
289- run :
288+ run :
290289 plots .plot_all_ne_estimates (input .f1 , input .f2 , input .f3 , output [0 ],
291290 model = model , n_samp = num_sampled_genomes_per_replicate ,
292291 generation_time = generation_time , species = config ["species" ],
0 commit comments