select chr22 lines from Ensembl GTF file
1
0
Entering edit mode
8.0 years ago
debitboro ▴ 260

Hi all,

I hope I can find what I'm looking for, so I just want to extract the lines that match to chromosome 22 from an Ensembl gtf file.

Any script or command to to this ?

Thanks for all

gtf files chr22.gtf RNA-Seq Ensembl • 1.7k views
ADD COMMENT
2
Entering edit mode
8.0 years ago

Something like:

awk '{if($1 == "22") print $0}' input.gtf > filtered.gtf

ADD COMMENT
1
Entering edit mode

Thank you Devon for your quick, short, and useful answer

ADD REPLY

Login before adding your answer.

Traffic: 2567 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6