Skip to main content

pyCoarse

pyCoarse is a Python library designed for generating coarse-grained models of proteins, particularly for the development of coarse-grained biomolecular models such as viruses.

Coarse grained model generation

These steps are common to all coarse grained models.

  1. PDB file is load and analyzed. Different chains are grouped into classes. Two chains are considered to belong to the same class if one chain's sequence is contained within the other. Each class is associated with a leader chain, which is the shortest chain in the class.
  2. A structure is created containing only the leader chains. The rest of the protein is stored as a translation and rotation operation.
  3. The coarse-grained model is then applied to each leader chain, and the full structure is reconstructed at coarse-grained resolution.

Coarse grained models availble

Shape based coarse grained model (SBCG)

More information about this model can be found here. The following example shows how to construct the coarse grained using the SBCG model. The P22 virus (PDB id : 5uu5) is used.

import pyGrained
import pyGrained.models

resolution = 300 #Number of atoms per bead
steps      = 10000 #Number of minimization steps

pathToPDB = "./p22/data/5uu5.pdb"
outputFile = "p22_sbcg"

test = pyGrained.models.SBCG("p22_sbcg",pathToPDB)
test.generateModel(resolution,steps)

#Models to be used in topology generation. Elastic network model for the bonds and a proximity model of alpha carbons for native contacts.

model = {"bondsModel":{"name":"ENM",
                       "parameters":{"enmCut":12.0}},
         "nativeContactsModel":{"name":"CA",
                                "parameters":{"ncCut":8.0}}
         }

test.generateTopology(model)

#Generate .json with all information
test.generateSimulation(outputFile+".json",K=5.0,epsilon=1.0,D=1.2)

#Write a PDB file with the coarse grained model
test.writePDBcg(outputFile+".pdb")

#Write a superpunto file
test.writeSPcg(outputFile+".sp")

Metadata

Release files for pyGrained 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyGrained 1.0.9
File Size Uploaded
pygrained-1.0.9.tar.gz 62.9 kB Details

Release files / pygrained-1.0.9.tar.gz

Download URL pygrained-1.0.9.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63fe7e826b6942944ec0f23880eba5cf8dee09f1209c09ce9e1dd7f9636ec678
BLAKE2b-256 checksum
How to use checksums
51e33c38f54f2aa5d0c3e4fb31c25d1097b94c87a76eefd2dece372d090b14ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release history Release notifications | RSS feed

1.0.10

1 release file

This release

1.0.9 This release

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page