Dear friends I need a help from you to remove some part of fasta file heading.
For example I need to keep only gene id (ENSG00000026652) so that I need to remove all other parts right to the pipe
Since I am having about 4000 sequences I need to do this with the help of some programming
>ENSG00000026652|ENST00000437165;ENST00000320285;ENST00000366911;ENST00000436279;ENST00000366905
TTTGACACTTGCATAGCTGTTAGTAATTCTGCAATGTGCTTGGGCTATTTGTGAGCACAT
GTATTTTTCCTTTATAGATTATAAACATCTAAAGAACAAGGTTAACCCAGGAGTCAAGTA
AATAGTTAAATATTATTTTGACAATGGCTGTAATAGTGGACATTTGAAAGGAATACACCT
CAGTATTTTGAAATTGAAATAATTTTCTAGATCCTGGCATTTCTGGACTTTCAACAGCCC
Desired output
>ENSG00000026652
TTTGACACTTGCATAGCTGTTAGTAATTCTGCAATGTGCTTGGGCTATTTGTGAGCACAT
GTATTTTTCCTTTATAGATTATAAACATCTAAAGAACAAGGTTAACCCAGGAGTCAAGTA
AATAGTTAAATATTATTTTGACAATGGCTGTAATAGTGGACATTTGAAAGGAATACACCT
CAGTATTTTGAAATTGAAATAATTTTCTAGATCCTGGCATTTCTGGACTTTCAACAGCCC
I am bit familiar with the perl so can somebody help me to do this?
thank you... Jorjial that has perfectly worked....
Hello, I wonder how to use this command to delete all the character from"|" to the left end of the line? Thanks!
Thanks a lot ! Its work very well for my multifasta file that Ive been looking for two days.