Skip to content

Commit

Permalink
Merge pull request #5 from liliblu/ptm_index_issue
Browse files Browse the repository at this point in the history
fixed indexing issue in ptm_per_module in gene_ontology_analysis.py
  • Loading branch information
tobsecret authored Dec 5, 2020
2 parents a3c4310 + 579d174 commit ecf0ab5
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 ecf0ab5

Please sign in to comment.