I just started to work on UK Biobank (interim data) project and I am not PLINK savvy, so excuse me if I asked basic questions (I will definitely google first).
Since the UKB imputed data (.bgen file) are large, and my research of interest are just a list of snps. I would love to extract a small subset of the bgen file. I know the traditional way is to use qctool, but I kept receiving error message, and I have raised the question to their mailing list as well.
When I tried to conduct the same task using PLINK2, I tried "plink2 --bgen chr19impv1.bgen --sample impv1.sample --extract rs6857.txt --out rs6857.bgen", and it could not be done and it reminded me to rerun --make-bed.
Options in effect:
--bgen chr19impv1.bgen
--extract rs6857.txt
--out rs6857.bgen
--sample impv1.sample
96736 MB RAM detected; reserving 48368 MB for main workspace.
Error: Basic file conversions do not support regular filtering operations.
Rerun your command with --make-bed.
I really want to keep bgen file or gen file for further analyses. So I just want to ask is there any way to accomplish the task. Also if I want to use PLINK to deal with bgen files, what steps do I have to go through to get a subset and then merge the multiple files (one for a snp of interest, or one for a list of snps from one chromosome) to one.
Thanks so much!!