Hi,
Does anyone here know how to extract lines from a gtf file using a list/subset of gene id obtained from the same gtf file? I basically want a 'recoded' (in vcf terminology) gtf file containing information for only those genes which I am interested in.
I tried awk awk 'FNR==NR {a[$0];next} {for (i in a) if (i~$1) print i}'
and grep grep -Fwf
but these have not yielded what I want. Thank you for your help.
can you please paste some sample data?