Fix compatibility issue regarding non-character version specification#30
Fix compatibility issue regarding non-character version specification#30pormr wants to merge 1 commit intoGfellerLab:masterfrom
Conversation
|
There is another compatibility issue to consider: When using the latest version of Seurat (v5.1.0), The issue is located between line 95-99 in SuperCell/R/supercell_2_Seurat.R Lines 95 to 99 in 5de820e The error can be prevented by setting options(Seurat.object.assay.version = "v3")I have no idea what is going wrong in line 98. However, it might be appropriate to change the value of m.seurat <- withr::with_options(list(Seurat.object.assay.version = "v3"), {
Seurat::CreateSeuratObject(counts = SC.GE, meta.data = meta)
})Since this option was introduced in Seurat v5, prior versions will not be affected then. |
Description:
supercell_2_Seuratwill always fail on the latest R version (4.4.x, specifically) with an error message, no matter what the value ofoutput.assay.versionis.Detailed traceback:
It is likely caused by a change in the mechanics for comparing version numbers, as indicated in a similar issue here, which makes direct comparison between
numeric_versionand numeric type invalid.Change: The right operand was changed to character type. For example:
This modification should be compatible with both older and newer versions of R, as indicated in the archived manual for R 3.1.0. I have tested the comparison logic on older versions of R, ranging from R 3.6.0 to R 4.4.0.