Description Usage Arguments Details Value Examples
This function returns a list, containing dataframe with the entropy values per sample, entropy plot and transcript frequency plot
1 2 3 4 5 6 7 |
df |
input dataframe with transcripts in rows and samples in columns |
name |
name of the output pdf with defult "Shannon entropy", used when pdf is TRUE |
pdf |
logical parameter to create pdf with with default TRUE |
relevel |
logical parameter to reorder the samples order in the plots with default FALSE |
levels |
vector with the correct order of the samples with default NULL; will be used only if relevel is TRUE |
This function takes a dataframe with transcripts in rows and samples in columns as an input and calculates the Shannon entropy for each sample and the frequency of the transcript in the sample. Further it visualizes the entropy levels and the frequencies. The transcripts are reordered by their frequencies. Function can also print the plots to pdf if pdf parameter is TRUE.
list with the entropy levels and plots
1 2 3 | sh_entropy(df, "name", relevel = TRUE, levels = c(seq(1, ncol(df), 1)))
sh_entropy(df)
sh_entropy(df, pdf = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.