Skip to content

Commit 36bcfdf

Browse files
committed
🐛 specify relative link to config file from root
- same as for main.py - update config accordingly
1 parent 402bc01 commit 36bcfdf

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pip install -e . # in case you pwd is in the vuegen directory
4545
## Execution
4646

4747
```bash
48-
python vuegen/main.py --config report_config_micw2graph.yaml --report_type streamlit
48+
python vuegen/main.py --config example_data/MicW2Graph/report_config_micw2graph.yaml --report_type streamlit
4949
```
5050

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

example_data/MicW2Graph/report_config_micw2graph.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ report:
99
infer potential interactions among microorganisms through microbial association networks (MANs). MicW2Graph enables the
1010
investigation of research questions related to WWT, focusing on aspects such as microbial connections, community memberships,
1111
and potential ecological functions.
12-
graphical_abstract: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/Methods_MicW2Graph.png
13-
logo: /Users/asaru/Documents/DTU/MoNA/vuegen/docs/images/vuegen_logo.png
12+
graphical_abstract: example_data/MicW2Graph/Methods_MicW2Graph.png
13+
logo: docs/images/vuegen_logo.png
1414
sections:
1515
- title: Exploratory Data Analysis
1616
subsections:
@@ -25,34 +25,34 @@ sections:
2525
- title: Multiline plot (altair)
2626
component_type: plot
2727
plot_type: altair
28-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/1_Abundance_data/2_multilineplot_altair.json
28+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/1_Abundance_data/2_multilineplot_altair.json
2929
- title: Abundance data for all studies (csv)
3030
component_type: dataframe
3131
file_path: https://raw.githubusercontent.com/sayalaruano/report_generator_st_cloud_test/main/example_data/MicW2Graph/abundance_data_allbiomes.csv
3232
file_format: csv
3333
delimiter: ','
3434
- title: Abundance data for all studies (xls)
3535
component_type: dataframe
36-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/1_Abundance_data/4_abundance_data_allbiomes.xls
36+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/1_Abundance_data/4_abundance_data_allbiomes.xls
3737
file_format: xls
3838
delimiter: ','
3939
- title: Sample data
4040
components:
4141
- title: Number of samples per study (png)
4242
component_type: plot
4343
plot_type: static
44-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/3_number_samples_per_study.png
44+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/3_number_samples_per_study.png
4545
- title: Sampling countries for all studies (plotly)
4646
component_type: plot
4747
plot_type: plotly
48-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/1_pie_plot_countries_plotly.json
48+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/1_pie_plot_countries_plotly.json
4949
- title: Sample data for all studies (parquet)
5050
component_type: dataframe
51-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/4_sample_info_allbiomes.parquet
51+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/4_sample_info_allbiomes.parquet
5252
file_format: parquet
5353
- title: Sample data for all studies (txt)
5454
component_type: dataframe
55-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/5_sample_info_allbiomes.txt
55+
file_path: example_data/MicW2Graph/1_Exploratory_Data_Analysis/2_Sample_data/5_sample_info_allbiomes.txt
5656
file_format: txt
5757
- title: Extra information
5858
components:
@@ -66,17 +66,17 @@ sections:
6666
- title: Network1 (graphml)
6767
component_type: plot
6868
plot_type: interactive_network
69-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/2_Microbial_Association_Networks/1_Network_visualization1/1_man_example.graphml
69+
file_path: example_data/MicW2Graph/2_Microbial_Association_Networks/1_Network_visualization1/1_man_example.graphml
7070
- title: Network Visualization2
7171
components:
7272
- title: Network2 (edge list csv)
7373
component_type: plot
7474
plot_type: interactive_network
7575
csv_network_format: edgelist
76-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/2_Microbial_Association_Networks/2_Network_visualization2/1_man_example.csv
76+
file_path: example_data/MicW2Graph/2_Microbial_Association_Networks/2_Network_visualization2/1_man_example.csv
7777
- title: Edge list (csv)
7878
component_type: dataframe
79-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/2_Microbial_Association_Networks/2_Network_visualization2/1_man_example.csv
79+
file_path: example_data/MicW2Graph/2_Microbial_Association_Networks/2_Network_visualization2/1_man_example.csv
8080
file_format: csv
8181
delimiter: ','
8282
caption: This is the edge list of the network
@@ -85,13 +85,13 @@ sections:
8585
- title: Network3 (cyjs)
8686
component_type: plot
8787
plot_type: interactive_network
88-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/2_Microbial_Association_Networks/3_Network_visualization3/1_man_example.cyjs
88+
file_path: example_data/MicW2Graph/2_Microbial_Association_Networks/3_Network_visualization3/1_man_example.cyjs
8989
- title: Network Visualization4
9090
components:
9191
- title: Network4 (html)
9292
component_type: plot
9393
plot_type: interactive_network
94-
file_path: /Users/asaru/Documents/DTU/MoNA/vuegen/example_data/MicW2Graph/2_Microbial_Association_Networks/4_Network_visualization4/1_ckg_network.html
94+
file_path: example_data/MicW2Graph/2_Microbial_Association_Networks/4_Network_visualization4/1_ckg_network.html
9595
- title: Network Visualization5
9696
components:
9797
- title: Network5 (remote html)

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ ipykernel = "^6.29.5"
3434
[build-system]
3535
requires = ["poetry-core"]
3636
build-backend = "poetry.core.masonry.api"
37+
38+
# https://stackoverflow.com/a/60990574/9684872
39+
[tool.poetry.extras]
40+
streamlit = ["streamlit"]
41+
42+
# [project.scripts]
43+
# my-script = "vuegen.main:main"

0 commit comments

Comments
 (0)