Skip to content

Example usage error of cpgen package #2

@HainanWu

Description

@HainanWu

Hi Cheuerde,
when I use the cpgen example with cGWAS function, I got a mistake:
my R version is R4.2.2 .
I use the R script follow:
# generate random data
>rand_data(500,5000)
### GWAS without accounting for population structure
mod <- cGWAS(y,M)
I found error is "X must be of type 'matrix' ", but the "X" parameter was not introduced in the cGWAS function.

image

###############################
cGWAS example‘s input data is:
image

maker M file is :
image

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