View source: R/collision-removal.R
remove_collisions | R Documentation |
A collision is an integration (aka a unique combination of the provided
mandatory_IS_vars()
) which is observed in more than one
independent sample.
The function tries to decide to which independent sample should
an integration event be assigned to, and if no
decision can be taken, the integration is completely removed from the data
frame.
For more details refer to the vignette "Collision removal functionality":
vignette("workflow_start", package = "ISAnalytics")
remove_collisions(
x,
association_file,
independent_sample_id = c("ProjectID", "SubjectID"),
date_col = "SequencingDate",
reads_ratio = 10,
quant_cols = c(seqCount = "seqCount", fragmentEstimate = "fragmentEstimate"),
report_path = default_report_path(),
max_workers = NULL
)
x |
Either a multi-quantification matrix (recommended) or a named list of matrices (names must be quantification types) |
association_file |
The association file imported via
|
independent_sample_id |
A character vector of column names that identify independent samples |
date_col |
The date column that should be considered. |
reads_ratio |
A single numeric value that represents the ratio that has
to be considered when deciding between |
quant_cols |
A named character vector where names are
quantification types and
values are the names of the corresponding columns. The quantification
|
report_path |
The path where the report file should be saved.
Can be a folder or |
max_workers |
Maximum number of parallel workers to distribute the
workload. If |
Either a multi-quantification matrix or a list of data frames
The function will explicitly check for the presence of these tags:
project_id
pool_id
pcr_replicate
Other Data cleaning and pre-processing:
aggregate_metadata()
,
aggregate_values_by_key()
,
compute_near_integrations()
,
default_meta_agg()
,
outlier_filter()
,
outliers_by_pool_fragments()
,
purity_filter()
,
realign_after_collisions()
,
threshold_filter()
data("integration_matrices", package = "ISAnalytics")
data("association_file", package = "ISAnalytics")
no_coll <- remove_collisions(
x = integration_matrices,
association_file = association_file,
report_path = NULL
)
head(no_coll)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.