[Biojava-dev] Question about toPDB method.

Andreas Prlic andreas at sdsc.edu
Fri Feb 10 19:53:46 UTC 2012


Hi Maha,

the current data model does not support all of the header information,
only some aspects of it. It supports all of the coordinate section
though. What kind of modifications do you want to introduce?

Andreas

On Fri, Feb 10, 2012 at 11:40 AM, M Venkataraman <maha at mit.edu> wrote:
> Hi:
> I am new to bio-java. I need to load a PDB file make some modifications and then write it out.
>
> As a first step, I am trying to load a PDBfile using PDBReader and write it back out.
>
> I have the following code.
>
> PDBFileReader reader = new PDBFileReader();
> Structure struc = reader.getStructure(pdbFile.pdb);
> System.out.println(struc.toPDB());
>
> I see that the output file is different from the input file. Do I need to do something different for conserving the other contents of the PDB file?
>
> Thanks
>
> Maha
> _______________________________________________
> 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