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

Re: [Seqan-dev] Dna5Q - how do you access qual or seq ? (Leon Kuchenbecker)

<-- thread -->
<-- date -->
  • From: "Henderson, Stephen" <s.henderson@ucl.ac.uk>
  • To: "seqan-dev@lists.fu-berlin.de" <seqan-dev@lists.fu-berlin.de>
  • Date: Tue, 23 Apr 2013 11:28:51 +0000
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: Re: [Seqan-dev] Dna5Q - how do you access qual or seq ? (Leon Kuchenbecker)

Thanks

That is exactly the sort of syntactic headslap I imagined (doh!). Cheers. 

While I'm here just out of curiosity do you know 

a) The size in RAM a fastq file takes up when single pass read vs double pass (~ per million 75mers)? 

b) Does Dna5Q and the alternative of  a seqs, qual charstring take up the same space in RAM? 

c) Is there any extra overhead in iterating or extracting elements from Dna5Q as opposed to a simple charstring?

d) Is Dna5Q something like a Vector of <Pair> ???


... anyway thanks again.
Stephen




-----------------------
Hi Stephen!

> //where seqs is the StringSet of Dna5Q read in above
> seqan::Dna5Q seq= seqs[0];
>
> Rcpp::Rcout << getQualityValue(seq[0]) << std::endl;    // error
> [...]

seqan::Dna5Q is a type for storing a single character from the ACGTN
alphabet including the associated quality. If you want to store a
sequence of such characters, you need String<Dna5Q>.

Thus, the correct types for your variables would be

> seqan::StringSet<seqan::CharString> ids;
> seqan::StringSet<seqan::String<seqan::Dna5Q> > seqsQ;

Your usage of getQualityValue() was in principle correct, just that you
were trying to subscript a single character.

Cheers
  Leon






<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [Seqan-dev] Dna5Q - how do you access qual or seq ? (Leon Kuchenbecker)
      • From: "Holtgrewe, Manuel" <manuel.holtgrewe@fu-berlin.de>
  • seqan-dev - April 2013 - 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