- Additional information
- SEE ALSO
- COPYRIGHT AND LICENSE
HackaMol::Roles::ReadPdbRole - Read files with molecular information
my @atoms = HackaMol->new ->read_pdb_atoms("some.pdb");
The HackaMol::Roles::ReadPdbRole provides read_pdb_atoms reading protein database files.
One argument: the filename Returns a list of HackaMol::Atom objects.
According to the PDB specification, the element symbol should be present in columns 77-78. The element is often ommitted by programs, such as charmm, that can write pdbs because it makes the file larger, and the information is accessible somewhere else (protein structure file). Unfortunately, other programs require the information. HackaMol::MolReadRole, uses HackaMol::PeriodicTable to map common names to the element (e.g. POT => 'K'). read_pdb_atoms will carp if the name is not in the hash, and then set the element to the first letter of the name. If you see one of these messages for a common atom, please submit an issue or pull request so the atom can be added!
Demian Riccardi <email@example.com>
This software is copyright (c) 2017 by Demian Riccardi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.