Skip to content

Commit 24c4e2d

Browse files
fixing the max_length hard set at 3 to allow for user to choose the max legnth of peptides -- error found by Allen
1 parent 6efcef1 commit 24c4e2d

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+1))
3636
possible_modifications = set(''.join(combination) for combination in all_combinations)
3737

3838
peptide_table = []
@@ -74,7 +74,7 @@ def assign_unique_numbers(df, column_name):
7474
def main():
7575
args = parse_arguments()
7676

77-
max_length = args.n
77+
max_length = int(args.n)
7878

7979
peptides = pd.read_csv(args.m, names=["Name", "Sequence"], header=None)
8080
peptides = peptides[1:]

0 commit comments

Comments
 (0)