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
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
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
; 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
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