You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 🎨 remove non-existing doc from index, format action, non-editable install
* 🎨 format and use non-editable installation
* 📝 Update README and docs structure
* 📝 Update README with info for installing and running nf-vuegen
* 📝 Correct admonitions for GUI section
---------
Co-authored-by: Sebastián Ayala Ruano <[email protected]>
Co-authored-by: sayalaruano <[email protected]>
Also, the class diagram for the project's current version is presented below to show the architecture and relationships between classes:
40
44
41
45

42
46
@@ -59,9 +63,11 @@ pip install vuegen
59
63
60
64
You can also install the package for development by cloning this repository and running the following command:
61
65
66
+
> [!WARNING]
67
+
> We assume you are in the root directory of the cloned repository when running this command. Otherwise, you need to specify the path to the `vuegen` directory.
68
+
62
69
```bash
63
-
pip install -e path/to/vuegen # specify location
64
-
pip install -e .# in case your pwd is in the vuegen directory
70
+
pip install -e .
65
71
```
66
72
67
73
### Conda
@@ -98,12 +104,19 @@ If you prefer not to install VueGen on your system, a pre-configured Docker cont
98
104
99
105
### Nextflow and nf-core
100
106
101
-
VueGen is also available as a [nf-core][nfcore] module, customised for compatibility with the [Nextflow][nextflow] environment. This module is designed to automate report generation from outputs produced by other modules, subworkflows, or pipelines. You can read the offical documentation for the nf-core module [here](nf-vuegen-nf-core). Also, the source code and detailed documentation are available in the [nf-VueGen repository][nf-vuegen].
107
+
VueGen is also available as a [nf-core][nfcore] module, customised for compatibility with the [Nextflow][nextflow] environment. This module is designed to automate report generation from outputs produced by other modules, subworkflows, or pipelines. Asumming that you have `nextflow` and `nf-core` installed, you can use the following command to install the nf-core module:
108
+
109
+
```bash
110
+
nf-core modules install vuegen
111
+
```
112
+
113
+
> [!NOTE]
114
+
> You can read the offical documentation for the nf-core module [here][nf-vuegen-nf-core]. Also, the source code and additional details are available in the [nf-VueGen repository][nf-vuegen].
102
115
103
116
## Execution
104
117
105
118
> [!IMPORTANT]
106
-
> Here we use the `Earth_microbiome_vuegen_demo_notebook`[directory][emp-dir] and the `Earth_microbiome_vuegen_demo_notebook.yaml`[configuration file][emp-config] as examples, which are available in the `docs/example_data` and `docs/example_config_files` folders, respectively. Make sure to clone this reposiotry to access these contents, or use your own directory and configuration file.
119
+
> Here we use the `Earth_microbiome_vuegen_demo_notebook`[directory][emp-dir] and the `Earth_microbiome_vuegen_demo_notebook.yaml`[configuration file][emp-config] as examples, which are available in the `docs/example_data` and `docs/example_config_files` folders, respectively. Make sure to clone the VueGen's GitHub reposiotry to access these contents, or use your own directory and configuration file.
107
120
108
121
Run VueGen using a directory with the following command:
Your input directory must follow a **nested folder structure**, where first-level folders are treated as **sections** and second-level folders as **subsections**, containing the components (plots, tables, networks, Markdown text, and HTML files).
132
+
Your input directory should follow a **nested folder structure**, where first-level folders are treated as **sections** and second-level folders as **subsections**, containing the components (plots, tables, networks, Markdown text, and HTML files). If the component files are in the first-level folders, an `overview` subsection will be created automatically.
120
133
121
134
Here is an example layout:
122
135
123
136
```
124
137
report_folder/
125
138
├── section1/
139
+
│ ├── table1.tsv
126
140
│ └── subsection1/
127
-
│ ├── table.csv
141
+
│ ├── table2.csv
128
142
│ ├── image1.png
129
143
│ └── chart.json
130
144
├── section2/
145
+
│ ├── image2.jpg
131
146
│ ├── subsection1/
132
147
│ │ ├── summary_table.xls
133
148
│ │ └── network_plot.graphml
@@ -136,9 +151,6 @@ report_folder/
136
151
│ └── summary.md
137
152
```
138
153
139
-
> [!WARNING]
140
-
> VueGen currently requires each section to contain at least one subsection folder. Defining only sections (with no subsections) or using deeper nesting levels (i.e., sub-subsections) will result in errors. In upcoming releases, we plan to support more flexible directory structures.
141
-
142
154
The titles for sections, subsections, and components are extracted from the corresponding folder and file names, and afterward, users can add descriptions, captions, and other details to the configuration file. Component types are inferred from the file extensions and names.
143
155
The order of sections, subsections, and components can be defined using numerical suffixes in folder and file names.
You can run the pipeline with the following command:
215
+
216
+
```bash
217
+
nextflow run main.nf --directory docs/example_data/Basic_example_vuegen_demo_notebook --report_type html
218
+
```
219
+
220
+
> [!NOTE]
221
+
> You can read the offical documentation for the nf-core module [here][nf-vuegen-nf-core]. Also, the source code and additional details are available in the [nf-VueGen repository][nf-vuegen].
222
+
175
223
## GUI
176
224
225
+
We have a simple GUI for VueGen that can be run locally or through a standalone executable.
226
+
177
227
### Local GUI
178
228
179
-
We have a simple GUI for VueGen that can be run locally or through a standalone executable.
180
-
For now you will need to have a copy of this repository.
229
+
To use the **local GUI**, you should clone this repository and install the required dependencies. You can do this by running the following command in the root directory of the cloned repository:
181
230
182
231
```bash
183
232
pip install '.[gui]'
184
-
cd gui
233
+
```
234
+
235
+
Then, you should move to the `gui` folder and execute the `app.py` Python file:
236
+
237
+
```bash
185
238
python app.py
186
239
```
187
240
@@ -190,53 +243,61 @@ python app.py
190
243
The **bundle GUI** with the VueGen package is available under the
> It is advisable to create a virtual environment to manage depenendencies and avoid conflicts with existing packages. You can use the virtual environment manager of your choice, such as `poetry`, `conda`, or `pipenv`. We recommend using [miniforge][conda-download] to install Python and the `conda` package manager.
202
254
203
-
We continous our example assuming you have installed the `miniforge` distribution for your
204
-
machine (MacOS with arm64/ apple silicon or x86_64/ intel or Windows x86_64). Also download
205
-
the [latest `vuegen_gui` bundle](https://github.com/Multiomics-Analytics-Group/vuegen/releases/latest)
255
+
We assume you have installed the `miniforge` distribution for your machine (MacOS with arm64/ apple silicon
256
+
or x86_64/ intel or Windows x86_64). Also, download the
0 commit comments