--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/c7b02b04-81c7-4c53-8a7b-1c0712dd1891%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/c7b02b04-81c7-4c53-8a7b-1c0712dd1891%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/d16072b2-7ac2-4350-a957-042b13ea1432%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/CAOFp7EGTob_iFjjkWC4x3YUoe_bxTTjx5HzFD4MWZ%3Dn_K4GsXg%40mail.gmail.com.
Thank you so much. I did download my .samples via:#!bin/bash
for i in {1..22}; do
ukbgene imp -c${i} -m
doneand they look like this:ID_1 ID_2 missing sex
0 0 0 D
2743359 2743359 0 1
3055474 3055474 0 2I assume this is ready to run, and I don't need to add pheno column on the end of .sample files?
On Tue, Jul 30, 2019 at 1:25 PM Richard Yanicky wrote:
I am working with Ukb data and plink2. Thank you to this group for all your help.This document which is part of the UKb process and is part of users manual it lists details about the data with examples on how to download. I would have been lost without this.plink2 is the core engine of our process .Regards,Richard
On Tue, Jul 30, 2019 at 11:18 AM Christopher Chang wrote:
Again, you should be able to download .sample files directly from the UK Biobank servers.
On Tuesday, July 30, 2019 at 11:03:23 AM UTC-7, Ana Marija wrote:
Yes I will use Plink2I downloaded .fem files for each CHR and they look like this:2743359 2743359 0 0 1 Batch_b001
3055474 3055474 0 0 2 Batch_b001
1804099 1804099 0 0 2 Batch_b001How can I utilize those to create .sample file and how they should look on the end?I know that I have to use 0 for control and 1 for case in pheno column.
On Tue, Jul 30, 2019 at 12:56 PM Christopher Chang wrote:
1. The UK Biobank should provide .sample files.--2. If you try running that command, it'll tell you that the .bgen format version is not supported by plink 1.9. You need to use plink 2.0 here. "plink2 --bgen <bgen_file> ref-first --sample <sample_file>" should work. (Note the "ref-first": the .bgen specification does not say whether REF alleles are first or second, so you need to tell plink2 that they appear first in UK Biobank .bgen files.)
On Tuesday, July 30, 2019 at 10:34:21 AM UTC-7, Ana Marija wrote:Hello,I got my .bgen files from UKbiobank and I have my phenotype file (where I have subject ID and pheno column where case=2 and control=1).I would like to use Plink to run GWAS.As I understood the first step would be to convert my bgen and sample files to vcf with something like:plink –bgen [bgen_file] –sample [sample_file]My question is how my .sample file should look like?ThanksAna
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/c7b02b04-81c7-4c53-8a7b-1c0712dd1891%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/d16072b2-7ac2-4350-a957-042b13ea1432%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
plink2 --pgen chr22.pgen --pvar chr22.pvar --psam chr22.psam --export vcf vcf-dosage=DS plink2 --pgen chr22.pgen --pvar chr22.pvar --psam chr22.psam --export vcf vcf-dosage=DS
I got error:
Random number seed: 1564580134
128952 MiB RAM detected; reserving 64476 MiB for main workspace.
Using up to 28 threads (change this with --threads).
487409 samples (264314 females, 223003 males, 92 ambiguous; 487409 founders)
loaded from chr22.psam.
1255683 variants loaded from chr22.pvar.
Note: No phenotype data present.
--export vcf to plink2.vcf ...
Error: File write failure.Do you have enough disk space/quota?
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/ad2d7d8a-f8fc-4251-a17e-1658c8ff9ca4%40googlegroups.com.
You might be running too old of a plink2 build. I can’t tell because you keep removing that information from the .log info you post; this just wastes your time and mine.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
On Wed, Jul 31, 2019 at 10:10 AM Christopher Chang wrote:
You might be running too old of a plink2 build. I can’t tell because you keep removing that information from the .log info you post; this just wastes your time and mine.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
Thank you do much, yes I will get newer version. Also can I include this dosage info like this?plink2 --pgen chr22.pgen --pvar chr22.pvar --psam chr22.psam --export vcf bgz vcf-dosage=DS
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
Thank you so much!If there is any chance that I can compress the output of this command:plink2 --bgen ukb_imp_chr22_v3.bgen --sample ukb44316_imp_chr22_v3_s487317.sample --out chr22and put that compressed file in this command?plink2 --pfile chr22 --export vcf bgz vcf-dosage=DS --out VCFchr22
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/a7eeded8-713d-4c00-bdc3-b0fd0607b7e8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/a7eeded8-713d-4c00-bdc3-b0fd0607b7e8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/f0fa2b48-675e-4aa7-ac83-a413088c10e1%40googlegroups.com.
> >>>>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
> >>>>>>>>>>>>>>>> To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> --
> >>>>>>>>>>>>>> You received this message because you are subscribed to the Google Groups "plink2-users" group.
> >>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
> >>>>>>>>>>>>>> To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> You received this message because you are subscribed to the Google Groups "plink2-users" group.
> >>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
> >>>>>>>>>>>> To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> You received this message because you are subscribed to the Google Groups "plink2-users" group.
> >>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
> >>>>>>>>> To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/a7eeded8-713d-4c00-bdc3-b0fd0607b7e8%40googlegroups.com.
> >>>>>>>
> >>>>>>> --
> >>>>>>> You received this message because you are subscribed to the Google Groups "plink2-users" group.
> >>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
Thank you so much!!!
To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/790c03fb-6167-434e-bad0-8c4f0650ff37%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/114a7ce6-8b09-43df-897a-4d4cf6fbf264%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/899b0e35-298c-444d-9fc8-75c32c6e168b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/a7eeded8-713d-4c00-bdc3-b0fd0607b7e8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2...@googlegroups.com.
~/plink2 --bgen UKB_chr22_AFTER_QC.bgen ref-first --sample ~/UKB_chr22_AFTER_QC.sample --glm --pheno labels_pheno.txt --out from_bgen_chr22 --1
Error: --data/--sample cannot be used with --1.
plink2 --bgen ukb_imp_chr1_v3.bgen 'ref-first' --sample ukb_imp_chr1_v3_s487280.sample --extract snp.txt --make-bed
and the snp.txt only has the rs ID of one SNP: rs71658797
###############below is the run log #######
PLINK v2.00a2LM AVX2 Intel (10 Sep 2019) www.cog-genomics.org/plink/2.0/
(C) 2005-2019 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to plink2.log.
Options in effect:
--bgen /storage1/fs1/uk-biobank/Active/UKB_Genetics/imputed/ukb_imp_chr1_v3.bgen ref-first
--extract /storage1/fs1/yin.cao/Active/rosyluo/UKbiobank/Lung_PRS/Data/genotype/Chr1_LungPRS_19SNP.txt
--make-bed
--sample /storage1/fs1/yin.cao/Active/rosyluo/UKbiobank/ukb55288_imp_chr1_v3_s487280.sample
Start time: Fri Feb 19 23:02:00 2021
385353 MiB RAM detected; reserving 192676 MiB for main workspace.
Using up to 32 threads (change this with --threads).
--bgen: 7402791 variants detected, format v1.2.
487409 samples imported from .sample file to plink2-temporary.psam .
--bgen: 7402k variants scanned.Killed
###############When checking into the .pvar file, I still get the 720k ish variants but not the one variant I want to extract. Seems like the --extract options is not passed in? Or these 3 temporary files will be produced no matter how many snps I want to extract?