Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mimi_lupton
    Member
    • Oct 2008
    • 19

    SKAT error when including covariates

    I am using the SKAT program in R to try and analyse a small subset of data for just one gene looking at certain rare variants.
    I run into an error when I try and add covariates into the model.
    I would really appreciate any help at all, or a hint of what could be wrong!

    I am doing the following;

    Use Generate_SSD_SetID to create SSD and Info files from the plink files.

    Use Read_Plink_FAM_Cov to read in the Fam and cov files, I have three covariates, and the file looks like this;

    > FAM_Cov[1:5,]
    FID IID PID MID Sex Phenotype COV1 COV2 COV3
    1 GKAD0335 GKAD0335 0 0 1 1 1 0 89
    2 GKAD0874 GKAD0874 0 0 2 1 2 1 80
    3 GKAD0364 GKAD0364 0 0 1 1 1 1 86
    4 GKAD0412 GKAD0412 0 0 2 1 2 0 NA
    5 GKAD0393 GKAD0393 0 0 2 1 2 0 85

    then I do;

    > y<-FAM_Cov$Phenotype
    > X1 = FAM_Cov$COV1
    > X2 = FAM_Cov$COV2
    > X3 = FAM_Cov$COV3

    > SSD.INFO<-Open_SSD(File.SSD, File.Info)
    > obj<-SKAT_Null_Model(y ~ X1 + X2 + X3, out_type="D")
    > SKAT.SSD.All(SSD.INFO, obj)

    $results
    SetID P.value N.Marker.All N.Marker.Test
    1 gene NA NA NA

    $P.value.Resampling
    NULL

    attr(,"class")
    [1] "SKAT_SSD_ALL"
    Warning message:
    Error to run SKAT for gene: Error in as.matrix(Z[id_include, ]) : subscript out of bounds
    Last edited by mimi_lupton; 07-30-2013, 03:42 PM.

Latest Articles

Collapse

  • SEQadmin2
    Nine Things a Sample Prep Scientist Thinks About Before Sequencing
    by SEQadmin2


    I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

    Here are nine questions we think about, in roughly the order they matter, before...
    06-18-2026, 07:11 AM
  • SEQadmin2
    From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
    by SEQadmin2


    Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


    The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
    ...
    06-02-2026, 10:05 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 05:37 AM
0 responses
6 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-26-2026, 11:10 AM
0 responses
16 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-17-2026, 06:09 AM
0 responses
51 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-09-2026, 11:58 AM
0 responses
110 views
0 reactions
Last Post SEQadmin2  
Working...