Editing Date Format in Fasta Header
0
0
Entering edit mode
7.2 years ago
gcalder94 • 0

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 • 868 views
ADD COMMENT
0
Entering edit mode

If you have the fractions in a separate file then may be able to use one the solutions in this thread: Renaming fasta headers according to a matching name list

ADD REPLY

Login before adding your answer.

Traffic: 2905 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6