On Fri, 11 Sep 2020, Benjamin Audit wrote:
Using filtering option "-d NM:0" returned an empty set of alignments.
A few tests suggest that this is always the case for integer tags, while
filtering works as expected for tags of type string (Z).
(I use samtools Version: 1.10 (using htslib 1.10.2) installed by bioconda).
Yes, I'm afraid the samtools view '-d' and '-D' options currently only
work on string tags (type Z). No-one has implemented the type conversions
needed for integers yet, and to be really useful for them it would
probably want to be extended to do greater-than and less-than comparisons
as well as equality.
Rob Davies r...@sanger.ac.uk
The Sanger Institute http://www.sanger.ac.uk/
Hinxton, Cambs., Tel. +44 (1223) 834244
CB10 1SA, U.K. Fax. +44 (1223) 494919
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
_______________________________________________
Samtools-help mailing list
Samtools-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/samtools-help