delineate_with_identification {maldipickr} | R Documentation |
Delineate clusters from taxonomic identifications
Description
From the report of taxonomic identification produced by the Bruker MALDI Biotyper spectra sharing the same identification are labeled in the same cluster. Spectra with unknown identification (e.g., due to database completeness) are set in unique cluster.
Usage
delineate_with_identification(tibble_report)
Arguments
tibble_report |
A tibble of n rows, with n the number of spectra,
produced by |
Details
As all unknown identification are considered unique clusters within one input tibble, it is important to consider whether the taxonomic identifications come from a single report or multiple reports, depending on the research question. A message is displayed to confirm from which type of reports the delineation was done.
Value
A tibble of n rows for each spectra and 3 columns:
-
name
: the spectra names from thename
column from the output of eitherread_biotyper_report()
orread_many_biotyper_reports()
. -
membership
: integers stating the cluster number to which the spectra belong to. It starts from 1 to c, the total number of clusters. -
cluster_size
: integers indicating the total number of spectra in the corresponding cluster.
See Also
Examples
report_unknown <- read_biotyper_report(
system.file("biotyper_unknown.csv", package = "maldipickr")
)
delineate_with_identification(report_unknown)