Skip to content

Commit

Permalink
fixed indexing issue in ptm_per_module in gene_ontology_analysis.py
Browse files Browse the repository at this point in the history
The fixed line would always throw an error because floats are used for indexing a list, which python does not allow.
  • Loading branch information
tobsecret committed Dec 5, 2020
1 parent 6d8f2ee commit 579d174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phosphodisco/gene_ontology_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ptm_per_module(
raise ValueError('Module sequences must be at least 15 AAs long')
if len(list(module_seq_dict.values())[0]) > 15:
module_seq_dict = {
k: [seq[(len(seq)/2-0.5)-7: (len(seq)/2-0.5)+8]
k: [seq[int((len(seq)/2-0.5)-7): int((len(seq)/2-0.5)+8)]
for seq in v] for k, v in module_seq_dict.items()
}
background_seqs = set(background_seqs)
Expand Down

0 comments on commit 579d174

Please sign in to comment.