"tag 'NH' not present"
See original GitHub issueTrying to run velocyto with the following command:
velocyto run-smartseq2 -o OUTPUT -e *sorted.bam gencode.vM21.annotation.gtf
Getting following error:
2019-05-27 17:00:20,075 - DEBUG - Read first 0 million reads
Traceback (most recent call last):
File "/home/generalubuntu/anaconda3/bin/velocyto", line 11, in <module>
load_entry_point('velocyto', 'console_scripts', 'velocyto')()
File "/home/generalubuntu/anaconda3/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/generalubuntu/anaconda3/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/generalubuntu/anaconda3/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/generalubuntu/anaconda3/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/generalubuntu/anaconda3/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/generalubuntu/velocyto.py/velocyto/commands/run_smartseq2.py", line 74, in run_smartseq2
samtools_memory=1, dump=dump, loom_numeric_dtype=dtype, verbose=verbose, additional_ca=additional_ca)
File "/home/generalubuntu/velocyto.py/velocyto/commands/_run.py", line 229, in _run
results = exincounter.count(bamfile_cellsorted, multimap=multimap) # NOTE: we would avoid some millions of if statements evaluations if we write two function count and count_with output
File "/home/generalubuntu/velocyto.py/velocyto/counter.py", line 756, in count
for r in self.iter_alignments(bamfile, unique=not multimap):
File "/home/generalubuntu/velocyto.py/velocyto/counter.py", line 258, in iter_alignments
if unique and read.get_tag("NH") != 1:
File "pysam/libcalignedsegment.pyx", line 2392, in pysam.libcalignedsegment.AlignedSegment.get_tag
File "pysam/libcalignedsegment.pyx", line 2434, in pysam.libcalignedsegment.AlignedSegment.get_tag
KeyError: "tag 'NH' not present"
If I understood correctly, the NH tag is something that is found in the bam files and is added by the alignment software.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
Why some lines of BAM file do not contain NH tag - Biostars
NH is an optional tag, not all aligners will include it (and those that do will often omit it for reads with only...
Read more >Temporary Plates | NH Division of Motor Vehicles
Pursuant to RSA 261:57, a 20-day temporary plate is available to New Hampshire residents for all vehicles purchased through a private sale, or...
Read more >dexseq_count.py 'SAM optional field tag NH not found'
So initially, the first if clause looks for the NH flag and then there is the control whether or not the read is...
Read more >DEXSeq error: 'SAM optional field tag NH not found'
Hi all (and Simon & Alejandro, hopefully), In my Bam files, optional NH tag was given to only mapped reads (NH:i:n; n>=1). There's...
Read more >NH License Requirements
There is no charge for reprints, however there is a limit on the number of ... is for those who do not wish...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cap76 I don’t remember that well but I think that the alignment did not work that well.
Had to re-run the alignment with STAR and it resolved it.
Good luck!
@cap76 Can you please tell me how did you align your files in case of SOLiD sequencing? Thanks