Skip to content

Commit

Permalink
Feature
Browse files Browse the repository at this point in the history
- Improved Error message for proteins in clustering from undeclared
proteomes in SpeciesClassification file
  • Loading branch information
Dominik R Laetsch committed Mar 13, 2017
1 parent 360b723 commit d4bc9cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kinfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,8 +1900,8 @@ def __init__(self, cluster_id, protein_ids):
self.protein_count = len(protein_ids)
try:
self.proteomes_by_protein_id = {protein_id : proteinCollection.proteinObjs_by_protein_id[protein_id].proteome_id for protein_id in protein_ids}
except KeyError:
sys.exit("[ERROR] - Proteins in clustering belong to proteomes that are not present in the SpeciesClassification-file. Please add those proteoemes or recluster by omitting these proteomes.")
except KeyError as e:
sys.exit("[ERROR] - Protein %s in clustering belong to proteomes that are not present in the SpeciesClassification-file. Please add those proteoemes or recluster by omitting these proteomes." % (e.args[0]))

self.proteome_ids_list = self.proteomes_by_protein_id.values()
self.protein_count_by_proteome_id = Counter(self.proteome_ids_list)
Expand Down

0 comments on commit d4bc9cb

Please sign in to comment.