Skip to content

Commit

Permalink
Set up the basic structure for the MicrobiomeStat Shiny interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cafferychen777 authored Oct 16, 2023
1 parent 3733fb1 commit 8389e45
Show file tree
Hide file tree
Showing 28 changed files with 20,234 additions and 0 deletions.
Empty file added Global.R
Empty file.
16 changes: 16 additions & 0 deletions MicrobiomeStat_Shiny.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes
100 changes: 100 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Microbiome-Shiny

Welcome to the Microbiome-Shiny repository, the R Shiny interface for the MicrobiomeStat R package. This readme will guide you through the process of running this application locally on your own machine.

## Prerequisites

Before you start, you need to have R and RStudio installed on your machine. If you haven't installed them yet, you can download them from the following links:

- R: https://cran.r-project.org/
- RStudio: https://www.rstudio.com/products/rstudio/download/

## Installation

1. **Clone the Repository**: Clone/download this repository to your local machine. If you have Git installed, you can use the following command in your terminal:

```
git clone https://github.com/cafferychen777/MicrobiomeStat-Shiny.git
```
2. **Set your Working Directory**: Open RStudio and set your working directory to the cloned repository. You can do this by using the `setwd()` function in R. For example:
```r
setwd("/path/to/cloned/repo/Microbiome-Shiny")
```
Replace "/path/to/cloned/repo/Microbiome-Shiny" with the actual path to the cloned repository on your machine.
3. **Install Required Packages**: Install the necessary R packages. This includes `shiny`, `devtools`, `MicrobiomeStat`, and any other packages that the application depends on. You can install these packages using the `install.packages()` function. For example:
```r
install.packages("devtools")
devtools::install_github("cafferychen777/MicrobiomeStat")
```
Here is a list of other required packages:
```r
packages_to_install <- c(
"rlang",
"tibble",
"ggplot2",
"matrixStats",
"lmerTest",
"foreach",
"modeest",
"dplyr",
"pheatmap",
"tidyr",
"ggh4x",
"GUniFrac",
"stringr",
"rmarkdown",
"knitr",
"pander",
"tinytex",
"vegan",
"scales",
"ape",
"ggrepel",
"parallel",
"ggprism",
"aplot",
"philentropy",
"forcats",
"yaml",
"biomformat",
"Biostrings"
)
# Installing packages
install.packages(packages_to_install)
```
## Running the Shiny Application
Once you've installed all necessary packages, you can run the Shiny application by using the `runApp()` function from the `shiny` package. For example:
```r
shiny::runApp()
```

This will start the Shiny application in your local web browser.

## Current Features and Future Plans

Currently, the MicrobiomeStat Shiny application supports cross-sectional design analysis and visualization. We are actively working on expanding the tool's capabilities. In the near future, we plan to add support for paired samples and longitudinal data analysis.

## Troubleshooting

If you encounter any issues while running the Shiny application, make sure that you've correctly set your working directory and that all necessary packages are installed. If you still have problems, please open an issue in this repository and we'll try to help as soon as possible.

## Contributing

Contributions to Microbiome-Shiny are very welcome. If you have a feature request, bug report, or want to improve the application, please feel free to open an issue or submit a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Thank you for your interest in Microbiome-Shiny!
10 changes: 10 additions & 0 deletions app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
options(shiny.maxRequestSize = 300*1024^2) # 设置最大请求大小为300MB
library(shiny)
library(shinyjs)

# 加载UI和服务器逻辑
source("ui/single_ui.R") # 加载ui_single.R
source("server/single_server.R") # 加载server_single.R

