FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [Seqan-dev] ModifiedString question

<-- thread -->
<-- date -->
  • From: "Weese, David" <weese@campus.fu-berlin.de>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Tue, 10 Apr 2012 09:04:36 +0000
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: 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




<-- thread -->
<-- date -->
  • References:
    • [Seqan-dev] ModifiedString question
      • From: Bernd Jagla <bernd.jagla@pasteur.fr>
  • seqan-dev - April 2012 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal