[Biojava-l] Embl parser problem[Scanned]

mark.schreiber at novartis.com mark.schreiber at novartis.com
Wed Jan 4 20:22:21 EST 2006


Hi -

When you do the CVS update or checkout make sure you use the -Pd options.

The -d option prunes empty directories (old stuff not included in 
biojava-live anymore). It seems that you have got both an old copy and a 
new copy of the projected feature holder.

The -P option pulls new directories (new packages since your last update).

Or maybe i've got them mixed up, anyhow use both. Try doing a CVS upate 
-Pd and then running ant.

- Mark





"Jolyon Holdstock" <jolyon.holdstock at ogt.co.uk>
Sent by: biojava-l-bounces at portal.open-bio.org
01/04/2006 06:54 PM

 
        To:     <biojava-l at biojava.org>, <biojava-l-bounces at portal.open-bio.org>
        cc:     (bcc: Mark Schreiber/GP/Novartis)
        Subject:        RE: [Biojava-l] Embl parser problem[Scanned]


Thanks for the help.
I have downloaded the dev version and tried to build it.
I have no experience with Ant (I'm running v1.6.1) and the build fails.
The output from this is:

Buildfile: build.xml

init:
     [echo] Building biojava-live
     [echo] Java Home:                       c:\j2sdk1.4.2_04\jre
     [echo] JUnit present:                   ${junit.present}
     [echo] JUnit supported by Ant:          true
     [echo] HSQLDB driver present:           ${sqlDriver.hsqldb}

prepare:

prepare-biojava:

compile-biojava:
    [javac] Compiling 1279 source files to
C:\Downloads\Java\BioJava\biojava-live\ant-build\classes\biojava
    [javac]
C:\Downloads\Java\BioJava\biojava-live\src\org\biojava\bio\seq\impl\RevC
ompSequence.java:47: reference to ProjectedFeatureHolder is ambiguous,
both class org.biojava.bio.seq.projection.ProjectedFeatureHolder in
org.biojava.bio.seq.projection and class
org.biojava.bio.seq.ProjectedFeatureHolder in org.biojava.bio.seq match
    [javac]     private ProjectedFeatureHolder pfh;
    [javac]             ^
    [javac] C:\Downloads\Java\BioJava\biojava-
live\src\org\biojava\bio\seq\impl\RevCompSequence.java:65: reference to
ProjectedFeatureHolder is ambiguous, both class
org.biojava.bio.seq.projection.ProjectedFeatureHolder in
org.biojava.bio.seq.projection and class
org.biojava.bio.seq.ProjectedFeatureHolder in org.biojava.bio.seq match
    [javac]         pfh = new ProjectedFeatureHolder(new
TranslateFlipContext(this,seq,seq.length()+1,true));
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 2 errors



-----Original Message-----
From: mark.schreiber at novartis.com [mailto:mark.schreiber at novartis.com] 
Sent: 04 January 2006 01:10
To: Jolyon Holdstock
Cc: biojava-l at biojava.org; biojava-l-bounces at portal.open-bio.org
Subject: Re: [Biojava-l] Embl parser problem[Scanned]

Hi -

A BioException would be expected when parsing an embl file via the
genbank 
option. I is surprising you don't get one when parsing a genbank file
via 
the embl option although it clearly has not worked properly.

You should only ever parse a file with the appropriate read method.

Please note that if you have access to CVS you could download the 
development version of the new parsers (biojavax) which do a much better

job.

- Mark





"Jolyon Holdstock" <jolyon.holdstock at ogt.co.uk>
Sent by: biojava-l-bounces at portal.open-bio.org
01/03/2006 10:21 PM

 
        To:     <biojava-l at biojava.org>
        cc:     (bcc: Mark Schreiber/GP/Novartis)
        Subject:        [Biojava-l] Embl parser problem


Hi,

 

I have an application using BioJava1.4pre1.4 that loads an embl or
genbank file.

 

If I load an embl file via the genbank option a BioException error is
thrown.

 

But if I load a genbank file via the embl option no BioException is
thrown and the sequence is created although it is not correct e.g.
sequence.length() returns 0

 

An example of code using the sequence file from the BioJava demos

 

String fileName =
"C:/Downloads/Java/BioJava/BioJava-1.4pre1/biojava-1.4pre1/demos/seq/AL1
21903.genbank"; 

try {

  seq = SeqIOTools.readEmbl(new BufferedReader(new
FileReader(fileName))).nextSequence();

  System.out.println("URN: " + seq.getURN());

  System.out.println("Length: " + seq.length());

}

catch (BioException BIOE) {

  System.out.println("BioException " + BIOE);

}

 

The output is:

URN: sequence/embl:SION

Length: 0

 

If I use the matching embl sequence from the demos the output is:

URN: sequence/embl:AL121903

Length: 80600

 

I've used BioJava1.4 with the same outcome. Should I be parsing the file
an alternative way?

 

Thanks,

 

Jolyon

 


_______________________________________________
Biojava-l mailing list  -  Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l














This email has been scanned by Oxford Gene Technology Group of Companies
Security Systems.


_______________________________________________
Biojava-l mailing list  -  Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l





More information about the Biojava-l mailing list