Re: [Seqan-dev] ModifiedString question


Hi,

yes, ModifiedStrings are a different type of sequences that are views to Strings but aren't Strings itself and don't consume additional memory. You need to use a temporary "Dna5String tmp = revSeq1;" which you can pass. Alternatively you could change the interface of your function to accept any sequence, not only Dna5Strings.

Cheers,
David

--
David Weese				weese@inf.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 

Am 02.04.2012 um 14:39 schrieb Bernd Jagla:

> Hi,
> 
> I have the following function:
> 
> bool qualityThreshold(Dna5String& seq1, CharString& qual1, Dna5String& seq2, CharString& qual2,
>        int qualityThreshold, int minLen, bool& pairedEnd,
>        int& countPrimeTrimmed, int& lengthConstrain ) {
> 
> now, I want to use the reverse sequence as an input using :
> 
> Dna5StringReverse revSeq1(seq1);
> 
> I guess I misunderstand something here, but it seems that Dna5StringReverse is not returning a DNA5String but its own type... How can I convert the Reverse in a regular DNA5String?
> 
> Thanks for the clarification,
> 
> Bernd
> 
> 
> 
> _______________________________________________
> seqan-dev mailing list
> seqan-dev@lists.fu-berlin.de
> https://lists.fu-berlin.de/listinfo/seqan-dev