Skip to content

Commit

Permalink
fixes error when amino acids are presented as lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
weederb23 committed Aug 31, 2021
1 parent 6286d7e commit eb5785f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pepsickle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,23 @@ def main():
elif options.sequence:
if options.model_type == 'epitope':
out = predict_protein_cleavage_locations(protein_id="None",
protein_seq=options.sequence,
protein_seq=options.sequence.upper(),
model=cleavage_model,
mod_type="epitope",
proteasome_type=options.proteasome_type,
threshold=options.threshold)

elif options.model_type == 'in-vitro-2':
out = predict_protein_cleavage_locations(protein_id="None",
protein_seq=options.sequence,
protein_seq=options.sequence.upper(),
model=cleavage_model,
mod_type="in-vitro-2",
proteasome_type=options.proteasome_type,
threshold=options.threshold)

elif options.model_type == 'in-vitro':
out = predict_protein_cleavage_locations(protein_id="None",
protein_seq=options.sequence,
protein_seq=options.sequence.upper(),
model=cleavage_model,
mod_type="in-vitro",
proteasome_type=options.proteasome_type,
Expand Down
2 changes: 1 addition & 1 deletion pepsickle/model_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def process_fasta(fasta_file, cleavage_model, verbose=False, **kwargs):
if i % 100 == 0 and verbose:
print("completed:", i, "of", end)
tmp_out = predict_protein_cleavage_locations(
protein_id=protein_id, protein_seq=protein_list[protein_id],
protein_id=protein_id, protein_seq=protein_list[protein_id].upper(),
model=cleavage_model, **kwargs)

for line in format_protein_cleavage_locations(tmp_out):
Expand Down

0 comments on commit eb5785f

Please sign in to comment.