Unverified Commit bdbfef1d authored by Jonathan King's avatar Jonathan King Committed by GitHub
Browse files

Fix check for max_seqlen.

Previously, long sequences were not excluded from the script.
This commit changes the comparison to exclude sequences with length
greater than args.max_seqlen.
parent 7c32b79f
...@@ -57,8 +57,7 @@ def main(args): ...@@ -57,8 +57,7 @@ def main(args):
seq = mmcif_object.chain_to_seqres[chain_id] seq = mmcif_object.chain_to_seqres[chain_id]
if(args.max_seqlen > 0): if(args.max_seqlen > 0 and len(seq) > args.max_seqlen):
if(len(seq) > len(seq)):
continue continue
fasta_file = '\n'.join([ fasta_file = '\n'.join([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment