annotate 0.5.0/modules/cat/tables/README.md @ 2:4678c2cd1c9e

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