Re: [Seqan-dev] Dna5Q - how do you access qual or seq ?
- From: Leon Kuchenbecker <lkuchenb@inf.fu-berlin.de>
- To: seqan-dev@lists.fu-berlin.de
- Date: Mon, 22 Apr 2013 18:25:22 +0200
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: Re: [Seqan-dev] Dna5Q - how do you access qual or seq ?
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 -- You can use my PGP pubkey (0x010E29F5) to encrypt mail addressed to me () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- References:
- [Seqan-dev] Dna5Q - how do you access qual or seq ?
- From: "Henderson, Stephen" <s.henderson@ucl.ac.uk>
- [Seqan-dev] Dna5Q - how do you access qual or seq ?
-
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...