Skip to content

Commit

Permalink
Merge pull request #140 from andrewjpage/window_size_self_error
Browse files Browse the repository at this point in the history
Window size self error
  • Loading branch information
andrewjpage committed Apr 16, 2015
2 parents e8914d0 + 374aa52 commit 75e5a84
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.2
1.3.3
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
gubbins (1.3.3~trusty1) trusty; urgency=low

* Max window size arg bug

-- Andrew Page <[email protected]> Thu, 16 Apr 2015 16:09:00 +0000

gubbins (1.3.2~trusty1) trusty; urgency=low

* pass in self to window size check
Expand Down
10 changes: 5 additions & 5 deletions python/gubbins/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,27 +248,27 @@ def parse_and_run(self):
current_tree_name = GubbinsCommon.fasttree_current_tree_name(base_filename, i)
tree_building_command = GubbinsCommon.fasttree_tree_building_command(i, self.args.starting_tree,current_tree_name,base_filename,previous_tree_name,FASTTREE_EXEC, FASTTREE_PARAMS,base_filename )
fastml_command = GubbinsCommon.fasttree_fastml_command(FASTML_EXEC, starting_base_filename+".snp_sites.aln", base_filename, i)
gubbins_command = GubbinsCommon.fasttree_gubbins_command(base_filename,starting_base_filename+".gaps", i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.max_window_size)
gubbins_command = GubbinsCommon.fasttree_gubbins_command(base_filename,starting_base_filename+".gaps", i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.args.max_window_size)

elif i == 2:
previous_tree_name = current_tree_name
current_tree_name = GubbinsCommon.raxml_current_tree_name(base_filename_without_ext,current_time, i)
tree_building_command = GubbinsCommon.raxml_tree_building_command(i,base_filename_without_ext,base_filename,current_time,RAXML_EXEC,previous_tree_name, self.args.verbose)
fastml_command = GubbinsCommon.raxml_fastml_command(FASTML_EXEC, starting_base_filename+".snp_sites.aln", base_filename_without_ext,current_time, i)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.max_window_size)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.args.max_window_size)
else:
previous_tree_name = GubbinsCommon.raxml_previous_tree_name(base_filename_without_ext,base_filename, current_time,i)
current_tree_name = GubbinsCommon.raxml_current_tree_name(base_filename_without_ext,current_time, i)
tree_building_command = GubbinsCommon.raxml_tree_building_command(i,base_filename_without_ext,base_filename,current_time,RAXML_EXEC,previous_tree_name, self.args.verbose)
fastml_command = GubbinsCommon.raxml_fastml_command(FASTML_EXEC, starting_base_filename+".snp_sites.aln", base_filename_without_ext,current_time, i)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.max_window_size)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.args.max_window_size)

elif self.args.tree_builder == "raxml":
previous_tree_name = GubbinsCommon.raxml_previous_tree_name(base_filename_without_ext,base_filename, current_time,i)
current_tree_name = GubbinsCommon.raxml_current_tree_name(base_filename_without_ext,current_time, i)
tree_building_command = GubbinsCommon.raxml_tree_building_command(i,base_filename_without_ext,base_filename,current_time,RAXML_EXEC,previous_tree_name, self.args.verbose)
fastml_command = GubbinsCommon.raxml_fastml_command(FASTML_EXEC, starting_base_filename+".snp_sites.aln", base_filename_without_ext,current_time, i)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.max_window_size)
gubbins_command = GubbinsCommon.raxml_gubbins_command(base_filename_without_ext,starting_base_filename+".gaps",current_time, i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.args.max_window_size)

elif self.args.tree_builder == "fasttree":
previous_tree_name = GubbinsCommon.fasttree_previous_tree_name(base_filename, i)
Expand All @@ -278,7 +278,7 @@ def parse_and_run(self):

tree_building_command = GubbinsCommon.fasttree_tree_building_command(i, self.args.starting_tree,current_tree_name,previous_tree_name,previous_tree_name,FASTTREE_EXEC,FASTTREE_PARAMS,base_filename )
fastml_command = GubbinsCommon.fasttree_fastml_command(FASTML_EXEC, starting_base_filename+".snp_sites.aln", base_filename, i)
gubbins_command = GubbinsCommon.fasttree_gubbins_command(base_filename,starting_base_filename+".gaps", i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.max_window_size)
gubbins_command = GubbinsCommon.fasttree_gubbins_command(base_filename,starting_base_filename+".gaps", i,self.args.alignment_filename,GUBBINS_EXEC,self.args.min_snps,self.args.alignment_filename, self.args.min_window_size,self.args.max_window_size)

if self.args.verbose > 0:
print tree_building_command
Expand Down

0 comments on commit 75e5a84

Please sign in to comment.