Skip to content

Commit 35ce7db

Browse files
committed
📝 Docs: Update README with extended description and the EMP example data paths
1 parent e689053 commit 35ce7db

File tree

3 files changed

+259
-245
lines changed

3 files changed

+259
-245
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
- [Contact](#contact)
1515

1616
## 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.
17+
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.
18+
19+
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.
1820

1921
An overview of the VueGen workflow is shown in the figure below:
2022

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

4244
```bash
4345
pip install -e path/to/vuegen # specify location
44-
pip install -e . # in case you pwd is in the vuegen directory
46+
pip install -e . # in case your pwd is in the vuegen directory
4547
```
4648

4749
### Quarto installation
@@ -67,21 +69,21 @@ quarto check
6769

6870
## Execution
6971

70-
Run VueGen using a configuration file with the following command:
72+
Run VueGen using a directory with the following command:
7173

7274
```bash
7375
cd docs
74-
vuegen --config example_data/MicW2Graph/report_config_micw2graph.yaml --report_type streamlit
76+
vuegen --directory example_data/Earth_microbiome_vuegen_demo_notebook --report_type streamlit
7577
```
7678

7779
> 💡 If `vuegen` does not work, try `python -m vuegen` instead.
7880
7981
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.
8082

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

8385
```bash
84-
vuegen --directory docs/example_data/MicW2Graph/ --report_type streamlit
86+
vuegen --config example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml --report_type streamlit
8587
```
8688

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

docs/vuegen_case_study_earth_microbiome.ipynb

Lines changed: 251 additions & 235 deletions
Large diffs are not rendered by default.

vuegen/streamlit_reportview.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ def _generate_plot_content(self, plot, static_dir: str = STATIC_FILES_DIR) -> Li
374374
except Exception as e:
375375
self.report.logger.error(f"Error generating content for '{plot.plot_type}' plot '{plot.id}' '{plot.title}': {str(e)}")
376376
raise
377-
378-
# Add caption if available
379-
#if plot.caption:
380-
# plot_content.append(self._format_text(text=plot.caption, type='caption', text_align="left"))
381377

382378
self.report.logger.info(f"Successfully generated content for plot '{plot.id}': '{plot.title}'")
383379
return plot_content

0 commit comments

Comments
 (0)