Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
天河 9a80508c07 | 1 year ago | |
---|---|---|
.. | ||
applications | 1 year ago | |
cybertron | 1 year ago | |
docs | 1 year ago | |
mindsponge | 1 year ago | |
tutorials | 1 year ago | |
CMakeLists.txt | 1 year ago | |
LICENSE | 2 years ago | |
NOTICE | 2 years ago | |
OWNERS | 1 year ago | |
README.md | 1 year ago | |
README_CN.md | 1 year ago | |
build.sh | 1 year ago | |
requirements.txt | 1 year ago | |
setup.py | 1 year ago | |
version.txt | 1 year ago |
ENGLISH | 简体中文
MindSpore SPONGE(Simulation Package tOwards Next GEneration molecular modelling) is a toolkit for Computational Biology based on AI framework MindSpore,which supports MD, folding and so on. It aims to provide efficient AI computational biology software for a wide range of scientific researchers, staff, teachers and students.
2022.8.23
Paper "Few-Shot Learning of Accurate Folding Landscape for Protein Structure Prediction" is preprinted in arxiv, Please refer to Paper2022.8.11—2022.8.15
MindSpore SPONGE SIG Summer School, replay2022.07.18
Paper "SPONGE: A GPU-Accelerated Molecular Dynamics Package with Enhanced Sampling and AI-Driven Algorithms"is published in Chinese Journal of Chemistry. Please refer to paper and codes2022.07.09
MEGA-Assessment wins CAMEO-QE monthly 1st2022.06.27
Paper "PSP: Million-level Protein Sequence Dataset for Protein Structure Prediction" is preprinted in arxiv. Please refer to Paper and codes.2022.04.21
MEGA-Fold wins CAMEO-3D monthly 1st. Related News\begin{align}
\mathcal L_{viol} = \mathcal L_{bondlength }+\mathcal L_{bondangle }+\mathcal L_{clash}
\end{align}
import mindspore as ms
from mindspore import context
from mindspore.common import Tensor
from mindsponge.common.utils import get_pdb_info
from mindsponge.metrics.structure_violations import get_structural_violations
# set which gpu to use, in default use 0 card
context.set_context(mode=context.GRAPH_MODE, device_target="GPU", device_id=0)
input_pdb = "xxx.pdb"
# extract features from pdb
features = get_pdb_info(input_pdb)
violations = get_structural_violations(Tensor(features.get("atom14_gt_exists")).astype(ms.float32),
Tensor(features.get("residue_index")).astype(ms.float32),
Tensor(features.get("aatype")).astype(ms.int32),
Tensor(features.get("residx_atom14_to_atom37")).astype(ms.int32),
Tensor(features.get("atom14_gt_positions")).astype(ms.float32))
violation_all = violations[-1]
from mindsponge.common.geometry import initial_affine
from mindsponge.common.geometry import quat_to_rot
# quaternion is a mindspore tensor
# rotation_matrix is a tuple of mindspore tensor, length is 9
# translation is a tuple of mindsproe tensor, length is 3
quat, rot, trans = initial_affine(128) # 128 is the num of residues
transformed_rot = quat_to_rot(quat)
import numpy as np
from mindspore import context
from mindsponge import Sponge
from mindsponge import Molecule
from mindsponge import ForceFieldBase
from mindsponge import DynamicUpdater
from mindsponge.potential import BondEnergy, AngleEnergy
from mindsponge.callback import WriteH5MD, RunInfo
from mindsponge.function import VelocityGenerator
from mindsponge.control import LeapFrog
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
system = Molecule(
atoms=['O', 'H', 'H'],
coordinate=[[0, 0, 0], [0.1, 0, 0], [-0.0333, 0.0943, 0]],
bond=[[[0, 1], [0, 2]]],
)
bond_energy = BondEnergy(
index=system.bond,
force_constant=[[345000, 345000]],
bond_length=[[0.1, 0.1]],
)
angle_energy = AngleEnergy(
index=[[1, 0, 2]],
force_constant=[[383]],
bond_angle=[[109.47 / 180 * np.pi]],
)
energy = ForceFieldBase(energy=[bond_energy, angle_energy])
velocity_generator = VelocityGenerator(300)
velocity = velocity_generator(system.coordinate.shape, system.atom_mass)
opt = DynamicUpdater(
system,
integrator=LeapFrog(system),
time_step=1e-3,
velocity=velocity,
)
md = Sponge(system, energy, opt)
run_info = RunInfo(10)
cb_h5md = WriteH5MD(system, 'test.h5md', save_freq=10, write_velocity=True, write_force=True)
md.run(1000, callbacks=[run_info, cb_h5md])
More Cases:👀
Due to the dependency between MindSPONGE and MindSpore, please follow the table below and install the corresponding MindSpore version from MindSpore download page.
MindSPONGE Version | Branch | MindSpore Version | Python Version |
---|---|---|---|
1.0.0 | master | >=2.0.0 | >=3.7 |
pip install -r requirements.txt
Hardware | OS | Status |
---|---|---|
Ascend 910 | Ubuntu-x86 | ✔️ |
Ubuntu-aarch64 | ✔️ | |
EulerOS-aarch64 | ✔️ | |
CentOS-x86 | ✔️ | |
CentOS-aarch64 | ✔️ | |
GPU CUDA 10.1 | Ubuntu-x86 | ✔️ |
pip install mindsponge_[gpu|ascend]
git clone https://gitee.com/mindspore/mindscience.git
cd {PATH}/mindscience/MindSPONGE
bash build.sh -e ascend
Enable c
if you want to use Cybertron.
Enable t
if you want to use traditional MD.
export CUDA_PATH={your_cuda_path}
bash build.sh -e gpu -j32 -t on -c on
cd {PATH}/mindscience/MindSPONGE/output
pip install mindsponge*.whl
pip install cybertron*.whl # if "-c on" is used
MindSpore SPONGE SIG (Special Interesting Group) is a team composed of a group of people who are interested and have a mission to make achievements in the field of AI × biological computing.
MindSpore SPONGE SIG group provides efficient and easy-to-use AI computational biology software for researchers, teachers and students, and provides a platform for people with strong abilities or strong interests in this field to communicate and cooperate together.
At present, the SIG group has six core teachers. After members joining the SIG group, our teachers will lead the team to carry out scientific research and develop the software function development. Of course, members are also welcome to do research on their own topics using MindSPONGE.
In the SIG group, we will hold various activities, including summer school, public lecture, technology communication meeting and other large-scale activities. Small-scale activities like weekly meetings, blogs writing will also be held in the group. By joining the activities, there will be lots of chances to communicate with our experts. During the summer school program ended on August 15th, we invited 13 teachers to have a five-day lecture mainly including three themes of MindSpore basics, molecular dynamics and advanced AI × Science courses. You can get the replay here.
In the SIG group, we will also release the public intelligence task and open source internship task, welcome everyone to claim it.
If you want to join us and become a member of our group, please send your resume to dingyahao@huawei.com, we are always looking forward to your arrival.
MindScience is scientific computing kits for various industries based on the converged MindSpore framework.
Python Pickle Jupyter Notebook Cuda Text other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》