All functions |
|
|---|---|
bsie |
|
calc_stats_binclass returns sensitivity, specificity, positive predictive value, etc. from input true positive, true negative, false positive, false negative. from binary classification. https://en.wikipedia.org/wiki/Positive_and_negative_predictive_values#Relationship |
|
cipher Calls base::chartr to scramble input based on a set key and seed. For amino acids, single letter codes are: GPAVLIMCFYWHKRQNEDST |
|
collapse_df_reps |
|
compute_breadth |
|
copyTable |
|
copyWinpath |
|
useful functions for other packages that i should remember to use more often |
|
lapply as.character to data frame columns to convert factor to character |
|
foldchange Calculate fold change from rpm scaled data. |
|
functions for reading and writing data |
|
functions for reading and writing data |
|
Input jpg heatmap, color scale, table dimensions. Output matrix of corresponding values. |
|
hits_score |
|
calculate mode from numeric vector (e.g. to indicate peak of density plot) takes numeric vector, outputx x axis value of y axis peak https://stackoverflow.com/questions/13133297/calculating-peaks-in-histograms-or-density-functions ... for use in ggridges::geom_density_ridges to ignore second parameter of quantiles |
|
new_pro_fun |
|
pasteTable |
|
pasteWinpath gsub wrapper. By default changes \ to / from windows paths from cliboard. |
|
functions for reading and writing data |
|
rml |
|
rpm scale data frame so each column sums to 1e6 (by default) |
|
commonly used ggplot theme customization |
|
uncipher Calls base::chartr to unscramble input based on a set key and seed. For amino acids, single letter codes are: GPAVLIMCFYWHKRQNEDST |
|
vir_evidence Consolidate virscan hits to evidence peptides. Adapted from https://pubmed.ncbi.nlm.nih.gov/26045439/ Group hit peptides by species. Rank species by number of hits. Starting with species with most hits, for each hit peptide, remove other hit peptides with 7aa overlap from lower hit-breadth species. |
|
wdf |
|
zclean_longitudinal |
|
zscore_bins Calculate zscores from rpm scaled data. Adapted from Michael Mina et al. 2019 DOI: 10.1126/science.aay6485 |
|