annotate 0.5.0/modules/cat/tables/README.md @ 0:97cd2f532efe

planemo upload
author kkonganti
date Mon, 31 Mar 2025 14:50:40 -0400
parents
children
rev   line source
kkonganti@0 1 # NextFlow DSL2 Module
kkonganti@0 2
kkonganti@0 3 ```bash
kkonganti@0 4 TABLE_SUMMARY
kkonganti@0 5 ```
kkonganti@0 6
kkonganti@0 7 ## Description
kkonganti@0 8
kkonganti@0 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.
kkonganti@0 10
kkonganti@0 11 \
kkonganti@0 12  
kkonganti@0 13
kkonganti@0 14 ### `input:`
kkonganti@0 15
kkonganti@0 16 ___
kkonganti@0 17
kkonganti@0 18 Type: `tuple`
kkonganti@0 19
kkonganti@0 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`.
kkonganti@0 21
kkonganti@0 22 Ex:
kkonganti@0 23
kkonganti@0 24 ```groovy
kkonganti@0 25 [ ['ectyper'], ['/data/sample1/f1_ectyper.txt', '/data/sample2/f2_ectyper.txt'] ]
kkonganti@0 26 ```
kkonganti@0 27
kkonganti@0 28 \
kkonganti@0 29  
kkonganti@0 30
kkonganti@0 31 #### `table_sum_on`
kkonganti@0 32
kkonganti@0 33 Type: `val`
kkonganti@0 34
kkonganti@0 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`.
kkonganti@0 36
kkonganti@0 37 Ex:
kkonganti@0 38
kkonganti@0 39 ```groovy
kkonganti@0 40 [ ['ectyper'], ['/data/sample1/f1_ectyper.txt', '/data/sample2/f2_ectyper.txt'] ]
kkonganti@0 41 ```
kkonganti@0 42
kkonganti@0 43 \
kkonganti@0 44  
kkonganti@0 45
kkonganti@0 46 #### `tables`
kkonganti@0 47
kkonganti@0 48 Type: `path`
kkonganti@0 49
kkonganti@0 50 NextFlow input type of `path` pointing to a list of tables (files) to be concatenated.
kkonganti@0 51
kkonganti@0 52 \
kkonganti@0 53  
kkonganti@0 54
kkonganti@0 55 ### `output:`
kkonganti@0 56
kkonganti@0 57 ___
kkonganti@0 58
kkonganti@0 59 Type: `tuple`
kkonganti@0 60
kkonganti@0 61 Outputs a tuple of table key (`table_sum_on` from `input:`) and list of concatenated table files (`tblsummed`).
kkonganti@0 62
kkonganti@0 63 \
kkonganti@0 64  
kkonganti@0 65
kkonganti@0 66 #### `tblsummed`
kkonganti@0 67
kkonganti@0 68 Type: `path`
kkonganti@0 69
kkonganti@0 70 NextFlow output type of `path` pointing to the concatenated table files per table key (Ex: `ectyper`).
kkonganti@0 71
kkonganti@0 72 \
kkonganti@0 73  
kkonganti@0 74
kkonganti@0 75 #### `mqc_yml`
kkonganti@0 76
kkonganti@0 77 Type: `path`
kkonganti@0 78
kkonganti@0 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.
kkonganti@0 80
kkonganti@0 81 \
kkonganti@0 82  
kkonganti@0 83
kkonganti@0 84 #### `versions`
kkonganti@0 85
kkonganti@0 86 Type: `path`
kkonganti@0 87
kkonganti@0 88 NextFlow output type of `path` pointing to the `.yml` file storing software versions for this process.