This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Editing Date Format in Fasta Header

Hi,

I have a large number of sequences that end with "_YYYY-MM-DD" and I want them to be displayed as fractional years

ie _2000-07-11 to become _2000.526027

I have the decimal values for the fractions saved as .txt and in an excel sheet, I just need to parse them onto the end of the header (and delete -MM-DD).

Is it possible to do this with sed and awk, and if so what is the script?

Thank you!

sequence fasta

0 answers

No answers yet.

Log in to answer this question.