Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When working throught the PRS vignette, an error is thrown in section 6.6.1 #19

Open
timcadman opened this issue Feb 29, 2024 · 0 comments

Comments

@timcadman
Copy link

Having run through the steps to assign the data, the following line:

ds.PRS(resources = resources, pgs_id = "PGS000660", 
       table = "phenotypes", table_id_column = "subject_id")

triggers this error:

$cohort1
[1] "Command 'PRSDS(resources = c(gds1_object, gds2_object, gds3_object, gds4_object, gds5_object, gds6_object, gds7_object, gds8_object, gds9_object, gds10_object, gds11_object, gds12_object, gds13_object, gds14_object, gds15_object, gds16_object, gds17_object, gds18_object, gds19_object, gds20_object, gds21_object), snp_threshold = 90, pgs_id = 'PGS000660', snp_assoc = FALSE)' failed on 'cohort1': Error while evaluating 'is.null(base::assign('prs_results', value={dsOmics::PRSDS(resources = dsBase::vectorDS(gds1_object, gds2_object, gds3_object, gds4_object, gds5_object, gds6_object, gds7_object, gds8_object, gds9_object, gds10_object, gds11_object, gds12_object, gds13_object, gds14_object, gds15_object, gds16_object, gds17_object, gds18_object, gds19_object, gds20_object, gds21_object), snp_threshold = 90, pgs_id = 'PGS000660', snp_assoc = FALSE)}))' -> Error in if (c(\"chr_name\", \"chr_position\") %in% colnames(scorings)) { : \n  the condition has length > 1\n"

(repeated for cohorts 2 & 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant