comparison 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
comparison
equal deleted inserted replaced
6:7521d865e770 7:d5c640895ed6
30 if line.lstrip().startswith(">"): 30 if line.lstrip().startswith(">"):
31 record_count += 1 31 record_count += 1
32 32
33 if num_chunks != 0: 33 if num_chunks != 0:
34 records_per_chunk = round(float(record_count) / num_chunks) 34 records_per_chunk = round(float(record_count) / num_chunks)
35 35 elif record_limit and record_count > record_limit:
36 if record_limit and record_count > record_limit:
37 exit(f"ERROR: Number of sequences {record_count} exceeds limit {record_limit}") 36 exit(f"ERROR: Number of sequences {record_count} exceeds limit {record_limit}")
38 37
39 count = 1 38 count = 1
40 with open(input_filename) as input_file: 39 with open(input_filename) as input_file:
41 40