weizhouUMICH / SAIGE

GNU Lesser General Public License v3.0
188 stars 73 forks source link

Error in setgenoTest_vcfDosage #321

Closed mferreiradasilva closed 3 years ago

mferreiradasilva commented 3 years ago

I'm getting the following error:

Error in setgenoTest_vcfDosage(vcfFile, vcfFileIndex, vcfField, ids_to_exclude_vcf = idstoExcludeFile, : Expecting a single string value: [type=double; extent=1].

What does this mean? What expects a single string value that wasn't given?

Input:

SPAGMMATtest(vcfFile="../dpru_filtered_newchr_newid_corrected.vcf.recode.vcf.gz", vcfFileIndex="../dpru_filtered_newchr_newid_corrected.vcf.recode.vcf.gz.csi", vcfField="GT", chrom=1, minMAF=0.05, GMMATmodelFile="corrected_2kmarkers.rda", varianceRatioFile="corrected_2kmarkers.varianceRatio.txt", SAIGEOutputFile="chrom1_results", IsOutputAFinCaseCtrl=T, IsOutputHetHomCountsinCaseCtrl=T, IsOutputNinCaseCtrl=T)

SOLVED:

I put chr=1 instead of chr="1", it expected a string and received a numeric.