Skip to content

Best Practices for Handling NA Values in Predicted Gene Expression Matrix #220

@Yuyu614614

Description

@Yuyu614614

Hello,

I am using the Predict.py script to generate a gene expression matrix for a cohort. However, the resulting matrix contains some NA values.

Based on my understanding of the code, these NAs likely occur when SNPs required by a gene's prediction model are completely missing from the genotype data for all samples in my cohort, making it impossible to calculate the expression value for that gene.

My central question is: ​​What is the recommended best practice for handling these NA values in the predicted expression matrix for downstream analyses (e.g., association studies)?​​

Specifically, I am weighing two common approaches and would appreciate guidance:

​​Imputation with 0 (or another value):​​ Replacing NA with zero, implicitly assuming that the missing prediction is equivalent to no expression or a baseline level.

​​Deletion:​​ Removing the entire column (gene) that contains any NA values. This is simple but results in loss of data.

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