[Seqan-dev] how to read fasta files to uses in Hoorspol program
- From: Julio Cesar Carbajal <carbaj1@hotmail.com>
- To: <seqan-dev@lists.fu-berlin.de>
- Date: Wed, 9 Feb 2011 13:01:33 +0000
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: [Seqan-dev] how to read fasta files to uses in Hoorspol program
Hey, Could you help me. How to read fasta files to uses in Hoorspol program or modify de find_exact program. Julio > From: Tobias.Rausch@fu-berlin.de > To: seqan-dev@lists.fu-berlin.de > Date: Tue, 8 Feb 2011 10:02:35 +0100 > Subject: Re: [Seqan-dev] Using EdgeProperties and VertexProperties > > Hey Mat, > > In the write function in graph_types/graph_drawing.h, for each vertex and edge property the following call is used: > > _streamWrite(file, getProperty(nodeMap, *itVertex)); > > _streamWrite(file, getProperty(edgeMap, *itEdge)); > > > Best, Tobias > > > > ________________________________________ > From: Mat [matthias.dodt@mdc-berlin.de] > Sent: Monday, February 07, 2011 4:34 PM > To: SeqAn Development > Subject: [Seqan-dev] Using EdgeProperties and VertexProperties > > Hey guys! > > I would like to create a .dot file of my graph using the > > write(strmWrite, *graph, *vertexPropertyMap,*edgePropertyMap,DotDrawing()); > > method. > > The two maps are defined as follows: > > seqan::String<VertexProperty> *vertexPropertyMap = new seqan::String<VertexProperty>(); > seqan::String<EdgeProperty> *edgePropertyMap = new seqan::String<EdgeProperty>(); > > VertexProperty and EdgeProperty are two custom classes... > > Now if i use the DotDrawing() method i get the message "cannot convert form VertexProperty to char"... > > So i guess i would have to implement my own "_streamPut" method for these classes in seqans "cstream.h", so something like: > > inline void _streamPut(::std::FILE * target, > const EdgeProperty e) > { > SEQAN_CHECKPOINT > //putc(e.toChar(), target); > } > > or is there an easier way to do that? > > Thanks! > > best, > > mat > > _______________________________________________ > seqan-dev mailing list > seqan-dev@lists.fu-berlin.de > https://lists.fu-berlin.de/listinfo/seqan-dev |
- Follow-Ups:
- Re: [Seqan-dev] how to read fasta files to uses in Hoorspol program
- From: "Emde, Anne-Katrin" <Anne-Katrin.Emde@fu-berlin.de>
- Re: [Seqan-dev] how to read fasta files to uses in Hoorspol program
- References:
- [Seqan-dev] Using EdgeProperties and VertexProperties
- From: Mat <matthias.dodt@mdc-berlin.de>
- Re: [Seqan-dev] Using EdgeProperties and VertexProperties
- From: "Rausch, Tobias" <Tobias.Rausch@fu-berlin.de>
- [Seqan-dev] Using EdgeProperties and VertexProperties
-
seqan-dev - February 2011 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...