Threshold and preprocess gene expression data
threshold.RdThis function processes a gene-to-pixel data frame by removing missing values, applying a threshold to filter out low-expression pixels, and approximating zero values.
Arguments
- genePixelDF
A data frame containing gene expression for one gene for each pixel. It should have columns "x" and "y" representing expression levels in two SpatialExperiments.
- t1
numeric: Threshold value for gene expression in the first SpatialExperiment (x).- t2
numeric:Threshold value for gene expression in the second SpatialExperiment (y).