shenwei356 / taxonkit

A Practical and Efficient NCBI Taxonomy Toolkit, also supports creating NCBI-style taxdump files for custom taxonomies like GTDB/ICTV
https://bioinf.shenwei.me/taxonkit
MIT License
361 stars 29 forks source link

reformat should support tab characters in format string #5

Closed tolot27 closed 6 years ago

tolot27 commented 6 years ago

It would be great if reformat would support tab characters in the format string to separate the placeholders into separate columns.

It tried to provide tabs with \t like following:

taxonkit reformat -f "{k}\t{p}\t{c}\t{o}\t{f}\t{g}\t{s}\t{S}"

An intermediate solution is to mask the string in bash like $'{k}\t{p}\t{c}\t{o}\t{f}\t{g}\t{s}\t{S}'. But that's not obvious to most users.

shenwei356 commented 6 years ago

Thanks for your suggestion, it's supported now in v0.2.4-dev2 or later versions.

Please try it and any feedback is welcome.