Skip to content

Errors when simulating multi-omics data with methylation. #8

@luyiyun

Description

@luyiyun

I try to simulate a bulk multi-omics data with RNA-seq and Methyl-seq. The code is as follow:

library(MOSim)

omics_list <- c("RNA-seq", "Methyl-seq")
omics_options <- c(
  omicSim("RNA-seq", totalFeatures = 1000),
  # omicSim("miRNA-seq", totalFeatures = 1000)
  omicSim("Methyl-seq", totalFeatures = 2000)
)

set.seed(123)
omics_simulation <- mosim(
  omics = omics_list,
  omicsOptions = omics_options,
  times = 0, numberGroups = 4, numberReps = 100
)

However, I get the following error:

[Pregenerated replicate] Simulating count values for group 4.
error in `[.data.frame`(object@simData, , columnReorder):                                                                                                                                                                                                                   
  undefined columns selected

How can I to solve this error? The version of installed MOSim package is 2.1.1.

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