number of snps in the bgen file (snptest)
1
1
Entering edit mode
8.6 years ago
muralinmars ▴ 100

Hi,

Is there a way to know the number of snps in the bgen file for each of the chromosome.

Thanks

SNP snptest • 3.9k views
ADD COMMENT
0
Entering edit mode

Thanks,

Used qctool to get a summary_stats and know the number of SNPs.

ADD REPLY
1
Entering edit mode
6.1 years ago
gavinband ▴ 20

Here are two other ways:

1: Using qctool: running qctool -g myfile.bgen [1] prints out a summary of the input data, including the number of variants and samples in the file.

2: Using bgenix: E.g. the command bgenix -g myfile.bgen -incl-range 22:0- -list would list all variants on chromosome 22. (You might have to index the file with bgenix -g myfile.bgen -index first.)

Best, g.

ADD COMMENT

Login before adding your answer.

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