Entering edit mode
6.5 years ago
MB
▴
50
I have multiple FASTA files consisting of more than a thousand FASTA sequences with FASTA header as follows:
>KXL50728 pep supercontig:ASM157207v1:5WFSArich_Contig_00366:153:473:1 gene:FE78DRAFT_27124 transcript:KXL50728 gene_biotype:protein_coding transcript_biotype:protein_coding description:hypothetical protein
>KXL50729 pep supercontig:ASM157207v1:5WFSArich_Contig_00366:642:809:1 gene:FE78DRAFT_126205 transcript:KXL50729 gene_biotype:protein_coding transcript_biotype:protein_coding description:hypothetical protein
I want to edit these headers as follows:
>KXL50728Acidomycesrichmondensis
>KXL50729Acidomycesrichmondensis
Could anybody please tell me how to do it using Perl or using sed command (most preferable)?
Thanks to all, it worked!
You're welcome.
Please be so kind to mark all answers as accepted. Doing so everyone can see that this solve your problem.
fin swimmer
Please use
ADD COMMENT
orADD REPLY
to answer to previous reactions, as such this thread remains logically structured and easy to follow. I have now moved your reaction but as you can see it's not optimal. Adding an answer should only be used for providing a solution to the question asked.If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.