Re: [Seqan-dev] String of SeqFileOut


Hi Alexander,

please use appendValue instead of append.
The function append concatenates one string to another.
In order to just add a new value at the end you need to call appendValue.

IHTH!

cheers,

René

Am May 29, 2015 um 23:35 schrieb Alexander Vowinkel <vowinkel.alexander@gmail.com>:

Hi,

I want to store some SeqFileOut in a seqan::String.
I tried both:
Using a seqan::String<seqan::SeqFileOut>
and unsing a seqan::String<seqan::SeqFileOut *>

Both fails. I don't understand why.
Can someone help me with this?
Now I'm using std::vector<seqan::SeqFileOut *> which
does the job, but I'd like to use this as a Property Map
for a Graph which needs to be a String if I got that right.

Thanks!
Alexander

int main()
{
    typedef seqan::SeqFileOut TFilePointer;
    typedef seqan::String<TFilePointer> TFilePointerSet;
    TFilePointerSet files;
    seqan::SeqFileIn inputFile1;
    append(files, inputFile1);
    seqan::SeqFileIn inputFile2;
    append(files, inputFile2);
    return 0;
}
_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev

---

René Rahn
Ph.D. Student
--------------------------------
Tel:  (+49) 30 838 75277
--------------------------------
Institute of Computer Science
Algorithmic Bioinformatics (ABI)
--------------------------------
Freie Universität Berlin
Takustraße 9
14195 Berlin
--------------------------------