retrieve with tabix only fields of interest
1
1
Entering edit mode
9.1 years ago
tonja.r ▴ 600

I am using tabix to retrieve information in a specific genomic region. need not the hole information but only let say second and the third column.

My file is constructed as follows:

##INFO=<ID=GENE,Description="Neighbouring Gene">
##INFO=<ID=A1,Description="Allele 1 (+)">
#SNPID  CHROM   POS     GENE    A1      A2      STUDIES CASES   CONTROLS

So, ideally I would like to have only SNPID, CHROM, POS, CASES.

Is there any possibility to retrieve only this information?

SNP • 2.0k views
ADD COMMENT
4
Entering edit mode
9.1 years ago
tabix file.tsv.gz chr12:345-678 | grep -v "##" | cut -f 1,2,3,7
ADD COMMENT

Login before adding your answer.

Traffic: 2158 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