Skip to content

Commit

Permalink
Create helper-3D_UMAP.R
Browse files Browse the repository at this point in the history
  • Loading branch information
lobanovav authored Jun 3, 2024
1 parent 5ccfe79 commit c337872
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tests/testthat/helper-3D_UMAP.R
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

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=3,col=15,[object_usage_linter] no visible global function definition for ‘selectSRObject’
color.variable = "orig.ident"

Check warning on line 4 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=4,col=20,[assignment_linter] Use <-, not =, for assignment.
label.variable = "immgen_main"

Check warning on line 5 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=5,col=20,[assignment_linter] Use <-, not =, for assignment.

Check warning on line 6 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=6,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
} else if (data == "Chariou") {
object <- selectSRObject("Chariou")

Check warning on line 8 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=8,col=15,[object_usage_linter] no visible global function definition for ‘selectSRObject’
color.variable = "mouseRNAseq"

Check warning on line 9 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=9,col=20,[assignment_linter] Use <-, not =, for assignment.
label.variable = "Barcode"

Check warning on line 10 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=10,col=20,[assignment_linter] Use <-, not =, for assignment.

Check warning on line 11 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=11,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
} else if (data == "pbmc-single") {
object <- selectSRObject("pbmc-single")

Check warning on line 13 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=13,col=15,[object_usage_linter] no visible global function definition for ‘selectSRObject’
color.variable = "SCT_snn_res.0.2"

Check warning on line 14 in tests/testthat/helper-3D_UMAP.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by lobanovav

file=/__w/SCWorkflow/SCWorkflow/tests/testthat/helper-3D_UMAP.R,line=14,col=20,[assignment_linter] Use <-, not =, for assignment.
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
}

0 comments on commit c337872

Please sign in to comment.