Skip to content

Error message #1

Description

@jzollner

I am getting the following error:

Error in 2:ncol(all_scores): argument of length 0

I am using the following script:


combine_PRS(
  pheno_file = "~/path/phenotype.txt",
  covariate_file = "~/path/covariate.txt",
  score_files_list = c("~/path/score_file1.sscore"),
  trait_specific_score_file = "~/path/cad_list.txt",
  pheno_name = "GDM",
  isbinary = TRUE,
  out = "GDM_combined_PRS",
  liabilityR2 = TRUE,
  IID_pheno = "IID",
  covar_list = c("parity", "bmi", "PC1", "PC2", "PC3", "PC4"),
  cat_covar_list = c("parity"),
  ncores = 4,
  is_extract_adjSNPeff = FALSE
)

I am using scores that I previously created using plink2.
scorefile.txt is formatted as

(IID FID PGS1 PGS2... etc)

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions