diff split_fasta.py @ 7:d5c640895ed6 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit ff5396c8e44a191f6e5eb7eb526f75ae631ec67f
author bgruening
date Wed, 07 Jan 2026 12:44:18 +0000
parents 7521d865e770
children
line wrap: on
line diff
--- a/split_fasta.py	Tue Jan 14 21:52:36 2025 +0000
+++ b/split_fasta.py	Wed Jan 07 12:44:18 2026 +0000
@@ -32,8 +32,7 @@
 
 if num_chunks != 0:
     records_per_chunk = round(float(record_count) / num_chunks)
-
-if record_limit and record_count > record_limit:
+elif record_limit and record_count > record_limit:
     exit(f"ERROR: Number of sequences {record_count} exceeds limit {record_limit}")
 
 count = 1