Skip to content

Commit 84c083d

Browse files
Update modify_peptides.py
1 parent cfa7234 commit 84c083d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/modify_peptides.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def generate_modifed_peptides(n, name, base_sequence):
3232
characters = ['K', 'R']
3333

3434
# Generate all possible combinations up to length n
35-
all_combinations = chain.from_iterable(product(characters, repeat=i) for i in range(1, n + 1))
35+
all_combinations = chain.from_iterable(product(characters, repeat=i) for i in range(1, n))
3636
possible_modifications = set(''.join(combination) for combination in all_combinations)
3737

3838
peptide_table = []
@@ -248,4 +248,4 @@ def create_subpeptide_fastas_c_term(input_dir, results_dir, infile_path):
248248

249249

250250
if __name__ == "__main__":
251-
main()
251+
main()

0 commit comments

Comments
 (0)