Skip to content

Commit a787ced

Browse files
sayalaruanoenryH
andauthored
EMP case study as example data (#45)
* 📝 Docs: Add EMP example data directory and config. Also, created jupyter notebook to replicate EMP results and generate report examples. * 📝 Docs: Update README with extended description and the EMP example data paths * 👷 CI(cdci.yml): Update the CI test with the EMP example data and add tests to create reports from a directory * 🐛 move \n out of f-string (for older Python versions?) * 🎨 order imports, specify relative paths - in docs the full path will be set based on the directory * ➕ add pyyaml as dependency using 'poetry add pyyaml' * 🐛 update installation of docs, do not autorun streamlit * 🔥 remove old demo * ✨ Feat(quarto_reportview.py and streamlit_reportview.py): Add footer with link to vuegen and mona on the html, revealjs, pdf, and streamlit reports * ♻️ Refactor(vuegen_case_study_earth_microbiome.ipynb): add random seed to subsample code to create the same dataframe examples at every run * 📝 Docs(README.md): Add acknowledgements section --------- Co-authored-by: Henry Webel <[email protected]>
1 parent bce1787 commit a787ced

File tree

52 files changed

+124845
-5622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+124845
-5622
lines changed

.github/workflows/cdci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- name: Execute streamlit report
3434
run: |
3535
cd docs
36-
vuegen --config example_data/MicW2Graph/report_config_micw2graph.yaml
36+
vuegen --directory example_data/Earth_microbiome_vuegen_demo_notebook
37+
vuegen --config example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml
3738
3839
other-reports:
3940
name: Integration tests
@@ -56,33 +57,41 @@ jobs:
5657
- name: Execute streamlit report (to check)
5758
run: |
5859
cd docs
59-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml
60+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook
61+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml
6062
# repeat for easier inspection on GitHub:
6163
- name: quarto html report
6264
run: |
6365
cd docs
64-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt html
66+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt html
67+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt html
6568
- name: quarto pdf report
6669
run: |
6770
cd docs
68-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt pdf
71+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt pdf
72+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt pdf
6973
- name: quarto docx report
7074
run: |
7175
cd docs
72-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt docx
76+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt docx
77+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt docx
7378
- name: quarto odt report
7479
run: |
7580
cd docs
76-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt odt
81+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt odt
82+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt odt
7783
- name: quarto revealjs report
7884
run: |
7985
cd docs
80-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt revealjs
86+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt revealjs
87+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt revealjs
8188
- name: quarto pptx report
8289
run: |
8390
cd docs
84-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt pptx
91+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt pptx
92+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt pptx
8593
- name: quarto jupyter report
8694
run: |
8795
cd docs
88-
vuegen -c example_data/MicW2Graph/report_config_micw2graph.yaml -rt jupyter
96+
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt jupyter
97+
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt jupyter

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,4 @@ docs/images/UML_diagrams/
127127
docs/images/Graphical_abstract/
128128
docs/images/Nfcore_module_figure
129129
docs/presentations/
130-
test.py
131-
docs/example_data/Earth_microbiome_vuegen_demo_notebook/
132-
docs/example_data/emp_deblur_100bp.subset_2k.rare_5000.biom
133-
docs/vuegen_case_study_earth_microbiome.ipynb
130+
test.py

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
- [About the project](#about-the-project)
1212
- [Installation](#installation)
1313
- [Execution](#execution)
14+
- [Acknowledgements](#acknowledgements)
1415
- [Contact](#contact)
1516

1617
## About the project
17-
VueGen automates the creation of scientific reports based on a YAML configuration file. This configuration file specifies the structure of the report, including sections, subsections, and various components such as plots, dataframes, markdown, and API calls. Reports can be generated in various formats, including documents (PDF, HTML, DOCX, ODT), presentations (PPTX, Reveal.js), notebooks (Jupyter) or [Streamlit](streamlit) web applications.
18+
VueGen automates the creation of reports based on a directory with plots, dataframes, and other files in different formats. A YAML configuration file is generated from the directory to define the structure of the report. Users can customize the report by modifying the configuration file, or they can create their own configuration file instead of passing a directory as input.
19+
20+
The configuration file specifies the structure of the report, including sections, subsections, and various components such as plots, dataframes, markdown, html, and API calls. Reports can be generated in various formats, including documents (PDF, HTML, DOCX, ODT), presentations (PPTX, Reveal.js), notebooks (Jupyter) or [Streamlit](streamlit) web applications.
1821

1922
An overview of the VueGen workflow is shown in the figure below:
2023

@@ -41,7 +44,7 @@ You can install the package for development from this repository by running the
4144

4245
```bash
4346
pip install -e path/to/vuegen # specify location
44-
pip install -e . # in case you pwd is in the vuegen directory
47+
pip install -e . # in case your pwd is in the vuegen directory
4548
```
4649

4750
### Quarto installation
@@ -67,27 +70,39 @@ quarto check
6770

6871
## Execution
6972

70-
Run VueGen using a configuration file with the following command:
73+
Run VueGen using a directory with the following command:
7174

7275
```bash
7376
cd docs
74-
vuegen --config example_data/MicW2Graph/report_config_micw2graph.yaml --report_type streamlit
77+
vuegen --directory example_data/Earth_microbiome_vuegen_demo_notebook --report_type streamlit
7578
```
7679

7780
> 💡 If `vuegen` does not work, try `python -m vuegen` instead.
7881
7982
By default, the `streamlit_autorun` argument is set to False, but you can use it in case you want to automatically run the streamlit app.
8083

81-
It's also possible to provide a directory instead of a configuration file:
84+
It's also possible to provide a configuration file instead of a directory:
8285

8386
```bash
84-
vuegen --directory docs/example_data/MicW2Graph/ --report_type streamlit
87+
vuegen --config example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml --report_type streamlit
8588
```
8689

8790
The current report types are streamlit, html, pdf, docx, odt, revealjs, pptx, and jupyter.
8891

92+
## Acknowledgements
93+
94+
- Vuegen was developed by the [Multiomics Network Analytics Group (MoNA)][Mona] at the [Novo Nordisk Foundation Center for Biosustainability (DTU Biosustain)][Biosustain].
95+
- The vuegen logo was designed based on an image created by [Scriberia][scriberia] for The [Turing Way Community][turingway], which is shared under a CC-BY licence. The original image can be found at [Zenodo][zenodo-turingway].
96+
8997
## Contact
9098
If you have comments or suggestions about this project, you can [open an issue][issues] in this repository.
9199

92100
[issues]: https://github.com/Multiomics-Analytics-Group/vuegen/issues/new
93101
[streamlit]: https://streamlit.io/
102+
[Mona]: https://multiomics-analytics-group.github.io/
103+
[Biosustain]: https://www.biosustain.dtu.dk/
104+
[scriberia]: https://www.scriberia.co.uk/
105+
[turingway]: https://github.com/the-turing-way/the-turing-way
106+
[zenodo-turingway]: https://zenodo.org/records/3695300
107+
108+

0 commit comments

Comments
 (0)