cluster_scans: Cluster scans Takes a summary table of scans with...

View source: R/cluster_scans.R

cluster_scansR Documentation

Cluster scans Takes a summary table of scans with rt_min/rt_max columns, clusters the scans based on RT proximity, returns the same tibble with cluster index.

Description

Cluster scans Takes a summary table of scans with rt_min/rt_max columns, clusters the scans based on RT proximity, returns the same tibble with cluster index.

Usage

cluster_scans(scans, thres_drt)

Arguments

scans

Tibble with rt_min/rt_max. If there is >1 row per scan, they should be grouped.

thres_drt

Maximum difference in RT allowed for scans to cluster

Value

Input tibble but with clust_id column added

Examples

scans_clustered <- scans %>%
  cluster_scans(thres_lap = 0.8)


octopode/tidychrom documentation built on Nov. 2, 2022, 1:32 a.m.