Re: [Seqan-dev] appendTagValue() for BamTagsDict


Am Montag, 8. Februar 2016, 14:30:11 schrieb Schulze, Jakob:
> Hi everyone,
> I am currently trying to write out Bam files using seqan's BamFileOut. I
> stumbled across some strange behavior of appendTagValue() When using the
> function three times in a row, length(tags) returns 2, which seems one to
> less to me. I enclosed a code example using the example from
> http://docs.seqan.de/seqan/2.0.0/demos/bam_io/bam_tags_dict.cpp
> 
> I marked my changes. Did I miss something?
> 
> Furthermore, I wondered whether there is a function, which converts a
> BamTagsDict into a String, which I can directly use as an Entry in a Sam
> file.
> 
> 
> Best Regards,
> Jakob
> 
> 
> PS: Output of the code snippet on my machine is:
> 3
> AA -> "value1"
> AB -> "value2"
> AC -> 30
> 2

This seems like a bug. Can you check whether this behaviour is still the same 
on SeqAn-2.1 and if yes open a ticket on github?

Thank you very much!

Best regards,
-- 
Hannes Hauswedell

PhD student
Max Planck Institute for Molecular Genetics / Freie Universität Berlin

address     Institut für Informatik
            Takustraße 9
            Room 019
            14195 Berlin
telephone   +49 (0)30 838-75241
fax         +49 (0)30 838-75218
e-mail      hannes.hauswedell@[molgen.mpg.de|fu-berlin.de]