Entering edit mode
22 months ago
SaltedPork
▴
170
Hi, I have a fasta file which looks like:
>reference
AGCT
>entry1
AGCT
>entry2
AGCT
I want to split the fasta file by ID, but also include the reference in each file.
So far I am using seqkit split --by-id file.fasta
and then cat reference.fasta file1.fasta > results.fasta
However this is quite slow, is there a way of doing this in one command?