fiberseq / fiberseq-smk

Snakemake pipeline for processing fiberseq data
https://fiberseq.github.io/fiberseq-smk/
MIT License
3 stars 0 forks source link

assert for missing ccs .pbi file not working #2

Closed MorganHamm closed 2 years ago

MorganHamm commented 2 years ago

I tried to run snakemake with a ccs file that did not have a .pbi file. I got the following error:

NameError in line 19 of fiberseq-smk/workflow/Snakefile: name 'subreads' is not defined

I think this should have resulted in an error like this though: "pbi for input_ccs.bam does not exist".

I think line 19 of workflow/Snakefile should be changed from: assert os.path.exists(f"{input_ccs}.pbi"), f"pbi for {subreads} does not exist" to: assert os.path.exists(f"{input_ccs}.pbi"), f"pbi for {input_ccs} does not exist"