removeSample: Remove sample(s) from SpatialOverlay

View source: R/removeSamples.R

removeSampleR Documentation

Remove sample(s) from SpatialOverlay

Description

Remove sample(s) from SpatialOverlay

Usage

removeSample(overlay, remove)

Arguments

overlay

SpatialOverlay object

remove

sampNames of overlay to remove

Value

SpatialOverlay object without samples in remove

Examples


muBrain <- readRDS(unzip(system.file("extdata", "muBrainSubset_SpatialOverlay.zip", 
                                    package = "SpatialOmicsOverlay")))

muBrainLW <- system.file("extdata", "muBrain_LabWorksheet.txt", 
                         package = "SpatialOmicsOverlay")

muBrainLW <- readLabWorksheet(muBrainLW, slideName = "D5761 (3)")

samps <- muBrainLW$Sample_ID[muBrainLW$segment != "Full ROI"]

muBrainSub <- removeSample(overlay = muBrain, remove = samps)

muBrain
muBrainSub


Nanostring-Biostats/SpatialOmicsOverlay documentation built on April 20, 2024, 5:36 a.m.