Learn R Programming

maldipickr (version 1.3.1)

delineate_with_identification: 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)

Value

A tibble of n rows for each spectra and 3 columns:

  • name: the spectra names from the name column from the output of either read_biotyper_report() or read_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.

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.

See Also

delineate_with_similarity

Examples

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

Run the code above in your browser using DataLab