Skip to content

Commit

Permalink
define variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lahuuki committed May 17, 2024
1 parent 95c82af commit ad3bbb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/metrics_qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ metrics_qc <- function(spe) {
spe_in <- spe[, spe$in_tissue]

## QC in-tissue spots

# define variables
low_lib_size <- low_n_features <- in_tissue <- sample_id <- NULL

qc_df <- data.frame(
log2sum = log2(spe_in$sum_umi),
log2detected = log2(spe_in$sum_gene),
Expand Down Expand Up @@ -93,6 +97,10 @@ metrics_qc <- function(spe) {
factor(spe$scran_high_subsets_Mito_percent, levels = c("TRUE", "FALSE"))

## Find edge spots
# define variables
arrary_row <- array_col <- edge_row <- edge_col <- row_distance <- NULL
col_distance <- NULL

spot_coords <- colData(spe_in) |>
as.data.frame() |>
select(in_tissue, sample_id, array_row, array_col) |>
Expand Down

0 comments on commit ad3bbb1

Please sign in to comment.