Skip to content

FOGS.R error (ERROR : subscript out of bounds) #2

Description

@raogeneron

Hi,

We are trying to run FOGS.R in command line (after loading in plink and R) using the following commands:

Rscript ~/FOGS/FOGS.R \ 
--refld ~/FOGS/LDREF/1000G.EUR. \ 
--outd  ~/FOGS \
--loci ~/FOGS/LDetect/EUR/ \
--weights ~/FOCUS/mashr_Thyroid2.txt \
--genelist ~/FOCUS/mashr_Thyroid_genelist_unique.txt \
--sumstat ~/FOGS/PCOS_Summary_Statistics.xxxx.processed.txt.sumstats.gz \
--saveprefix ENSG00000246705 \
--chr_id 12 \
--locus_id 12

We are obtaining an error while running the FOGS.R script with these commands but cannot say with certainty at what line in the script it is erroring out. But we believe it is approximately after line 191. The errors have been pasted below -

~/FOGS/ENSG00000255621.prune.out
.
4
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : undefined columns selected
ERROR : undefined columns selected
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : undefined columns selected
ERROR : undefined columns selected
ERROR : subscript out of bounds
ERROR : subscript out of bounds
ERROR : subscript out of bounds
Error in `[<-.data.frame`(`*tmp*`, , "casual.id", value = NA_real_) :
  replacement has 1 row, data has 0
Calls: [<- -> [<-.data.frame
Execution halted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions