DosageConvertor - convert dosage vcf files to plink for PRSice2

220 views
Skip to first unread message

Sara Wennersten

unread,
Apr 1, 2021, 1:48:15 PM4/1/21
to plink2-users
Hi, I'm new here so I hope I'm doing this right.

Has anyone used DosageConvertor to convert their TOPMed/Michigan Imputation Server output dosage.vcf files to plink binary files? I would like to convert these to plink binary files so I can use them as input for PRSice2.

I keep getting this error when I try to run the install.sh file in the DosageConvertor folder:
"Error: cget not installed. Please run 'pip install --user cget'." 

This is an error generated from the install.sh lines:
rm -rf cget/ release-build/ install.log
if [[ ! $(which cget) ]]; then
(>&2 echo "Error: cget not installed. Please run 'pip install --user cget'.")
exit -1
I have cget installed, along with updated versions of other modules, so I'm stuck here. Has anyone else had this issue and worked through it?

Thank you!
Sara

Christopher Chang

unread,
Apr 1, 2021, 1:52:08 PM4/1/21
to plink2-users
Note that plink2 --vcf has all the functionality you need for this.

Sara Wennersten

unread,
Apr 1, 2021, 1:55:05 PM4/1/21
to plink2-users
Thank you for your response. I will probably just use that. So it converts the chr#.dosage.vcf files to plink binary?
Thanks again.

Christopher Chang

unread,
Apr 1, 2021, 2:04:00 PM4/1/21
to plink2-users
Yes.

Note that the basic plink 1.x binary format supported by PRSice2 cannot store dosages.  If you do want to use the dosages, run

  plink2 --vcf <input filename> dosage=DS --export bgen-1.2 --out <output filename prefix>

to convert to .bgen instead.

Sara Wennersten

unread,
Apr 1, 2021, 2:07:52 PM4/1/21
to plink2-users
Will do. I am still very new at all of this, so I appreciate your time and input. Thank you so much!

Sara Wennersten

unread,
Apr 6, 2021, 2:23:09 PM4/6/21
to plink2-users
would this work for plink 1.9? if so, what version of bgen should be used?

Thanks!
Sara

Christopher Chang

unread,
Apr 6, 2021, 2:31:15 PM4/6/21
to plink2-users
Not if you want to keep dosages.

Sara Wennersten

unread,
Apr 6, 2021, 2:35:59 PM4/6/21
to plink2-users
Got it. Thank you. I have access to plink1.9 and I'm having issues installing plink2 but I will keep working on getting plink2 installed.
Reply all
Reply to author
Forward
0 new messages