annotate 1.0.0/modules/cat/tables/README.md @ 0:0a8dda29956e draft default tip

planemo upload
author galaxytrakr
date Thu, 28 May 2026 20:41:10 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
1 # NextFlow DSL2 Module
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
2
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
3 ```bash
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
4 TABLE_SUMMARY
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
5 ```
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
6
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
7 ## Description
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
8
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
9 Concatenates a list of tables (CSV or TAB delimited) in `.txt` or `.csv` format. The table files to be concatenated **must** have a header as the header from one of the table files will be used as the header for the concatenated result table file.
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
10
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
11 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
12  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
13
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
14 ### `input:`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
15
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
16 ___
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
17
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
18 Type: `tuple`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
19
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
20 Takes in the following tuple of `val` table key (`table_sum_on`) and a list of table files of input type `path` (`tables`) to be concatenated. For this module to work, a `bin` directory with the script `create_mqc_data_table.py` should be present where the NextFlow script using this DSL2 module will be run. This `python` script will convert the aggregated table to `.yml` format to be used with `multiqc`.
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
21
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
22 Ex:
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
23
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
24 ```groovy
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
25 [ ['ectyper'], ['/data/sample1/f1_ectyper.txt', '/data/sample2/f2_ectyper.txt'] ]
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
26 ```
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
27
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
28 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
29  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
30
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
31 #### `table_sum_on`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
32
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
33 Type: `val`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
34
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
35 A single key defining what tables are being concatenated. For example, if all the `ectyper` results are being concatenated for all samples, then this can be `ectyper`.
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
36
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
37 Ex:
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
38
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
39 ```groovy
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
40 [ ['ectyper'], ['/data/sample1/f1_ectyper.txt', '/data/sample2/f2_ectyper.txt'] ]
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
41 ```
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
42
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
43 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
44  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
45
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
46 #### `tables`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
47
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
48 Type: `path`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
49
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
50 NextFlow input type of `path` pointing to a list of tables (files) to be concatenated.
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
51
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
52 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
53  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
54
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
55 ### `output:`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
56
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
57 ___
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
58
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
59 Type: `tuple`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
60
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
61 Outputs a tuple of table key (`table_sum_on` from `input:`) and list of concatenated table files (`tblsummed`).
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
62
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
63 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
64  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
65
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
66 #### `tblsummed`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
67
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
68 Type: `path`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
69
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
70 NextFlow output type of `path` pointing to the concatenated table files per table key (Ex: `ectyper`).
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
71
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
72 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
73  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
74
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
75 #### `mqc_yml`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
76
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
77 Type: `path`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
78
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
79 NextFlow output type of `path` pointing to the `.yml` file storing table contents in `YAML` format which can be used to inject this table as part of the `multiqc` report.
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
80
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
81 \
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
82  
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
83
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
84 #### `versions`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
85
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
86 Type: `path`
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
87
0a8dda29956e planemo upload
galaxytrakr
parents:
diff changeset
88 NextFlow output type of `path` pointing to the `.yml` file storing software versions for this process.