Re: [Biojava-l] sturcture.io

2005-11-30 Thread Tamas Horvath
Oh, I forgot I should instanciate a PDBFileParser, so the following codeworks fine: public static Object parse_pdb(String pdb_datafile, String pdb_id) { Structure structure = null; pdb_inputstream = Utils.get_pdbinputstream(pdb_datafile,pdb_id); PDBFileParser pdbfileparser = n

Re: [Biojava-l] sturcture.io

2005-11-30 Thread Tamas Horvath
In my case, I had a bunch of pdb files in a jar archive, so here's the codeI try to use: public static InputStream get_pdbinputstream(String fileName,Stringpdb_id) { System.out.println(fileName); InputStream returnstream = null; JarFile jarFile = null;tr

Re: [Biojava-l] sturcture.io

2005-11-30 Thread Andreas Prlic
Hi Tamas, In case you are working with a PDB file that is located somewhere on your hard disk, you could use the code from below to parse it in. Cheers, Andreas String filename = "path/to/pdbfile.ent" ; PDBFileReader pdbreader = new PDBFileReader(); try{ Structure struc = pdbread

RE: [Biojava-l] sturcture.io

2005-11-29 Thread Richard HOLLAND
; From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Tamas Horvath > Sent: Wednesday, November 30, 2005 12:25 AM > To: biojava-l@biojava.org > Subject: [Biojava-l] sturcture.io > > > I've got an ArrayList object containing a PDB file's > informatio

[Biojava-l] sturcture.io

2005-11-29 Thread Tamas Horvath
I've got an ArrayList object containing a PDB file's information.How may I feed it to the structure parser? As far as I could see, it onlyaccepts BufferdReader or imputStream... ___ Biojava-l mailing list - Biojava-l@biojava.org http://biojava.org/mai