R/methods.R
fill_missing_abundance-methods.Rd
fill_missing_abundance() takes as input A `tbl` (with at least three columns for sample, feature and transcript abundance) or `SummarizedExperiment` (more convenient if abstracted to tibble with library(tidySummarizedExperiment)) and returns a consistent object (to the input) with new observations
fill_missing_abundance(
.data,
.sample = NULL,
.transcript = NULL,
.abundance = NULL,
fill_with
)
# S4 method for class 'spec_tbl_df'
fill_missing_abundance(
.data,
.sample = NULL,
.transcript = NULL,
.abundance = NULL,
fill_with
)
# S4 method for class 'tbl_df'
fill_missing_abundance(
.data,
.sample = NULL,
.transcript = NULL,
.abundance = NULL,
fill_with
)
# S4 method for class 'tidybulk'
fill_missing_abundance(
.data,
.sample = NULL,
.transcript = NULL,
.abundance = NULL,
fill_with
)
A consistent object (to the input) non-sparse abundance
A consistent object (to the input) with filled abundance
A consistent object (to the input) with filled abundance
A consistent object (to the input) with filled abundance
questioning
This function fills the abundance of missing sample-transcript pair using the median of the sample group defined by the formula
print("Not run for build time.")
#> [1] "Not run for build time."
# tidybulk::se_mini |> fill_missing_abundance( fill_with = 0)