plink2 extract subset of samples from .bgen file
1
1
Entering edit mode
4.2 years ago
UMen ▴ 10

Hi Biostars,

I try to extract a subset of samples from a .bgen file using plink2. Output format should also be .bgen.
Searched the manpages without success. Can anybody help me?

snp software error • 4.1k views
ADD COMMENT
1
Entering edit mode
4.2 years ago
plink2 \
  --bgen <.bgen filename> ref-last \
  --sample <.sample filename> \
  --keep <file with sample IDs to keep> \
  --export bgen-1.3 \
  --out <output filename prefix>

Note that this only preserves dosages, not genotype probabilities. If you care about preserving the raw probabilities in the .bgen file, you cannot use plink2.

ADD COMMENT

Login before adding your answer.

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