I'm deleting the other thread as your answer here is more comprehensive than your comment there. But yes, martta95 - DO NOT open multiple threads for the same question. Next time, your duplicate posts will be deleted without warning.
C. Loop through your file if ID's (as shown above) to extract the relevant lines for transcript
for i in `cat id`; do grep -w "${i}" Hordeum_col9 ;done
mRNA ID=transcript:HORVU.MOREX.r2.UnG0628590.1.mrna1;Parent=gene:HORVU.MOREX.r2.UnG0628590.1;biotype=protein_coding;tag=Ensembl_canonical;transcript_id=HORVU.MOREX.r2.UnG0628590.1.mrna1
mRNA ID=transcript:HORVU.MOREX.r2.5HG0361000.1.mrna1;Parent=gene:HORVU.MOREX.r2.5HG0361000.1;biotype=protein_coding;tag=Ensembl_canonical;transcript_id=HORVU.MOREX.r2.5HG0361000.1.mrna1
mRNA ID=transcript:HORVU.MOREX.r2.UnG0628880.1.mrna1;Parent=gene:HORVU.MOREX.r2.UnG0628880.1;biotype=protein_coding;tag=Ensembl_canonical;transcript_id=HORVU.MOREX.r2.UnG0628880.1.mrna1
mRNA ID=transcript:HORVU.MOREX.r2.UnG0634500.1.mrna1;Parent=gene:HORVU.MOREX.r2.UnG0634500.1;biotype=protein_coding;tag=Ensembl_canonical;transcript_id=HORVU.MOREX.r2.UnG0634500.1.mrna1
Please don't post same content in multiple threads. Prior thread for reference : Hordeum genes addnotation
I'm deleting the other thread as your answer here is more comprehensive than your comment there. But yes, martta95 - DO NOT open multiple threads for the same question. Next time, your duplicate posts will be deleted without warning.