Extracting only first sequence from the multiline fasta file
perl -02 -ne '/(>[^>]+)/ && print $1' OG0012884.fa >TRINITY_DN9_c0_g1_i1.p1 MPMKGRFPIRRTLEFLRSGTVVFKDSVKILTVNYNTHGERSDGARKFVFFNIPQIQYQNP WIQILMFKNMTPSPFLRFYLDDGEQVLVDVEGKNHKQIVEHVKTILGKNDVLLEADKQVQ KEHSHPAHFGPKTYCLRECMCEVGGQVPCPGVVPLPKEMTGKYWTALRAGSAI*
How do I extract only the 2nd and 9th sequence, ?
Using Bash able to print only 1st ID in a fasta file ?
head -1 OG0012884.fa >TRINITY_DN9_c0_g1_i1.p1
How do i extract only the 2nd ID ?
Help is need, suggestions please.