Generates a barplot based on read counts. If ori_BCs
is provided the bar color reflects the
distance between a particular barcode to one of the provided barcode sequences.
generateKirchenplot(
BC_dat,
ori_BCs = NULL,
ori_BCs2 = NULL,
loga = TRUE,
col_type = NULL,
m = "hamming",
setLabels = c("BC-Set 1", "Rest", "BC-Set 2")
)
a ggplot2 object
a BCdat object.
a vector of character strings containing known barcode sequences (without the fixed positions of the barcode construct).
a vector of character strings containing a 2nd set of known barcode sequences (also without the fixed positions).
a logical value, indicating the use or non-use of logarithmic read count values.
character string, choosing one of the availabe color palettes ("rainbow", "heat.colors", "topo.colors", "greens", "wild" - see package "grDevices")
a character string, Method for distance calculation, default value is Hamming distance. Possible values are "osa", "lv", "dl", "hamming", "lcs", "qgram", "cosine", "jaccard", "jw", "soundex" (see stringdist function of the stringdist-package for more information). If neither `ori_BCs` nor `ori_BCs2` are provided with input the choice of `m` does not matter.
a character vector, containing three strings serving as plot labels.