Can anyone offer advice on what the below error code relates to. I am using co-loc R package with 2 GWAS datasets. Using coloc.abf function with pvalues, MAF, sample size and case/control cohort. Thank you
results <- coloc.abf( dataset1=list(snp=as.character(1_subset[,2]),pvalues=1_subset[,11],N=1_data_subset$sample_size, type="cc",s=0.327,MAF=1_data_subset[,12]), dataset2=list(snp=as.character(2_subset[,2]),pvalues=2_subset[,8],N=2_subset$sample_size,s=0.4319,MAF=1_subset[,12], type="cc"),p12=1e-06)
error code: Error in data.frame(V, z, r, lABF) :
arguments imply differing number of rows: 1994, 1992
In addition: Warning messages:
1: In 2 * N * f :
longer object length is not a multiple of shorter object length
2: In 2 * N * f * (1 - f) :
longer object length is not a multiple of shorter object length
3: In r * z^2 :
longer object length is not a multiple of shorter object length