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 read_biotyper_report() or read_many_biotyper_reports(). The long format and the best hits options are expected to be used in these functions to produce a compliant input tibble.

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:

See Also

delineate_with_similarity

Examples

report_unknown <- read_biotyper_report(
  system.file("biotyper_unknown.csv", package = "maldipickr")
)
delineate_with_identification(report_unknown)

[Package maldipickr version 1.3.0 Index]