Skip to content

GxE analysis with LRT #4

@saudat-bio-code

Description

@saudat-bio-code

Dear flexlmm team,

I have a quick question regarding model structures for GxE analysis.

I am hoping to extract p-values specifically for GxE component. Ideally I wanted to have LRT test with GxE as the term that is distinct between two models, while having G + E in the reduced null model. Thus my code would look like this:

--model_formula 'y ~ x + x:environment + environment'
--null_model_formula 'y ~ x + environment'

However, the analysis stops at the FIT_NULL_MODEL step. My formulas are valid and pass VALIDATE_FORMULAS without any issues.

Of course, the manual mentions that x should not be included as the term in the null_model_formula. However, when the focus of the analysis is solely GxE, it makes sense to have G in the null model. Do you have any recommendations for solving this issue?

This is the line from the manial that confirms it: NOTE: the null model formula cannot contain the term x or functions of it. The covar and qcovar file cannot contain columns named x or y.

My other currently is to run two models

--model_formula 'y ~ x + x:environment + environment'
--null_model_formula 'y ~ environment'

and

--model_formula 'y ~ x + environment'
--null_model_formula 'y ~ environment'

and only then manually use LRT to get p-values that describe GxE. I think more intuitive way would be to have gxe test as described above, but I would need some advice in stopping FIT_NULL_MODEL from failing. Currently it quits with exit status 1 and no output.

Thank you for your time and help!

Saudat

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