# 使用加载的UI和服务器逻辑运行Shiny应用
shinyApp(ui = single_ui, server = server_single)
29 changes: 29 additions & 0 deletions data/biom-refseq.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
>GG_OTU_1
AACGTAGGTCACAAGCGTTGTCCGGAATTACTGGGTGTAAAGGGAGCGCAGGCGGGAAGACAAGTTGGAAGTGAAATCCA
TGGGCTCAACCCATGAACTGCTTTCAAAACTGTTTTTCTTGAGTAGTGCAGAGGTAGGCGGAATTCCCCGTGTAGCGGTG
AAATGCGTAGAGATGGGGAGGAACACCAGTGGCGAAGGCGGCCTGCTGGGCTTTAACTGACGCTGAGGCACGAAAGCGTG
GGTAGCAAACAGGATTAGATACCCTGGTAGTCCACGCTGTAAACGATGATTACTAGGTGTGGGGGTCTGACCCCTTCCGT
GCCGGAGTTAACAC
>GG_OTU_2
TACGTAGGGAGCAAGCGTTATCCGGATTTATTGGGTGTAAAGGGTGCGTAGACGGGAGAACAAGTTAGTTGTGAAAGCCC
TCGGCTTAACTGAGGAACTGCAACTAAAACTATTTTTCTTGAGTGCAGGAGAGGAAAGCGGAATTCCTAGTGTAGCGGTG
AAATGCGTAGATATTAGGAGGAACACCAGTGGCGAAGGCGGCTTTCTGGACTGTAACTGACGTTGAGGCACGAAAGTGTG
GGGAGCAAACAGGATTAGATACCCTGGTAGTCCACACCGTAAACGATGGATACTAGGTGTAGGAGATGATTTCATCATCT
GTGCCGAAAGCAAACGCAATAAGTATCCCACCTGGGGAGTACGGCCGCAAGGTTGAAACTCAAAGGATTGACGGGGCCCG
CACAAGCAGTGGAGTATGTGGTTTAATTCGAAGCAACGCGAAGAACCTTACCAGGGCTTGACATA
>GG_OTU_3
TACGTAGGGGGCAAGCGTTATCCGGATTTACTGGGTGTAAAGGGAGCGTAGACGGCATCACAAGTCAGAAGTGAAAAATC
CGGGGGCTCCAACCCCGGAACTGCTTTTGAAACTGTGGAGCTGGAGTGCAGGAGAGGTAAGCGGAATTCCTAGTGTAGCG
GTAGAAATGCGTAGATATTAGGAGGAACACCAGTGGCGAAGGCGCTTACTGGACTGTAACTGACGTTGAGGCTCGAAAGC
GTGGGGAGC
>GG_OTU_4
TACGTATGGTGCAAGCGTTATCCGGATTTACTGGGTGTAAAGGGAGCGCAGGCGGTGCGGCAAGTCTGATGTGAAAGCCC
GGGGCTCAACCCCGGTACTGCATTGGAAACTGTCGTACTAGAGTGTCGGAGGGGTAAGCGGAATTCCTAGTGTAGCGGTG
AAATGCGTAGATATTAGGAGGAACACCAGTGGCGAAGGCGGCTTACTGGACGATAACTGACGCTGAGGCTCGAAAGCGTG
GGAGCAAACAGGATTAGATACCCTGGTAGTCCACGCCGTAAACGATGAATACTAGGTGTTGGGAAGCATTGCTTCTCGGT
GCCGTCGCAAACGCAGTAAGTATTCCACCTGGGGGATACGTTTCGACAAGAATAGAAACTACAAAAGGAATTAGGACGGG
GACCCGCACAAGCGGTGAGCATGTGGTTAATCGAAGCAACGCGAAGAACCTTA
>GG_OTU_5
AACGTAGGGTGCAAGCGTTGTCCGGAATTACTGGGTGTAAAGGGAGCGCAGGCGGGAGACAAGTTGGAAGTGAAACCATG
GGCTCAACCCATGAATTGCTTTCAAAACTGTTTTTCTTGAGTTAGTGCAGAGGTAGATGGAATTCCCGGTGTAGCGGTGG
AATGCGTAGATATCGGGA
1 change: 1 addition & 0 deletions data/biom-tree.phy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(((GG_OTU_1:0.00892,GG_OTU_2:0.01408)1.000.2:0.12196,GG_OTU_3:0.16022)0.995.2:0.01869,(GG_OTU_4:0.08976,GG_OTU_5:0.0665)0.766:0.09714)0.764.3;
21 changes: 21 additions & 0 deletions data/dada2_samdata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Subject Gender Day When
F3D0 3 F 0 Early
F3D1 3 F 1 Early
F3D141 3 F 141 Late
F3D142 3 F 142 Late
F3D143 3 F 143 Late
F3D144 3 F 144 Late
F3D145 3 F 145 Late
F3D146 3 F 146 Late
F3D147 3 F 147 Late
F3D148 3 F 148 Late
F3D149 3 F 149 Late
F3D150 3 F 150 Late
F3D2 3 F 2 Early
F3D3 3 F 3 Early
F3D5 3 F 5 Early
F3D6 3 F 6 Early
F3D7 3 F 7 Early
F3D8 3 F 8 Early
F3D9 3 F 9 Early
Mock ock M NA Early
Binary file added data/dada2_seqtab.rds
Binary file not shown.
Binary file added data/dada2_taxtab.rds
Binary file not shown.
Binary file added data/esophagus.fn.list.gz
Binary file not shown.
Binary file added data/esophagus.fn.shared.gz
Binary file not shown.
Binary file added data/esophagus.good.groups.gz
Binary file not shown.
Binary file added data/esophagus.tree.gz
Binary file not shown.
Loading

0 comments on commit 8389e45

Please sign in to comment.