06 May 2005 22:37:42 UTC
- Distribution: Chemistry-3DBuilder
- Module version: 0.10
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (367 / 0 / 0)
- KwaliteeBus factor: 1
- 87.50% Coverage
- License: unknown
- Activity24 month
- Download (4.54KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionITUB Ivan Tubert-Brohman
Chemistry::3DBuilder - Generate 3D coordinates from a connection table
# example: convert SMILES to MDL molfile use Chemistry::3DBuilder qw(build_3d); use Chemistry::File::SMILES; use Chemistry::File::MDLMol; my $s = '[O-]C(=O)C(N)C(C)CC'; my $mol = Chemistry::Mol->parse($s, format => 'smiles'); build_3d($mol); print $mol->print(format => 'mdl');
This module generates a three-dimensional molecular structure from a connection table, such as that obtained by a 2D representation of the molecule or from a SMILES string.
NOTE: this module is still at a very early stage of development so it has important limitations. 1) It doesn't handle rings or stereochemistry yet! 2) The bond lengths and atoms are very approximate as they don't really account for different elements. 3) Only the sp3, sp2, and sp hybridizations are supported.
These subroutines may be exported; to export all, use the ':all' tag.
The PerlMol website http://www.perlmol.org/
Ivan Tubert-Brohman <email@example.com>
Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Chemistry::3DBuilder, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Chemistry::3DBuilder
For more information on module installation, please visit the detailed CPAN module installation guide.