Entering edit mode
5.6 years ago
Sam
▴
150
Dear Biostars
I have a GTF file and also a gene_id list file. I want to exclude the lines contain the gene_id of list file
any help?
Thanks
GTF file:
Chr08 StringTie exon 58908449 58908806 1000 - . gene_id "MSTRG.26714"; transcript_id "MSTRG.26714.1"; exon_number "1";
Chr08 StringTie exon 58917751 58917790 1000 - . gene_id "MSTRG.26718"; transcript_id "MSTRG.26718.1"; exon_number "2";
Chr05 StringTie exon 61586279 61586326 1000 + . gene_id "MSTRG.15742"; transcript_id "MSTRG.15742.1"; exon_number "1";
list file:
MSTRG.26714
MSTRG.26717
MSTRG.26704
output:
Chr08 StringTie exon 58917751 58917790 1000 - . gene_id "MSTRG.26718"; transcript_id "MSTRG.26718.1"; exon_number "2";
Chr05 StringTie exon 61586279 61586326 1000 + . gene_id "MSTRG.15742"; transcript_id "MSTRG.15742.1"; exon_number "1";
Try this: