I have a big genome file (protein sequence) and I am trying to get matches that are more than 70 amino acids long. I am using the following regex pattern.
x = re.finditer("(M[^X|@|]{70, })(?:X), sequence)
Is there a way to get a user-defined value instead of that 70? I was thinking of dot formatting/ %s but nothing seems to be working. Any help will be greatly appreciated. Thanks.