Automation of statistical test with an identical data input aiming to reduce arduous work searching for packages and changing data input.
The package includes
Simple Statistics :u-test, t-test, post hocs of Anova and Kruskal Wallis with FDR adjusted values
Bar, Box, Dot, Violin plots with significance (u-test, t-test, post hocs of Anova and Kruskal Wallis)
Scaling & Transformation
Normality check (Shapiro Wilk test)
Scheirer–Ray–Hare Test
Volcano plot
Heatmap
PERMANOVA
NMDS
PCA
PCoA
Allstats_new optimization for faster processing
bug fix of Allstats (regarding LETTERS210729)
https://cran.r-project.org/bin/windows/base/
https://www.rstudio.com/products/rstudio/download/
https://cran.r-project.org/bin/windows/Rtools/
install.packages("devtools")
devtools::install_github("CHKim5/LMSstat")
library(LMSstat)
#Sample Data provided within the package
data("Data")
# Uploading your own Data
setwd("C:/Users/82102/Desktop")
Data<-read.csv("statT.csv",header = F)
The column "Multilevel" is mandatory for the code to run flawlessly.
If Multilevel is not used, fill the column with random characters
statT.csv
#Sample Data provided within the package
data("Classification")
# Uploading your own Data
Classification<-read.csv("statT_G.csv",header = F)
statT_G.csv
Statfile<-Allstats_new(Data,Adjust_p_value = T, Adjust_method = "BH") # Optimized code using lapply / data.table for faster processing contributed by Daehwan Kim
Statfile<-Allstats(Data,Adjust_p_value = T, Adjust_method = "BH") # Previous version using for-loop
Adjust_p_value = T # Set True if adjustment is needed
Adjust_method = F # Adjustment methods frequently used. c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY","fdr", "none")
head(Statfile[["Result"]]) # includes all statistical results
write.csv(Statfile[["Result"]],"p_value_result.csv") # Write csv with all the p-value included
# Makes a subdirectory and saves box plots for all the variables
AS_boxplot(Statfile,asterisk = "u_test")
# Makes a subdirectory and saves dot plots for all the variables
AS_dotplot(Statfile,asterisk = "t_test")
# Makes a subdirectory and saves bar plots for all the variables
AS_barplot(Statfile,asterisk = "Scheffe")
# Makes a subdirectory and saves violin plots for all the variables
AS_violinplot(Statfile,asterisk = "Scheffe")
AS_boxplot(Statfile) AS_dotplot(Statfile)
AS_barplot(Statfile) AS_violinplot(Statfile)
scaled_data<-D_tran(Data,param = "Auto")
Raw_Data Scaled_Data
param = "None" # "None","Auto","log10","Pareto"
save = F #Set true if datafile is to be saved
#Shapiro Wilk test
Result<-Norm_test(Data)
write.csv(Result,"Normality_test_Result.csv")
# csv files including significant variables (Multilevel, Group, interaction) and a Venn diagram are downloaded
SRH(Data)
# Makes a subdirectory and saves Volcano plots for different combination of groups
Test<-Allstats(Data)
Volcano(Test,asterisk = "t-test")
# Makes a subdirectory and saves Heatmap
scaled_data<-D_tran(Data,param = "Auto")
AS_heatmap(scaled_data) #data inheriting from D_tran
dev.off() # Saved as PDF
data("Data")
data("Classification")
PERMANOVA done with the Group column
Indiv_Perm(Data) # The group information is treated as a factor
Loops PERMANOVA over different classes provided by Classification
Result<-Multi_Perm(Data,Classification) # The group information is treated as factors
# Makes a subdirectory and saves NMDS plots for all of the distance metrics
NMDS(Data,methods = c("manhattan","bray","euclidean"))
NMDS plot with bray distance and p-value from PERMANOVA
methods = Dissimilarity index c("manhattan", "euclidean", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao", "mahalanobis", "chisq",chord")
color = c("#FF3300", "#FF6600", "#FFCC00", "#99CC00", "#0066CC", "#660099") # Colors for the plots
# Makes a subdirectory and saves PCA plot
PCA(Data,components = c(1,2),legend_position = "none"))
PCA plot with selected components
# Makes a subdirectory and saves PCoA plot
PCoA(Data,components = c(1,2),methods = c("bray", "manhattan"))
PCoA plot with selected components
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.