Skip to content

Multiple Random Effects #134

@jgockley62

Description

@jgockley62

Hi,

I have a data set of single cell RNA seq run out on 167 individuals, with individuals spread across several batches. I want to run a model across all cells such as ~ (1|Indv_ID) + (1|Batch) + cov_1 + cov_2. From what I understand, I could change the Indvidual ID to column name to sample_id and run:

mmDS(sce,
     covs = c( "cov_1" + "cov_2" ),
     method = "dream2",
     n_threads = 32 )

But this would only specify a mixed linear model of ~ (1|Indv_ID) + (1|Batch) + cov_1 + cov_2 correct?
How could I add Batch as random effect, would renaming the column ID of batch to (1|Batch) ?
Thanks

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