Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion indel_prediction/predictor/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def plot_predictions(theta_file, target_seq, pam_idx):
if pam_idx < 0 or pam_idx >= (len(target_seq)-3):
raise Exception('PAM idx out of range')

if sum([x in ['A','T','G','C'] for x in target_seq]) != len(target_seq):
if set(target_seq) - set("ATGC"):
raise Exception('Sequence must be composed of A,T,G,or C only')

if len(target_seq) < 20 or pam_idx < 13 or pam_idx > len(target_seq)-7:
Expand Down