Skip to content

Publish fastp reports and log files #290

@racng

Description

@racng

Description of feature

I want to use the fastp step in the oncoanalyser pipeline to trim polyG and adapters to save memory storage space and reduce the number of pipelines I am using. I understand that this can be done by changing the FASTP module's ext.argsin the config files with process selector. However, can the FASTP module be changed to save report and log files from the fastp process and publish them (json, html, log files)?

For example, add the last three lines to the fastp command:

"""
fastp \\
        ${args} \\
        --in1 ${reads_fwd} \\
        --in2 ${reads_rev} \\
        ${umi_args} \\
        ${split_by_lines_arg} \\
        --thread ${task.cpus} \\
        --out1 ${meta.sample_id}_${meta.library_id}_${meta.lane}_R1.fastp.fastq.gz \\
        --out2 ${meta.sample_id}_${meta.library_id}_${meta.lane}_R2.fastp.fastq.gz \\
        --json ${meta.sample_id}_${meta.library_id}_${meta.lane}.fastp.json \\
        --html ${meta.sample_id}_${meta.library_id}_${meta.lane}.fastp.html \\
        2> >(tee  ${meta.sample_id}_${meta.library_id}_${meta.lane}.fastp.log >&2)
"""

I am still new to nextflow so I am not sure what other changes to the workflow files would be best to get those files published.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions