Skip to main content

A simple framework for representing biomolecular structure.

Project description

AMPAL

A simple, intuitive and Pythonic framework for representing biomolecular structure.

CircleCI Python Version MIT licensed

Installation

You can install AMPAL from pip:

pip install ampal

Or from source by downloading/cloning this repository, navigating to the folder and typing:

pip install .

AMPAL uses Cython, so if you're installing from source make sure you have it installed.

Super Quick Start

Load a PDB file into AMPAL:

my_structure = ampal.load_pdb('3qy1.pdb')
print(my_structure)
# OUT: <Assembly (3qy1) containing 2 Polypeptides, 449 Ligands>

Select regions of the structure in an intuitive manner:

my_atom = my_structure['A']['56']['CA']
print(my_structure['A']['56']['CA'])
# OUT: <Carbon Atom (CA). Coordinates: (6.102, -4.287, -29.607)>

Then climb all the way back up the hierachy:

print(my_atom.parent)
# OUT: <Residue containing 9 Atoms. Residue code: GLU>
print(my_atom.parent.parent)
# OUT: <Polypeptide containing 215 Residues. Sequence: DIDTLISNNALW...>
print(my_atom.parent.parent.parent)
# OUT: <Assembly (3qy1) containing 2 Polypeptides, 449 Ligands>

This is just a quick introduction, AMPAL contain tonnes of tools for making complex selections and performing analysis. Take a look at the docs to find out more.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AMPAL-1.0.0.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file AMPAL-1.0.0.tar.gz.

File metadata

  • Download URL: AMPAL-1.0.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for AMPAL-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d8e8df30a9534d75b9771dfd45bd48706cc2409f8e7573da7a0951be85bf29d
MD5 bcf76e92e4a93a1174cc5360ac7bb77e
BLAKE2b-256 3fe503da3a77bba138c165451d3f8efb7fd32818aea4a6212b420c558e9088d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page