Skip to content
Snippets Groups Projects
Commit 47ac38ae authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent b9dbc5be
No related merge requests found
......@@ -108,7 +108,7 @@ def run(argv=sys.argv[1:]):
peptides = pandas.read_csv(args.input_peptides).peptide.drop_duplicates()
print("Filtering to valid peptides. Starting at: ", len(peptides))
peptides = peptides[peptides.str.match("[ACDEFGHIKLMNPQRSTVWY]+")]
peptides = peptides[peptides.str.match("^[ACDEFGHIKLMNPQRSTVWY]+$")]
print("Filtered to: ", len(peptides))
peptides = peptides.unique()
num_peptides = len(peptides)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment