Trying to use expand and zip properly to expand two lists for defining the output rule is leading to new wildcards that I didn't think would be defined
BASES = ['wt_base', 'wt', 'wt_base_ars', 'F210i_base', 'no_4su']
CONTRASTS = ['f210i_base', 'f210i', 'wt_during_ars', 'F210i_during_ars', '24hr_4su']
rule top:
input:
expand(config['majiq_top_level'] + "delta_psi/" + "{base}_{contrast}" + ".tsv",zip, base = BASES,contrast = CONTRASTS)
Fails with
Building DAG of jobs...
InputFunctionException in line 81 of /SAN/vyplab/alb_projects/pipelines/splicing/rules/majiq.smk:
UnboundLocalError: local variable 'grps' referenced before assignment
Wildcards:
base=wt_base_f210i
contrast=base
I have already tried to remove the "_" both from from the rule and from the names with the same error
BASES=['wtbase', 'wt', 'wtbasears', 'F210ibase', 'no4su']
CONTRASTS=['f210ibase', 'f210i', 'wtduringars', 'F210iduringars', '24hr4su']
rule top:
input:
expand(config['majiq_top_level'] + "delta_psi/" + "{base}{contrast}" + ".tsv",zip, base = BASES,contrast = CONTRASTS)
InputFunctionException in line 82 of /SAN/vyplab/alb_projects/pipelines/splicing/rules/majiq.smk:
UnboundLocalError: local variable 'grps' referenced before assignment
Wildcards:
base=wtbasef210ibas
contrast=e
The error is due to a function later on, but that function would not fail if the input wildcards were in the provided lists of BASES or CONTRASTS.
Instead we have a combination of two values from each list as the 'base' wildcards and I don't even know where the contrast=base is coming from
I'm thinking the use of "_" in my list names might be the confusing part but I'm not sure?