Entering edit mode
7.1 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!
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