On Tue, Aug 02, 2016 at 11:57:52AM +0200, Martin MOKREJ? wrote:
> Could samtools calmd apply the following logic for bwa-processed input?
>  Get positions of all N's in the read.
>  Do not complain about those positions which are based on N's.
>  Do report other positions.

I don't entirely understand what you're wanting.

Calmd computes the MD:Z tag as described in the SAM specification,
which is difference between the sequence and the reference.  It should
not be changed to some other algorithm, no matter what aligners happen
to do.  If aligners produce different MD tags then they are buggy.

Similarly for NM:i.

> OK, I know "samtools calmd" reports a total sum of the differences before and 
> after but quite likely there will be only a "0 -> 0" to be reported. So I 
> will get less warning on the screen, which is always good. ;)

The warnings are there because it is correcting the aligner output.
The proper fix is to fix the aligners to produce the correct MD in the
first place, not to break calmd to be buggy in the same manner.

James

-- 
James Bonfield (j...@sanger.ac.uk) | Hora aderat briligi. Nunc et Slythia Tova
                                  | Plurima gyrabant gymbolitare vabo;
  A Staden Package developer:     | Et Borogovorum mimzebant undique formae,
https://sf.net/projects/staden/   | Momiferique omnes exgrabure Rathi. 


-- 
 The Wellcome Trust 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

Reply via email to