Open dridk opened 7 years ago
rename option is really usefull. it would be greate to have an index variable to put anywhere in the string name. For exemple :
seqtk rename <file.fasta> "sample_{INDEX} ; foo=32"
it will rename the header as following :
> sample_1;foo=32 ACGTATAT > sample_2;foo=32 TACGAA
This would be good.
Ideally you could use a C-style printf argument like sample_%05d;foo=32
C
printf
sample_%05d;foo=32
It's a reasonable simple pull request if I had more time: https://github.com/lh3/seqtk/blob/master/seqtk.c#L190-L192
rename option is really usefull. it would be greate to have an index variable to put anywhere in the string name. For exemple :
it will rename the header as following :