-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
getParam3D <- function(data) { | ||
if (data == "TEC") { | ||
object <- selectSRObject("TEC") | ||
Check warning on line 3 in tests/testthat/helper-3D_UMAP.R
|
||
color.variable = "orig.ident" | ||
Check warning on line 4 in tests/testthat/helper-3D_UMAP.R
|
||
label.variable = "immgen_main" | ||
Check warning on line 5 in tests/testthat/helper-3D_UMAP.R
|
||
|
||
Check warning on line 6 in tests/testthat/helper-3D_UMAP.R
|
||
} else if (data == "Chariou") { | ||
object <- selectSRObject("Chariou") | ||
Check warning on line 8 in tests/testthat/helper-3D_UMAP.R
|
||
color.variable = "mouseRNAseq" | ||
Check warning on line 9 in tests/testthat/helper-3D_UMAP.R
|
||
label.variable = "Barcode" | ||
Check warning on line 10 in tests/testthat/helper-3D_UMAP.R
|
||
|
||
Check warning on line 11 in tests/testthat/helper-3D_UMAP.R
|
||
} else if (data == "pbmc-single") { | ||
object <- selectSRObject("pbmc-single") | ||
Check warning on line 13 in tests/testthat/helper-3D_UMAP.R
|
||
color.variable = "SCT_snn_res.0.2" | ||
Check warning on line 14 in tests/testthat/helper-3D_UMAP.R
|
||
label.variable = "BP_encode_main" | ||
|
||
} else if (data == "nsclc-multi") { | ||
object <- selectSRObject("nsclc-multi") | ||
color.variable = "orig.ident" | ||
label.variable = "BP_encode_main" | ||
|
||
} else if (data == "BRCA") { | ||
object <- select_crobject("BRCA") | ||
color.variable = "orig.ident" | ||
label.variable = "SCT_snn_res.0.4" | ||
|
||
} | ||
|
||
return( | ||
list( | ||
"object" = object, | ||
"color.variable" = color.variable, | ||
"label.variable" = label.variable | ||
) | ||
) | ||
} | ||
|
||
.drawplot <- function(x) { | ||
path <- tempfile(fileext = ".png") | ||
plotly::save_image(x, path) | ||
path | ||
} |