In a multifasta file the fasta header having full details as follows:
">ENSMUSG0000005892|ENSMUST00000004524351|xclkvsldjldjkfklasdfjalsjk
">ENSMUSG0000001537|ENSMUST00000017451|dfasfasdfghfhgjhktytg
">ENSMUSG00000002234237|ENSMUST000000097869|pasdfasdfsadf
I want to extract only GeneID from above like
">ENSMUSG0000005892
">ENSMUSG0000001537
">ENSMUSG00000002234237
How can I extract only GeneID using perl program..??
Thanks.....
did you try to search this site before asking your question ?
This is a first semester student's question. Try something like split or a regex or bash or whatever, but I recommend trying to come up with an idea yourself before asking. Otherwise you'll never learn anything..