Re: Constructing (wrapping) DNASequence from a SequenceView<NucleotideCompound>

Andreas Prlic <[email protected]> Mon, 10 Aug 2015 21:58:46 -0700
Newsgroups gmane.comp.java.bio.general
Message-ID <CALthepz6V8MVjk3KV7fHTwtikj1MmP3pMy2R+u=Dc6Xix7yv-g@mail.gmail.com>
Hi John,

It would help if you would explain a bit more detailed, what you are tyring
to do. Have you seen the new BioJava tutorial on github? For example there
is a page that explains how to translate various sequence types

https://github.com/biojava/biojava-tutorial/blob/master/core/translating.md

Does that help? If not, perhaps provide some more info, what you want to do?

Thanks,

Andreas





On Fri, Aug 7, 2015 at 6:29 AM, John Stalker <[email protected]>
wrote:

> Hi there,
>   I’m working on some code multi-frame translation code and I think I’m
> missing a fundamental property here.
>
>   I want to be using DNASequence, RNASequence, and ProteinSequence
> classes, but operations I’m using end up returning Sequence<C> or
> SequenceView<C>.  What is the conversion / wrapper path from the latter to
> the former?
>
>   So for example, if I get a subSequence from DNASequence, I have a
> SequenceView<NucleotideCompound>.  How do I wrap that in a new
> DNASequence?  Similarly, when I have instances of
> Sequence<AminoAcidCompound> (the result of
> TranscriptionEngine.multipleFrameTranslation), how do I wrap that with
> ProteinSequence?
>   Looking a the constructors for the main *Sequence classes, there’s
> nothing (save String) that stands out.  The implementations of
> SequenceReader (for DNASequence) and ProxySequenceReader (for RNASequence
> and ProteinSequence…why are these not all the same interface is another
> question) don’t stand out as being appropriate.
>
>   I’m might just be dense here, but any help would be appreciated!  Thanks!
> John
>
> _______________________________________________
> Biojava-l mailing list  -  [email protected]
> http://mailman.open-bio.org/mailman/listinfo/biojava-l
>

_______________________________________________
Biojava-l mailing list  -  [email protected]
http://mailman.open-bio.org/mailman/listinfo/biojava-l