verkkofillet.tl.sortContig#
- verkkofillet.tl.sortContig(ori_fasta, sorted_fasta=None, sort_by='hap')[source]#
Sorts sequences in a FASTA file based on a custom sorting criterion (e.g., ‘hap’, ‘chr’).
- Parameters:
ori_fasta – Path to the original FASTA file.
sorted_fasta – Path to save the sorted FASTA file. If None, it will be generated with surfix of “_sorted.fasta”
sort_by – Sorting criteria (default is “hap”). [‘hap’,’chr’]