<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>Hi there,</div>
<div> I’m working on some code multi-frame translation code and I think I’m missing a fundamental property here.</div>
<div><br>
</div>
<div> 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?</div>
<div><br>
</div>
<div> 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?</div>
<div> 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.</div>
<div><br>
</div>
<div> I’m might just be dense here, but any help would be appreciated! Thanks!</div>
<div>John</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
</div>
</body>
</html>