Skip to content

Changes in sample_info 'stranded' field to not trigger rerun of STAR mapping #27

@Nicolai-vKuegelgen

Description

@Nicolai-vKuegelgen

Sometimes one wants/needs to change the information in the 'stranded' field of the sample_info.yaml file, i.e. if information was wrong or not available before the first run. A change in this parameter should trigger a rerun of STAR and all downstream rules. However, this does currently not happen.

Proposed solution: with the newerst snakemake version a rerun can be triggered by changes in the rule params. Therefore adding the following line (adapted form from the run block) to the params section in the STAR rule should fix this issue:
count_col = lambda wildcards: {"unstranded":2, "forward":3, "reverse":4}[config["sample_info"][wildcards.sample]["stranded"]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions