Question: Use PLINK2 to extract the specific variants
0
gravatar for wangdp123
5 months ago by
wangdp123250
Oxford
wangdp123250 wrote:

Hi there,

I am attempting to use PLINK2 with its --extract flag to extract the specific set of variants from UK Biobank dataset in *.bgen format. Unfortunately, the variant IDs contained in .bgen file is in rs_id format, which is not unique.

For example, the two different SNPs happening in the same locus will be given the exactly the same rs_id. But I only want to extract the information for one of them.

I wonder if there is a way to ask PLINK2 to extract the variants not only based on the variant ID but also by the Allele1 and Allele2 information?

Many thanks,

Tom

plink2 • 228 views
ADD COMMENTlink modified 5 months ago by chrchang5237.5k • written 5 months ago by wangdp123250
0
gravatar for chrchang523
5 months ago by
chrchang5237.5k
United States
chrchang5237.5k wrote:

If you don't care about the rsIDs, you can just create new IDs with e.g. --set-all-var-ids.

ADD COMMENTlink written 5 months ago by chrchang5237.5k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 990 users visited in the last hour