Skip to content

do not compare bio and batch #11

@zhou13

Description

@zhou13

I am not familiar with R but I think even if nlevels are equal, you still cannot compare bio and batch.

    if(nlevels(bio)==nlevels(batch)) {
      if(all(bio==batch)) {
        stop("Biological conditions and batches are confounded. They cannot both be included in the model, please set at least one of 'adjust_bio' and 'adjust_batch' to 'no.'")
      }
    }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions