Skip to main content

A brief description of your package

Project description

VMMC

README for VMMC Model Package Overview The VMMC (Virtual Move Monte Carlo) Model package is a Python tool designed for simulating the dynamics of particles with specific interactions in a confined space. It is particularly suited for modeling the movement and interaction of biological macromolecules or any system where particles are subject to specific interaction rules. The package leverages NumPy for efficient numerical computations and Matplotlib for visualization, including 3D animations to observe the system's evolution over time.

Features Customizable Interactions: Define specific interaction strengths between particle types. 3D Visualization: Utilize Matplotlib to create dynamic 3D animations of particle movements within a confined space. Periodic Boundary Conditions: Apply periodic boundary conditions to simulate an infinite system effect within a finite space. Energy-Based Movement: Implement a Metropolis criterion for particle movement based on the change in system energy, allowing for a realistic simulation of physical processes.

Installation

This package requires Python 3.6 or later, along with the NumPy and Matplotlib libraries. You can install these dependencies using pip:

pip install numpy matplotlib

Usage

To use the VMMC Model, first import the necessary libraries:

import numpy as np import matplotlib.pyplot as plt from vmmc_model import VMMC_model

Then, define your system's parameters, including the types of particles, interaction strengths, and colors for visualization:

base_types_strands = [np.array(['A', 'T', 'C', 'G', ...]), ...] interaction_strengths = {('A', 'T'): 1.0, ('G', 'C'): 1.5, ...} base_colors_dict = {'A': 'red', 'T': 'blue', 'C': 'yellow', 'G': 'green'} base_colors = np.array([base_colors_dict[base] for strand in base_types_strands for base in strand])

Instantiate the model with your defined parameters:

vmmc_model = VMMC_model(base_types_strands, interaction_strengths, base_colors)

Finally, run the simulation and visualize the results:

vmmc_model.animate(frames=100, interval=50) vmmc_model.save_animation('your_animation_file.mp4')

Contributing

Contributions to the VMMC Model package are welcome. Please fork the repository, make your changes, and submit a pull request for review.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions or support, please contact [james.broster@st-annes.ox.ac.uk].

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

Virtual-MMC-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Virtual_MMC-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file Virtual-MMC-0.1.0.tar.gz.

File metadata

  • Download URL: Virtual-MMC-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for Virtual-MMC-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86a5054385b2b8d9d4b3e3e07e865b7a3a2bfde8365af17837f66909b58b8182
MD5 cf36bd85e615914aa38b513ec288e437
BLAKE2b-256 fd04ae1704045b9be9d39c240ffe6675e7d0e9c3492f53467c19c3a818dcb0d8

See more details on using hashes here.

File details

Details for the file Virtual_MMC-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Virtual_MMC-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for Virtual_MMC-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78be8221a263e2c93193179782d2f215fa8d9f7258e231381c1f25a25e8ec1e4
MD5 fde8a57cd924cdc8d891dbfe307ff114
BLAKE2b-256 4aa161987a217ac6f3e02261869a6fcc536d6ebbe8068b5230bd3c174e2e77d6

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