association tests

81 views
Skip to first unread message

Cristhiam de Jesus Hernandez Martinez

unread,
Oct 31, 2022, 3:35:11 PM10/31/22
to plink2-users

Hi all

I am trying to make a linear association (case-control) in plink2

with the following command:

plink2 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr --pheno FID_IID_2Affected_or_1Unaffected.pheno --glm

I tested some other commands :

plink2 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr --pheno FID_IID_2Affected_or_1Unaffected.pheno --glm [2Affected_or_1Unaffected]

 

plink2 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr --pheno FID_IID_2Affected_or_1Unaffected.pheno --glm \--covar tmp.cov \--parameters 2Affected_or_1Unaffected

 

plink2 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr --pheno FID_IID_2Affected_or_1Unaffected.pheno --glm--covar3

and the answer I always got for the different commands tested was erro:

 Error: Unrecognized flag ˂--glm--parameters>

Any suggestions as to what might be the problem? or the recommended command to compare control group with test group. The data I am analyzing is methylation array.

 

Thanks

Christopher Chang

unread,
Nov 1, 2022, 11:02:21 AM11/1/22
to plink2-users
You need to post the exact .log file from one of your failed runs, because this error is probably caused by something you're doing with backslashes and spaces that you did not fully reproduce in your post.

Cristhiam de Jesus Hernandez Martinez

unread,
Nov 2, 2022, 10:34:16 AM11/2/22
to plink2-users

Dear Chrch,

I have 24 samples (cases vs control) and I am trying to make a link in plink 2 with the following command:

plink2\

 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr\

 --pheno C6_vs_G6.pheno\

 --glm\

 --allow-no-covar


when I execute the command it says flag --allow-no-covar is not recognizable

what am i doing wrong, how can i reverse this? i am new to plink and learning.
plink2.png

Christopher Chang

unread,
Nov 2, 2022, 12:24:56 PM11/2/22
to plink2-users
The correct syntax is "--glm allow-no-covars", not "--glm --allow-no-covar".  There is no --allow-no-covar flag in the index; there is an 'allow-no-covars' modifier listed in the --glm documentation.

Cristhiam de Jesus Hernandez Martinez

unread,
Nov 9, 2022, 3:43:32 PM11/9/22
to plink2-users
Dear Chrch
I am trying to make an extraction of data that is significant 0.05, when I execute the following command 

plink2\

 --pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr_sort-vars\

 --pheno CC_vs_GC.pheno\

 --geno 0.084\

--out plink2.geno0.084\

--extract Significant0.05CC_vr_GC.txt\

 --export oxford[-v2]



it gives error -- export requires at least one output format.
what would be your suggestion
thanks

export oxford.jpg

Matthew Maher

unread,
Nov 9, 2022, 5:51:42 PM11/9/22
to Cristhiam de Jesus Hernandez Martinez, plink2-users
you gave a format of "oxford[-v2]" which is not valid. 

You no doubt meant either:
oxford
or
oxford-v2

oxford[-v2] is just syntax-lingo meaning "the -v2 suffix is optional"

--
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/540ade29-6c95-4653-a92b-a0ef7b414c4dn%40googlegroups.com.

Cristhiam de Jesus Hernandez Martinez

unread,
Nov 11, 2022, 12:18:52 PM11/11/22
to plink2-users
Thank you very much, I am trying to get the P value of the comparisons of the control group with the test group, I initially ran the following command
plink2\
--pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr\
--make-pgen\
--sort-vars\
--out SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr_sort-vars

then I made the filtering of the P values less than or equal to 0.05 with the following command

plink2\
--pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr_sort-vars\
--pheno C6_vs_G6.pheno\
--glm allow-no-covars\
--geno 0.084\
--out plink2.geno0.084\
--pfilter 0.05

from that file copy the column 3 "ID" with the significant IDs of the cg probe and paste them in a text file plink2.geno0.084.Affected.glm.logistic.hybrid_cgProbeIDsSignificant

After doing this I ran the following command, and this is where the problem is that so far I could not solve it and need some guidance
plink2 \
--pfile SesameBetas.csv_winfinium-mouse-methylation-manifest-file-csv_IlmnID_CHR_MAPINFO_Build_mm10_FID_IID2_NoNAChr_sort-vars\
--pheno C6_vs_G6.pheno\
--geno 0.084\
--out plink2.geno0.084\
--extract plink2.geno0.084.Affected.glm.logistic.hybrid_cgProbeIDsSignificant\
--export A-transpose

attached you can find the text file with the file ID Significant0.05C6_vr_G6.txt
please help me 

1668100002984blob.jpg
plink2.geno0.084.Affected.glm.logistic.hybrid_cgProbeIDsSignificant.txt
Reply all
Reply to author
Forward
0 new messages