kkonganti@92: # NextFlow DSL2 Module kkonganti@92: kkonganti@92: ```bash kkonganti@92: CENTRIFUGE_PROCESS kkonganti@92: ``` kkonganti@92: kkonganti@92: ## Description kkonganti@92: kkonganti@92: Extract FASTQ reads given a FASTQ file originally used with `centrifuge` tool and a taxa of interest. This specific module uses a `python` script to generate the FASTQ read ids and as such requires a `bin` folder with `process_centrifuge_output.py` to be present where the NextFlow script will be executed from. See also `CENTRIFUGE_EXTRACT` module which uses only GNU Coreutils to create a list of FASTQ read ids that need to be extracted. kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: ### `input:` kkonganti@92: kkonganti@92: ___ kkonganti@92: kkonganti@92: Type: `tuple` kkonganti@92: kkonganti@92: Takes in a tuple in order of metadata (`meta`), a `path` (`centrifuge_report`) type and another `path` (`centrifuge_report`) per sample (`id:`). kkonganti@92: kkonganti@92: Ex: kkonganti@92: kkonganti@92: ```groovy kkonganti@92: [ kkonganti@92: [ id: 'FAL00870', kkonganti@92: strandedness: 'unstranded', kkonganti@92: single_end: true, kkonganti@92: centrifuge_x: '/hpc/db/centrifuge/2022-04-12/ab' kkonganti@92: ], kkonganti@92: '/hpc/scratch/test/FAL000870/f1.merged.cent_out.report.txt', kkonganti@92: '/hpc/scratch/test/FAL000870/f1.merged.cent_out.output.txt' kkonganti@92: ] kkonganti@92: ``` kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: #### `meta` kkonganti@92: kkonganti@92: Type: Groovy Map kkonganti@92: kkonganti@92: A Groovy Map containing the metadata about the FASTQ file. kkonganti@92: kkonganti@92: Ex: kkonganti@92: kkonganti@92: ```groovy kkonganti@92: [ kkonganti@92: id: 'FAL00870', kkonganti@92: strandedness: 'unstranded', kkonganti@92: single_end: true, kkonganti@92: centrifuge_x: '/hpc/db/centrifuge/2022-04-12/ab' kkonganti@92: ] kkonganti@92: ``` kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: #### `centrifuge_report` kkonganti@92: kkonganti@92: Type: `path` kkonganti@92: kkonganti@92: NextFlow input type of `path` pointing to `centrifuge` report file generated using `--report-file` option of `centrifuge` tool. kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: #### `centrifuge_output` kkonganti@92: kkonganti@92: Type: `path` kkonganti@92: kkonganti@92: NextFlow input type of `path` pointing to `centrifuge` output file generated using `-S` option of `centrifuge` tool. kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: ### `output:` kkonganti@92: kkonganti@92: ___ kkonganti@92: kkonganti@92: Type: `tuple` kkonganti@92: kkonganti@92: Outputs a tuple of metadata (`meta` from `input:`) and list of extracted FASTQ read ids. kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: #### `extracted` kkonganti@92: kkonganti@92: Type: `path` kkonganti@92: kkonganti@92: NextFlow output type of `path` pointing to the extracted FASTQ read ids belonging to a particular taxa (`*.extract-centrifuge-bug-ids.txt`). kkonganti@92: kkonganti@92: \ kkonganti@92:   kkonganti@92: kkonganti@92: #### `versions` kkonganti@92: kkonganti@92: Type: `path` kkonganti@92: kkonganti@92: NextFlow output type of `path` pointing to the `.yml` file storing software versions for this process.