Skip to content

Commit fbbdcb2

Browse files
author
Habib Rehman
committed
Adding to API file for exp correction and fixing comments
1 parent e34165e commit fbbdcb2

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/api/comp_method_expression_correction.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ arguments:
1515
required: false
1616
direction: input
1717
__merge__: /src/api/file_scrnaseq_reference.yaml
18+
- name: --input_ist
19+
direction: input
20+
required: false
21+
__merge__: /src/api/file_transcript_assignments.yaml
1822
- name: --output
1923
required: true
2024
direction: output

src/methods_expression_correction/denoist_correction/config.vsh.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ references:
1212
doi: "10.1101/2025.11.13.688387"
1313

1414
arguments:
15-
- name: --input_ist
16-
direction: input
17-
required: true
18-
type: file
19-
2015
- name: --celltype_key
2116
required: false
2217
direction: input

src/methods_expression_correction/denoist_correction/script.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ par <- list(
1111
"input_spatial_with_cell_types" = "task_ist_preprocessing/resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_aggregated_counts.h5ad",
1212
"input_ist" = "task_ist_preprocessing/resources_test/task_ist_preprocessing/mouse_brain_combined/raw_ist.zarr",
1313
"output" = "task_ist_preprocessing/tmp/denoist_corrected.h5ad",
14-
# "keep_all_cells" = FALSE,
14+
"keep_all_cells" = FALSE,
1515
"distance" = 50,
1616
"nbins" = 200,
1717
)
@@ -22,7 +22,7 @@ meta <- list(
2222

2323
## VIASH END
2424

25-
# Read the input h5ad file and convert to SingleCellExperiment and Seurat
25+
# Read the input h5ad file and convert to SingleCellExperiment -> SpatialExperiment
2626
cat("Reading input files\n")
2727
sce <- read_h5ad(par$input_spatial_with_cell_types, as = "SingleCellExperiment")
2828

@@ -58,7 +58,7 @@ res <- denoist(mat = spe,
5858
tx = tx,
5959
feature_label = "feature_name",
6060
coords = NULL,
61-
distance = par$distance, nbins = par$nbins, cl = cores) #TODO add in params
61+
distance = par$distance, nbins = par$nbins, cl = cores)
6262

6363
# format name
6464
corrected_counts <- res$adjusted_counts

0 commit comments

Comments
 (0)