Hoohm / dropSeqPipe

A SingleCell RNASeq pre-processing snakemake workflow
Creative Commons Attribution Share Alike 4.0 International
147 stars 47 forks source link

InputFunctionException in line 5 /rules/map.smk #23

Closed olechnwin closed 6 years ago

olechnwin commented 6 years ago

Hi,

I cannot figure out how to fix this error:

InputFunctionException in line 5 of /rules/map.smk: KeyError: 'the label [sample1_N706_S2_L001_MOUSE] is not in the [index]' Wildcards: sample=sample1_N706_S2_L001_MOUSE

I've ran snakemake --cores 12 qc filter map and it ran to completion. Then, the above error happen when running: snakemake --cores 12 split_species extract_species

here is my config.yaml: LOCAL: TMPDIR: ~/tmp DROPSEQ-wrapper: opt/Drop-seq_tools-1.13/drop-seq-tools-wrapper.sh MEMORY: 32g META: species:

Hoohm commented 6 years ago

Hello @olechnwin This is a known bug and I'm working on it. I have a testing fix. Can you try to add those lines to the Snakefile file:

wildcard_constraints:
    sample="({})".format("|".join(samples.index))

Tell me if it works

olechnwin commented 6 years ago

Hi @Hoohm Where should I put those lines? under rule split_species?

update: looks like the above fix works when I put it below read_lengths line.

Hoohm commented 6 years ago

@olechnwin Great news!

This will be added in the next release. Can this issue be closed?