[Biojava-l] Newbie questions
Mark Schreiber
mark_s@sanger.otago.ac.nz
Fri, 28 Jul 2000 09:45:28 +1200 (NZST)
On Thu, 27 Jul 2000, Thomas Down wrote:
>
> The easiest way to get your string-like sequences into BioJava
> is to use something like:
>
> String seqString = "gatcgga";
> Alphabet dnaAlpha = DNATools.getAlphabet();
> SymbolParser parser = dnaAlpha.getParser("token");
> SymbolList seq = parser.parse(seqString);
>
> Does that make some kind of sense?
>
I was just thinking that this is a bit ugly and requires four lines of
code to do something that sould imho be achievable in less. Would it be a
good idea (prehaps for a later release) to have a class called something
like CommonTasks with static methods to implement the above task while
hiding the background shananigins from general view?
Just a thought,
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Schreiber Ph: 64 3 4797875
Rm 218 email mark_s@sanger.otago.ac.nz
Department of Biochemistry email m.schreiber@clear.net.nz
University of Otago
PO Box 56
Dunedin
New Zealand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~