Skip to content

Commit

Permalink
Merge pull request #22 from AdmiralenOla/devel
Browse files Browse the repository at this point in the history
1.3.3 (Hotfix version)
  • Loading branch information
AdmiralenOla committed Jun 9, 2016
2 parents 8ff9698 + 0151891 commit d1e90b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Scoary is designed to take the gene_presence_absence.csv file from [Roary] (http
- [Contact] (#contact)

## What's new?
v1.3.3 (9th Jun 2016)
- BUG FIX: Tree calculation had been broken since 1.3.2 yesterday. Sorry about that.

v1.3.2 (8th Jun 2016)
- Scoary SHOULD now be compatible with Python 3.x. Please report back if you disagree.
Expand Down Expand Up @@ -195,7 +197,7 @@ optional arguments:
presence/absence and trait files. NOTE: Even though
commas are the default they might mess with the
annotation column, and it is therefore recommended to
save your files using semicolon or tab (" ") instead.
save your files using semicolon instead.
SCOARY will output files delimited by semicolon
--version Display Scoary version, and exit.
Expand Down
2 changes: 1 addition & 1 deletion scoary/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.2'
__version__ = '1.3.3'
8 changes: 4 additions & 4 deletions scoary/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def main():
'presence/absence and trait files. NOTE: Even though '
'commas are the default they might mess with the '
'annotation column, and it is therefore recommended to '
'save your files using semicolon or tab ("\t") instead'
'. SCOARY will output files delimited by semicolon',
'save your files using semicolon instead. '
'SCOARY will output files delimited by semicolon',
default=',',
type=str)
parser.add_argument('--version', help='Display Scoary version, and exit.',
Expand Down Expand Up @@ -431,7 +431,7 @@ def StoreTraitResult(Trait, Traitname, max_hits, p_cutoff, correctionmethod, upg
cut_possibilities = {"Individual": "p_v", "Bonferroni": "B_p", "Benjamini-Hochberg": "BH_p"}

outfile.write("Gene;Non-unique gene name;Annotation;Number_pos_present_in;Number_neg_present_in;Number_pos_not_present_in;"
"Number_neg_not_present_in;Sensitivity;Specificity;Odds_ratio;p_value;Bonferroni_p;Benjamini_H_p;Max_Pairwise_comparisons;"
"Number_neg_not_present_in;Sensitivity;Specificity;Odds_ratio;Naive_p;Bonferroni_p;Benjamini_H_p;Max_Pairwise_comparisons;"
"Max_supporting_pairs;Max_opposing_pairs;Best_pairwise_comp_p;Worst_pairwise_comp_p\n")

print("Calculating max number of contrasting pairs for each significant gene")
Expand Down Expand Up @@ -498,7 +498,7 @@ def upgma(d):
if cluster[k] is None:
new_dist.append(1)
else:
new_dist.append((d.get_elm(i,k)*size[i] + d.get_elm(j,k)*size[j]) // new_size)
new_dist.append((d.get_elm(i,k)*size[i] + d.get_elm(j,k)*size[j]) / new_size)

# Insert new row/col in d
new_dist[i] = sys.maxsize
Expand Down

0 comments on commit d1e90b1

Please sign in to comment.