Skip to contents

Querries reference signatures and returns most similar fluorophores by cosine similarity.

Usage

QC_WhatsThis(x, data, NumberHits, returnPlots = FALSE)

Arguments

x

Name in the Sample column you want to filter for

data

A data.frame object from QC_LibraryParse containing Fluorophore name column and numeric detector columns.

NumberHits

Number of most similar fluorophores by cosine.

returnPlots

Whether to return signature plots, default is set to FALSE.

Value

A dataframe of similar fluorophores

Examples

library(dplyr)
Folder_Location <- system.file("extdata", package = "Luciernaga")
XML_Pattern <- ".XML$"
XML_Files <- list.files(path = Folder_Location, pattern = XML_Pattern,
                        full.names = TRUE, recursive = FALSE)
LibraryData <- QC_LibraryParse(XML_Files[2], returntype="dataframe", references=FALSE)
Data <- LibraryData %>% select(-Sample, -Creator, -Date) %>%
 rename(Sample=Fluorochrome)
TheFluorophore <- Data %>% pull(Sample)

Results <- QC_WhatsThis(x=TheFluorophore, data=Data, NumberHits = 10, returnPlots=FALSE)
#> Normalizing Data for Signature Comparison