Description Usage Arguments Details Value See Also Examples
View source: R/analysis-functions.R
maturing Abundance is obtained for every integration event by calculating the ratio between the single value and the total value for the given group.
1 2 3 4 5 6 7 | compute_abundance(
x,
columns = "Value",
percentage = TRUE,
key = "CompleteAmplificationID",
keep_totals = FALSE
)
|
x |
An integration matrix - aka a data frame that includes
the |
columns |
A character vector of column names to process, must be numeric or integer columns |
percentage |
Add abundance as percentage? |
key |
The key to group by when calculating totals |
keep_totals |
A value between |
Abundance will be computed upon the user selected columns
in the columns
parameter. For each column a corresponding
relative abundance column (and optionally a percentage abundance
column) will be produced.
Either a single data frame with computed abundance values or a list of 2 data frames (abundance_df, quant_totals)
Other Analysis functions:
CIS_grubbs()
,
comparison_matrix()
,
cumulative_count_union()
,
sample_statistics()
,
separate_quant_matrices()
,
threshold_filter()
,
top_integrations()
1 2 3 4 5 6 7 8 9 10 11 12 | path <- system.file("extdata", "ex_annotated_ISMatrix.tsv.xz",
package = "ISAnalytics"
)
matrix <- import_single_Vispa2Matrix(path)
# Simple integration matrix - grouping by CompleteAmplificationID
abundance1 <- compute_abundance(matrix)
abundance1
# Keeping totals as a separate data frame
abundance2 <- compute_abundance(matrix, keep_totals = "df")
abundance2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.