[Biojava-l] BioJava 1.1x freeze plans
Cox, Greg
gcox@netgenics.com
Wed, 31 Jan 2001 09:53:20 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C08B95.8D35B8B0
Content-Type: text/plain;
charset="iso-8859-1"
Thanks for the pointers Thomas, I was able to finish up the parser this
morning. I don't have read-write access yet, so I've attached the files.
GenbankFormat and GenbankProcessor constitute the parser, and the other two
are the demo/test files.
I didn't tackle the source issue in FeatureTableParser, so the gff
file GenbankToGffFasta generates has embl as the source for all the
features. My preference would be to set the source field in the constructor
and have a setFeatureSource(String) method so that a listener could be
reused with different file formats. I'm not sure there's a good use case
for that though so I'd like an opinion from someone who knows the field
(unlike me).
Greg
-----Original Message-----
From: Thomas Down [mailto:td2@sanger.ac.uk]
Sent: Tuesday, January 30, 2001 3:48 PM
To: Cox, Greg
Cc: biojava-l@biojava.org
Subject: Re: [Biojava-l] BioJava 1.1x freeze plans
On Tue, Jan 30, 2001 at 12:33:45PM -0500, Cox, Greg wrote:
> Thomas,
> I'm in the midst of revising GenbankFormat to handle the new IO
> style, and I'd like to see that in the 1.1 release. Right now I'm having
> trouble with features, and hope someone can help. FeatureTableParser's
> documentation says it is shared between EMBL and GENBANK format, but EMBL
is
> hard coded as the type source. Is there any existing GENBANK feature
> information? I'm leary about changing FeatureTableParser myself since I
> don't know what will break.
Great -- I think a lot of people will be happy to see
that working again... There shouldn't be any problem
taking this change before 1.1, so long as there's a working
demo program to check that it's all working as expected.
Yes, the FeatureTableParser was shared between Embl and
Genbank in BioJava 1.0. Unless you know of some subtle
differences between Embl and Genbank feature tables (I've
always thought they were the same, but that said I've very
rarely worked with Genbank files myself), it ought to be
possible to do a new GenbankParser which also uses
FeatureTableParser.
I presume you've seen the lifecycle:
- create a FeatureTableParser, pointing it at the appropriate
SeqIOListener.
- When you see the start of a feature, call startFeature
passing in the feature type.
- Pass each line of feature table, with the start trimmed
off, to featureData
- Flush the feature with endFeature().
- You should then get a feature notified to the SeqIOListener.
The code isn't as elegant as it could be, mainly because I made
the minimum set of changes necessary to make it all work int
the `new IO' world.
As to the `source' issue, that being hard-coded is a mistake.
Feel free to offer a way to change this, either by using a
setFeatureSource(String) method, or adding an extra parameter
to the constructor. Right now, FeatureTableParsers are only
constructed by EmblProcessor -- so long as you keep that in
sync with any changes you make.
If you do change anything else, the gff.EmblToGFFFasta demo
is a good test to make sure everything is still working. You
might want to hack up an equivalent GenbankToGFFFasta to
test your work.
Thanks,
Thomas.
------_=_NextPart_000_01C08B95.8D35B8B0
Content-Type: application/octet-stream;
name="GenbankParser.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="GenbankParser.zip"
UEsDBBQAAAAIAFZMPyoXekjazgQAAJ4LAAAWAAAAR2VuYmFua1RvR2ZmRmFzdGEuamF2YZVWbW/b
NhD+7AD5D7d8iR148rp9y0uxpKuDDFlqNC6GoegHSjpJbCRRJSk7xtD/vjuSkqUmaTEjgWTe23N3
zx29ODk8gBN45nMl1Z9iIyDFDZaqqbC2kKgUWd/ZrAtp3AlUYgcxQqYRyx2k0lgt49ZiCqJOoVKp
zCR9aesUNdjCuQCLujKgMj6A67sPcIvGkPwaa9SihFUblzKBW5lgnWAEPp4pVFumzgFFHIbaSls4
XwyJ1G8y2KkWUgW1slCIDYIgWbObO2uDeNqn4j6Ftc3pYrHdbqO8biOl8wWrl5jZRemwRYWtyt7o
DQm1zAsLmeK0umrQs8Ayhc9K1pbqEe8cLFmnciPTVjgPIFpbKG1cXmgwJMZJlZQU5SNr+N0rUQ4J
ua64BSbq4y9JUinNnglAJaxUNdAfB+ua12j1GRPr+iCtASEr4/NnyMphdAaxVJ/J4OeSmilLWecO
xhw20kjrNApVITQi990T9uXqBV+ugp0SvTQieSBzyLPs7PDg8EBWjdIWnGprZRmdnI0PpXJH/SH5
633HQfiCyOyqWJXf1cAvPxL/IARrVM13g1D5cy2qiFIOqSxOOvLUG9TcESZ8LOoHyGTJvaSuCMiE
scKfeHIR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