Control group size
1
0
Entering edit mode
luke.zappia ▴ 50
@lukezappia-11973
Last seen 2.4 years ago
Germany

Originally posted on GitHub https://github.com/Oshlack/splatter/issues/27

I have been using the following code to simulate different groups of single cells":

splatter_sim_1 <- splatSimulateGroups(groupCells = c(100, 100, 100, 100, 100), nGenes = 500, de.prob = c(0.05, 0.05, 0.05, 0.05, 0.05), de.facLoc = 3, de.facScale = 0, dropout.present = TRUE, seed = 1)

Since the update to R version 3.4 and the newest Bioconductor version this code gives an error:

Error in checkSlotAssignment(object, name, value) : ‘groupCells’ is not a slot in class “SplatParams”

I am not sure how to write code in the new version, which simulates different groups. Can someone help me?

splatter • 1.3k views
ADD COMMENT
0
Entering edit mode
luke.zappia ▴ 50
@lukezappia-11973
Last seen 2.4 years ago
Germany

Some of the parameters have changed in the latest release. You now want to use the batchCells and group.prob parameters. For example splatSimulateGroups(batchCells = 1000, group.prob(0.5, 0.3, 0.2)) would give you 1000 cells in three groups with probabilities of 0.5, 0.3 and 0.2. See the vignette and documentation for more details.

ADD COMMENT

Login before adding your answer.

Traffic: 561 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6