Skip to content

Commit 57ad6c9

Browse files
committed
✨ Add config files in the documentation and modify the headers of notebooks and config files
1 parent 99c4881 commit 57ad6c9

8 files changed

+422
-7
lines changed

docs/example_report.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Vuegen Case Study - View HTML Report
1+
# Earth Microbiome Project Case Study - HTML and Streamlit Example Reports
22

3-
The stable version of the current `html` report generated in the example notebook
4-
using `vuegen` can be viewed at
5-
6-
[multiomics-analytics-group.github.io/vuegen/](https://multiomics-analytics-group.github.io/vuegen/)
3+
The Earth Microbiome Project case study generated in the example notebook using `vuegen` is available online as [HTML](https://multiomics-analytics-group.github.io/vuegen/) and [Streamlit](https://earth-microbiome-vuegen-demo.streamlit.app/) reports.

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ vuegen_demo
3131
:caption: Building a report
3232
3333
vuegen_basic_case_study
34+
vuegen_basic_case_study_configfile
3435
vuegen_case_study_earth_microbiome
36+
vuegen_case_study_earth_microbiome_configfile
37+
vuegen_APICall_configfile
38+
vuegen_Chatbot_configfile
3539
example_report
3640
```
3741

docs/vuegen_APICall_configfile.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# APICall Component Configuration File
2+
3+
A [configuration file](https://github.com/Multiomics-Analytics-Group/vuegen/blob/main/docs/example_config_files/APIcall_example_config.yaml) for the API call component is provided below:
4+
5+
```yaml
6+
report:
7+
title: APICall example
8+
description: An APICall example.
9+
sections:
10+
- title: APICall test
11+
subsections:
12+
- title: JSONPlaceholder test
13+
components:
14+
- title: GET request
15+
component_type: apicall
16+
api_url: https://jsonplaceholder.typicode.com/todos/1
17+
method: GET
18+
- title: POST request
19+
component_type: apicall
20+
api_url: https://jsonplaceholder.typicode.com/todos
21+
method: POST
22+
request_body: |
23+
{
24+
"userId": 1,
25+
"title": "Go running",
26+
"completed": false
27+
}
28+
- title: PUT request
29+
component_type: apicall
30+
api_url: https://jsonplaceholder.typicode.com/todos/10
31+
method: PUT
32+
request_body: |
33+
{
34+
"userId": 1,
35+
"title": "Play the guitar",
36+
"completed": true
37+
}
38+
- title: PATCH request
39+
component_type: apicall
40+
api_url: https://jsonplaceholder.typicode.com/todos/10
41+
method: PATCH
42+
request_body: |
43+
{
44+
"title": "Go for a hike"
45+
}
46+
- title: DELETE request
47+
component_type: apicall
48+
api_url: https://jsonplaceholder.typicode.com/todos/10
49+
method: DELETE
50+
```

docs/vuegen_Chatbot_configfile.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Chatbot Component Configuration File
2+
3+
A [configuration file](https://github.com/Multiomics-Analytics-Group/vuegen/blob/main/docs/example_config_files/Chatbot_example_config.yaml) for the Chatbot component is provided below:
4+
5+
```yaml
6+
report:
7+
title: Chatbot example
8+
description: >
9+
A chatbot exaple.
10+
sections:
11+
- title: ChatBot test
12+
subsections:
13+
- title: Simple test
14+
components:
15+
- title: ChatBot test
16+
component_type: chatbot
17+
api_url: http://localhost:11434/api/chat
18+
model: llama3.2
19+
```

docs/vuegen_basic_case_study.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Vuegen Basic Case Study - Predefined Directory\n",
7+
"# Predefined Directory Case Study - Notebook\n",
88
"\n",
99
"[![Open In Colab][colab_badge]][colab_link]\n",
1010
"\n",
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
# Predefined Directory Case Study - Configuration File
2+
3+
The [configuration file](https://github.com/Multiomics-Analytics-Group/vuegen/blob/main/docs/example_config_files/Basic_example_vuegen_demo_notebook_config.yaml) of the basic case study using a predefined directory is presented below:
4+
5+
```yaml
6+
report:
7+
title: Basic Example Vuegen Demo Notebook
8+
description: A general description of the report.
9+
graphical_abstract: https://raw.githubusercontent.com/Multiomics-Analytics-Group/vuegen/main/docs/images/vuegen_logo.svg
10+
logo: https://raw.githubusercontent.com/Multiomics-Analytics-Group/vuegen/main/docs/images/vuegen_logo.svg
11+
sections:
12+
- title: Plots
13+
description: This section contains example plots.
14+
subsections:
15+
- title: Interactive Plots
16+
description: Optional description for section.
17+
components:
18+
- title: Top Species Plot By Biome Plotly
19+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/1_top_species_plot_by_biome_plotly.json
20+
description: ''
21+
caption: ''
22+
component_type: plot
23+
plot_type: plotly
24+
- title: Multiline Plot Altair
25+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/2_multiline_plot_altair.json
26+
description: ''
27+
caption: ''
28+
component_type: plot
29+
plot_type: altair
30+
- title: Pie Plot Countries Plotly
31+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/3_pie_plot_countries_plotly.json
32+
description: ''
33+
caption: ''
34+
component_type: plot
35+
plot_type: plotly
36+
- title: Pie Plots Biomes Plotly
37+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/4_pie_plots_biomes_plotly.json
38+
description: ''
39+
caption: ''
40+
component_type: plot
41+
plot_type: plotly
42+
- title: Saline Metagenomics Samples Map Altair
43+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/5_saline_metagenomics_samples_map_altair.json
44+
description: ''
45+
caption: ''
46+
component_type: plot
47+
plot_type: altair
48+
- title: Description
49+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/1_Interactive_plots/description.md
50+
description: ''
51+
caption: ''
52+
component_type: markdown
53+
- title: Static Plots
54+
description: ''
55+
components:
56+
- title: Number Samples Per Study
57+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/2_Static_plots/1_number_samples_per_study.png
58+
description: ''
59+
caption: ''
60+
component_type: plot
61+
plot_type: static
62+
- title: Animal Metagenomics Samples Map
63+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/2_Static_plots/2_animal_metagenomics_samples_map.png
64+
description: ''
65+
caption: ''
66+
component_type: plot
67+
plot_type: static
68+
- title: Alpha Diversity Host Associated Samples
69+
file_path: example_data/Basic_example_vuegen_demo_notebook/1_Plots/2_Static_plots/3_alpha_diversity_host_associated_samples.png
70+
description: ''
71+
caption: ''
72+
component_type: plot
73+
plot_type: static
74+
- title: "Graphical overview of VueGen workflow and components"
75+
file_path: https://raw.githubusercontent.com/Multiomics-Analytics-Group/vuegen/main/docs/images/vuegen_graph_abstract.png
76+
description: ''
77+
caption: The diagram illustrates the processing pipeline of VueGen, starting
78+
from either a directory or a YAML configuration file. Reports consist of hierarchical
79+
sections and subsections, each containing various components such as plots,
80+
dataframes, Markdown, HTML, and data retrieved via API calls.
81+
component_type: plot
82+
plot_type: static
83+
- title: Dataframes
84+
description: ''
85+
subsections:
86+
- title: All Formats
87+
description: This subsection contains example dataframes.
88+
components:
89+
- title: Phyla Correlation Network Csv
90+
file_path: example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/1_phyla_correlation_network_csv.csv
91+
description: ''
92+
caption: ''
93+
component_type: dataframe
94+
file_format: csv
95+
delimiter: ','
96+
- title: Abundance Table Example Xls
97+
file_path: example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls
98+
description: ''
99+
caption: ''
100+
component_type: dataframe
101+
file_format: xls
102+
- title: Sample Info Example Txt
103+
file_path: example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/3_sample_info_example_txt.txt
104+
description: ''
105+
caption: ''
106+
component_type: dataframe
107+
file_format: txt
108+
delimiter: \t
109+
- title: Sample Info Example Parquet
110+
file_path: example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/4_sample_info_example_parquet.parquet
111+
description: ''
112+
caption: ''
113+
component_type: dataframe
114+
file_format: parquet
115+
- title: Networks
116+
description: ''
117+
subsections:
118+
- title: Interactive Networks
119+
description: Optional description for subsection
120+
components:
121+
- title: Man Example
122+
file_path: example_data/Basic_example_vuegen_demo_notebook/3_Networks/1_Interactive_networks/1_man_example.graphml
123+
description: ''
124+
caption: ''
125+
component_type: plot
126+
plot_type: interactive_network
127+
- title: Description
128+
file_path: example_data/Basic_example_vuegen_demo_notebook/3_Networks/1_Interactive_networks/description.md
129+
description: ''
130+
caption: ''
131+
component_type: markdown
132+
- title: Static Networks
133+
description: ''
134+
components:
135+
- title: Phyla Correlation Network
136+
file_path: example_data/Basic_example_vuegen_demo_notebook/3_Networks/2_Static_networks/1_phyla_correlation_network.png
137+
description: ''
138+
caption: ''
139+
component_type: plot
140+
plot_type: static
141+
- title: Html
142+
description: ''
143+
subsections:
144+
- title: All Html
145+
description: ''
146+
components:
147+
- title: Plot
148+
file_path: example_data/Basic_example_vuegen_demo_notebook/4_Html/1_All_html/1_plot.html
149+
description: ''
150+
caption: ''
151+
component_type: html
152+
- title: Ckg Network
153+
file_path: example_data/Basic_example_vuegen_demo_notebook/4_Html/1_All_html/2_ckg_network.html
154+
description: ''
155+
caption: ''
156+
component_type: plot
157+
plot_type: interactive_network
158+
- title: Multiqc Report
159+
file_path: example_data/Basic_example_vuegen_demo_notebook/4_Html/1_All_html/3_multiqc_report.html
160+
description: ''
161+
caption: ''
162+
component_type: html
163+
- title: Markdown
164+
description: ''
165+
subsections:
166+
- title: All Markdown
167+
description: ''
168+
components:
169+
- title: Readme
170+
file_path: example_data/Basic_example_vuegen_demo_notebook/5_Markdown/1_All_markdown/README.md
171+
description: ''
172+
caption: ''
173+
component_type: markdown
174+
```
175+
176+
The directory with he example data is available in the [GitHub repository](https://github.com/Multiomics-Analytics-Group/vuegen/blob/main/docs/example_data/Basic_example_vuegen_demo_notebook).

docs/vuegen_case_study_earth_microbiome.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Vuegen Case Study - Earth Microbiome Project\n",
7+
"# Earth Microbiome Project Case Study - Notebook\n",
88
"\n",
99
"[![Open In Colab][colab_badge]][colab_link]\n",
1010
"\n",

0 commit comments

Comments
 (0)