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

Ambiguous error message when SAM file contains no UMI in htseq-count-umified #5

Open
jarondl opened this issue Jul 19, 2015 · 0 comments

Comments

@jarondl
Copy link
Contributor

jarondl commented Jul 19, 2015

If one runs htseq-count-umified with umi=true, but without UMIs in the SAM file, the error message is quite unclear:

Error occured when processing SAM input (line 97460 of file SAMFILE):
Traceback (most recent call last):
  File "/illumina1/YanaiLab/new_fs/tools/bin/pijpleiding_stable", line 129, in <module>
    main(args.config_file)
  File "/illumina1/YanaiLab/new_fs/tools/bin/pijpleiding_stable", line 93, in main
    segment(**parameters)
  File "/illumina1/YanaiLab/new_fs/tools/pipeline_stable/htseq_wrapper.py", line 82, in main
    results = pool.map(run_cmd, cmds)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 250, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 554, in get
    raise self._value
AttributeError: 'NoneType' object has no attribute 'group'

That is because the relevant code block ( https://github.com/yanailab/CEL-Seq-pipeline/blob/stable/htseq_count_umified.py#L50 ) assumes a umi is always matched.

A better error message should apear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant