项目作者: Fluorescence-Tools

项目描述 :
高级语言: Python
项目地址: git://github.com/Fluorescence-Tools/avtraj.git
创建时间: 2018-05-23T19:19:19Z
项目社区:https://github.com/Fluorescence-Tools/avtraj

开源协议:GNU Lesser General Public License v2.1

下载


AvTraj

Build Status
Anaconda-Server Badge
Anaconda-Server Badge

AvTraj is tool to calculate FRET observables from MD-trajectories. Read
, write and analyze accessible volumes (AVs) using MD trajectories as an
input with only a few lines of Python code. By the use of LabelLib AvTraj
provides programmatic access to latestdevelopments in implicit dye models
for FRET experiments DOI for Citing COSB.

AvTraj is a python library that allows users to perform simulations of
accessible volumes for molecular dynamics (MD) trajectories. AvTraj serves
as a high-level interface for the development of new methodologies for
structure-based fluorescence spectroscopy.

Features include:

  1. A wide support of diverse MD formats by the use of MDTraj. Extremely
  2. fast calculation of AVs by the use of LabelLib (e.g. xxxx the speed
  3. of yyyy). Extensive analysis functions including those that compute
  4. inter-dye distances, FRET-efficiencies, fluorescence decays, distance
  5. distributions, and an Pythonic API.

AVTraj includes a command-line application, avana, for screening and
analyzing structural models.

Relation of other software and libraries

LabelLib serves as core low-level library for the software Olga and the
higher-level Python library AvTraj. The deprecated software FPS is
independent of LabelLib.

LabelLib and other software/libraries

Olga is a software dedicated
towards experimentalists. Olga provides a graphical user interface for the
calculation of accessible volumes (AVs), screen a set of structural models
against experimental observables, rigid-body docking,
and the optimal design of new FRET experiments.

AvTraj
AvTraj is a Python library for the calculation of accessible volumes (AVs
), screening. AvTraj facilitates the development of new analytical approaches
for FRET-based structural models. Avtraj facilitates processing of
MD-simulations and the development of Python scripts handling FRET-based
structural models.

FPS is a software with a graphical
user interface for the FRET-based structural modeling. FPS can calculate
accessible volumes (AVs), screen a set of structural models against
experimental observables, and can generate new structural
models by rigid-body docking using experimental FRET data.

Installation

Anaconda

The software depends on other libraries provided by conda-forge. Thus, as
a first step, the conda-forge
channel needs to be added.

  1. conda --add channels conda-forge

In a second step, the avtraj package can be installed.

  1. conda --add channels tpeulen
  2. conda install avtraj

Code Example

  1. import mdtraj as md
  2. import avtraj as avt
  3. import json
  4. # First load an MD trajectory by mdtraj
  5. xtc_filename = './test/data/xtc/1am7_corrected.xtc'
  6. topology_filename = './test/data/xtc/1am7_protein.pdb'
  7. traj = md.load(
  8. xtc_filename,
  9. top=topology_filename
  10. )
  11. # Define your accessible volume (AV) parameters
  12. av_parameters_donor = {
  13. 'simulation_type': 'AV1',
  14. 'linker_length': 20.0,
  15. 'linker_width': 1.0,
  16. 'radius1': 3.5,
  17. 'simulation_grid_resolution': 1.0,
  18. 'residue_seq_number': 57,
  19. 'atom_name': 'CA'
  20. }
  21. # Pass a trajectory to fps.AVTrajectory. This creates an object, which can be
  22. # accessed as a list. The objects within the "list" are accessible volumes
  23. av_traj_donor = avt.AVTrajectory(
  24. traj,
  25. av_parameters=av_parameters_donor,
  26. name='57'
  27. )
  28. # These accessible volumes can be saved as xyz-file
  29. av_traj_donor[0].save_av()
  30. av_parameters_acceptor = {
  31. 'simulation_type': 'AV1',
  32. 'linker_length': 20.0,
  33. 'linker_width': 1.0,
  34. 'radius1': 3.5,
  35. 'simulation_grid_resolution': 1.0,
  36. 'residue_seq_number': 136,
  37. 'atom_name': 'CA'
  38. }
  39. # The dye parameters can either be passed explicitly on creation of the object
  40. av_traj_acceptor = avt.AVTrajectory(
  41. traj,
  42. av_parameters=av_parameters_acceptor,
  43. name='136'
  44. )
  45. av_traj_acceptor[0].save_av()
  46. # To calculate a trajectory of distances and distance distributions first a
  47. # labeling file and a "distance file" needs to be specified. The distance
  48. # file contains a set of labeling positions and distances and should be
  49. # compatible to the labeling files used by the software "Olga".
  50. # or by the tool `label_structure` provided by the software ChiSurf.
  51. labeling_file = './test/data/labeling.fps.json'
  52. av_dist = avt.AvDistanceTrajectory(
  53. traj,
  54. json.load(
  55. open(
  56. labeling_file
  57. )
  58. )
  59. )
  60. print(av_dist[:10])

Citations

  • MDTraj - DOI for Citing MDTraj
  • FPS - DOI for Citing FPS

License

GNU LGPL version 2.1, or at your option a later version of the license.
Various sub-portions of this library may be independently distributed under
different licenses. See those files for their specific terms.