Re: [Seqan-dev] Sparse property map
- From: Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>
- To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Date: Fri, 15 Jul 2011 10:31:50 +0200
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: Re: [Seqan-dev] Sparse property map
John,the long-term solution for us is to fix the map module and make the graph module work better with it.
A medium-term solution would be to fix graph_property.h.The quick fix for you is to use std::map directly. Comment out the resizeVertexMap(). You can use seqan::_getId(vertexOrEdgeDescriptor) to get a number from a vertex or edge descriptor.
Bests, Manuel Am 15.07.2011 um 10:18 schrieb John Reid:
Hi, If I want to store a property for every vertex in a suffix array I can do something like this: String< double > property; const double v = 1.3; resizeVertexMap( index, property ); assignProperty( property, value( top_down_it( index ) ), v ); const double prop_value = getProperty( property, value( top_down_it( index ) ) ); Here the properties are stored in a seqan::String. What if I only want to store properties for a very few of the vertices in a very large index? Is there some sparse storage I can use instead of String? Thanks, John. _______________________________________________ seqan-dev mailing list seqan-dev@lists.fu-berlin.de https://lists.fu-berlin.de/listinfo/seqan-dev
-- Manuel Holtgrewe manuel.holtgrewe@fu-berlin.de Freie Universität Berlin http://www.inf.fu-berlin.de/ Institut für Informatik Phone: +49 30 838 75246 Takustraße 9 Algorithmic Bioinformatics 14195 Berlin Room 021
- References:
- [Seqan-dev] Sparse property map
- From: John Reid <j.reid@mail.cryst.bbk.ac.uk>
- [Seqan-dev] Sparse property map
-
seqan-dev - July 2011 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...