When function is used as input parameter, -n does not show all dependent files

Create issue
Issue #34 resolved
Feng Jianxing created an issue

Here is the code:

def tf(wildcards):
    return ['fileB', 'fileC']

rule rA:
    input: tf #'fileA'

rule rB:
    input: 'fileB', 'fileB'
    output: 'fileA'
    version: "" + os.path.getmtime("markfile")
    shell: """
           echo {input} >> log
           echo {output} >> log
           touch fileA

rule rC:
    input: 'fileC'
    output: 'fileB'
    shell: 'touch fileB'

Execute 'snakemake -n', get:

rule rC:
        input: fileC
        output: fileB
rule rA:
        input: fileB

Comments (1)

  1. Log in to comment