Clumping without rsID. Error: No variant ID field found in text file

586 views
Skip to first unread message

Davide Piffer

unread,
Feb 9, 2023, 5:39:29 AM2/9/23
to plink2-users
I am trying to perform LD clumping on GWAS summary file. The problem is that the file lacks rsID and only has Chr and Pos columns. Hence I create a column named ID which is in the format #:Pos. I also run this command on the 1KG bed file:
./plink2 --bfile ~/genetics_2020/1kgtot_filt --set-all-var-ids @_# --make-bed --out ~/genetics_2020/1kgtot_filt.noid
So in both the 1kg bim file and in the gwas text file, the chr_pos column has this format: 1_10177
But when I try 
./plink --bfile ~/genetics_2020/1kgtot_filt.noid --clump-r2 0.1 --clump-kb 250 --clump-field p -clump-p1  0.00000005 --clump ~/Documents/schizophrenia/PGCALZ2sumstatsExcluding23andMe.new.txt --out ~/Documents/schizophrenia/ALZA.r2.5e8

I get Error: No variant ID field found in
/home/davide/Documents/schizophrenia/PGCALZ2sumstatsExcluding23andMe.new.txt.

I tried running the code with the  --clump-snp-field ID flag but I get the same error message.

How do I clump without rsID? Is it possible to do it using the position only?

Christopher Chang

unread,
Feb 9, 2023, 11:24:10 AM2/9/23
to plink2-users
Please post the full .log file from the failed --clump-snp-field run, and the first line of the --clump file.

Chris Chang

unread,
Feb 9, 2023, 2:29:29 PM2/9/23
to Davide Piffer, plink2-users
You'll need to preprocess the --clump file to replace commas with tabs/spaces; PLINK 1.x --clump does not accept CSVs.

On Thu, Feb 9, 2023 at 11:25 AM Davide Piffer <piffer...@gmail.com> wrote:
Here you go:

chr,PosGRCh37,testedAllele,otherAllele,z,p,N,ID
1,13668,A,G,-0.337420411213705,0.7358,74004,1_13668

--
You received this message because you are subscribed to a topic in the Google Groups "plink2-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plink2-users/goM30rwPun8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/e442ce33-2b61-4f30-b8dc-1f0724f44aa4n%40googlegroups.com.

Davide Piffer

unread,
Feb 9, 2023, 3:34:42 PM2/9/23
to Chris Chang, plink2-users
Thanks, it worked!
Reply all
Reply to author
Forward
0 new messages