--- richard cai <[EMAIL PROTECTED]> wrote:
> Thanks, Howard. This is exactly what I need.
>
> Richard Cai
>
Richard,
There are four files in the attached zip file:
BlastSAXParser.java - contains changes to the parser to explicitly
create a "QueryName" attribute.
BlastHandler.java - uses the parser to read the QueryName attribute
BlastReport.java - prints the results.
Alignment.java - support object to pass data between the handler and
the report.
Let me know if you need anything else to get this working.
--- Keith James <[EMAIL PROTECTED]> wrote:
> This stems from the fact that the DTD has undergone recent
> modifications since Simon's group first commited their code. They
> refined the DTD, while incorporating a couple of suggested changes,
> one of which was adding QueryId.
>
> This is why the DTD reads, for example:
>
> <!ELEMENT biojava:Header (biojava:RawOutput, QueryId?, DatabaseId? )>
>
> so that the new elements (here QueryId and DatabaseId) are not (yet)
> mandatory. This avoids breaking existing code, but leaves extraction
> of this information to the user (it's embedded in the
> biojava:RawOutput element). See Javadoc in
> org.biojava.bio.program.ssbind.BlastDBQueryHandler.
Keith,
I think I tried to get the QueryId from the RawOutput, but the parser
was not starting to include data until later in the Blast Report file.
I don't think my changes will fit into the current DTD as you described
it. I could modify what I did to create these attributes in the
rawOutput element if you would like me to. Or would it be better to
consider modifying the DTD (and risk breaking existing code).
Either way, please take a look at what I did and provide some feedback
about how you would like me to proceed.
Howard
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
QueryID.zip