[Biojava-dev] DownloadChemCompProvider exception

Andreas Prlic andreas at sdsc.edu
Tue Jan 25 01:22:16 UTC 2011


Hi Steve,

thanks for spotting this. Would it help to rename the local files to
something like CON_1.cif.gz ? I just committed a check which is
mapping the ids to different filenames.

Andreas


On Mon, Jan 24, 2011 at 3:41 PM, Steve Darnell <darnells at dnastar.com> wrote:
> Greetings,
>
> I get the following exception when using the DownloadChemCompProvider on
> Windows (XP/Vista/7):
>
> Installing individual chem comp files ...
> java.io.FileNotFoundException: C:\Users\darnells\Desktop\Chemical
> Component Dictionary\chemcomp\CON.cif.gz (The handle is invalid)
>        at java.io.FileOutputStream.open(Native Method)
>        at java.io.FileOutputStream.<init>(Unknown Source)
>        at java.io.FileOutputStream.<init>(Unknown Source)
>        at
> org.biojava.bio.structure.io.mmcif.DownloadChemCompProvider.writeID(Down
> loadChemCompProvider.java:159)
>        at
> org.biojava.bio.structure.io.mmcif.DownloadChemCompProvider.split(Downlo
> adChemCompProvider.java:130)
>        at
> org.biojava.bio.structure.io.mmcif.DownloadChemCompProvider.checkDoFirst
> Install(DownloadChemCompProvider.java:99)
>        at
> steve.sandbox.playground.ChemCompDistribution.main(ChemCompDistribution.
> java:14)
> created 3990 chemical component files.
>
>
> The problem is that CON.cif.gz and PRN.cif.gz use the reserved Windows
> filenames 'CON' and 'PRN'
> (http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words).
> These names are reserved regardless of the file extension.  I have
> spoken with RCSB in the past.  They are unable to change the code for
> these records (and the five affected PDB files: 2I7S, 1TUM, 1U1N, 1U1L,
> and 1CL8).
>
> At minimum, DownloadChemCompProvider should catch the exception and
> proceed with the remaining records.  This seems reasonable given the low
> number of affected PDB files.
>
> Regards,
> Steve
>
> _______________________________________________
> biojava-dev mailing list
> biojava-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-dev
>




More information about the biojava-dev mailing list