Open smsinks opened 1 year ago
A more informative error is thrown by the current version of coloc:
Error in check_dataset(d = dataset1, 1) :
dataset 1: missing required element(s) snp
The error highlights the issue: the "SNP" column needs to be renamed to "snp".
The dataset is supposed to be a list, not a data frame. There should be a single value for type, not one for each SNP. This is to emphasise that type is a study level, not snp level variable
-- https://chr1swallace.github.io
From: catheriz @.> Sent: Sunday, December 17, 2023 2:53:46 AM To: chr1swallace/coloc @.> Cc: Subscribed @.***> Subject: Re: [chr1swallace/coloc] Error when running COLOC (Issue #117)
same error: Error in if (!(d$type %in% c("quant", "cc"))) stop("dataset ", suffix, : the condition has length > 1 My data looks like this: snp chromosome position allele1 allele2 maf 35112 1:113709948:T:C 1 113709948 C T 0.017673257 485129 1:113710657:G:T 1 113710657 T G 0.008543363 617108 1:113710779:C:T 1 113710779 T C 0.008247302 36097 1:113710928:G:A 1 113710928 A G 0.017593139 10906 1:113711017:C:T 1 113711017 T C 0.248750745 10822 1:113711270:A:G 1 113711270 G A 0.250942147 beta se z N varbeta type 35112 -0.591678 0.2111050 -2.8027664 12791 0.044565321 cc 485129 0.240849 0.2486460 0.9686422 12791 0.061824833 cc 617108 0.187615 0.2451400 0.7653382 12791 0.060093620 cc 36097 -0.587967 0.2112820 -2.7828542 12791 0.044640084 cc 10906 -0.233390 0.0506506 -4.6078428 12791 0.002565483 cc 10822 -0.235175 0.0506890 -4.6395668 12791 0.002569375 cc
— Reply to this email directly, view it on GitHubhttps://github.com/chr1swallace/coloc/issues/117#issuecomment-1859021220, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2HJ627EQDEIHCUBR7DYJZNDVAVCNFSM6AAAAAAWF2FUM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGAZDCMRSGA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Could you please help with the following error message.
I am attempting to execute COLOC on two GWAS summary statistics. However, when I try to run COLOC using the code provided below, an error is produced and displayed as follows:
Below are the headers of the two data frames for the GWAS summary statistics: