Thursday, December 6, 2012

Use egrep to filter GTF file

Just an example using small regular expression to filter file by chromosome name:


cat Homo_sapiens.GRCh37.68.gtf | egrep "^(17|20)\b" > Homo_sapiens.GRCh37.68.17_20.gtf

No comments: