Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate all settings in the settings file before starting snakemake #150

Open
alexg9010 opened this issue Aug 7, 2020 · 1 comment
Open
Labels

Comments

@alexg9010
Copy link
Member

If the user creates a settings file, where a the tools paragraph is actually empty like in the example below:

general:
[..]
    bowtie2:
        # set k if you want to report at most k alignments per read
        # k: 1
        # N: Sets the number of mismatches to allowed in a seed alignment during multiseed alignment. Can be set to 0 or 1. Setting this higher makes alignment slower (often much slower) but increases sensitivity. Default: 0.
        # N: 0
[...]

We get a cryptic error later in the pipeline:

message)�[0m
�[31mRuleException:
TypeError in line 174 of /gnu/store/nxk52pcmvizq6vlb4xmg2x0c3s74xprb-pigx-chipseq-0.0.42/libexec/pigx_chipseq/scripts/SnakeFunctions.py:
'NoneType' object is not iterable
  File "/gnu/store/nxk52pcmvizq6vlb4xmg2x0c3s74xprb-pigx-chipseq-0.0.42/libexec/pigx_chipseq/Rules/Mapping.py", line 220, in __rule_bowtie2
  File "/gnu/store/nxk52pcmvizq6vlb4xmg2x0c3s74xprb-pigx-chipseq-0.0.42/libexec/pigx_chipseq/scripts/SnakeFunctions.py", line 174, in join_params
  File "/gnu/store/09a5iq080g9b641jyl363dr5jkkvnhcn-python-3.8.2/lib/python3.8/concurrent/futures/thread.py", line 57, in run�[0m

We need to validate this earlier.

@alexg9010 alexg9010 added the bug label Aug 7, 2020
@rekado
Copy link
Member

rekado commented Aug 7, 2020 via email

alexg9010 added a commit that referenced this issue Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants