Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structures new #108

Merged
merged 40 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
30a30db
In process to optimize the module get of molsysmt.MolSysNEW
dprada Nov 16, 2023
0089801
In process
dprada Nov 17, 2023
c335ba3
In process to replace molsysmt MolSys, Topology and Structures
dprada Nov 18, 2023
f93e154
In process
dprada Nov 20, 2023
e778233
In process to replace molsysmt MolSys, Topology and Structures
dprada Nov 21, 2023
3df5eae
in process
dprada Nov 22, 2023
970c750
In process
dprada Nov 23, 2023
ecbbe97
in process
dprada Nov 23, 2023
bddca22
in process
dprada Nov 25, 2023
5e222b1
In process
dprada Nov 27, 2023
81d2f15
in pro
dprada Nov 27, 2023
0b302b5
in pro
dprada Dec 7, 2023
8f0926f
in process
dprada Dec 8, 2023
58e9125
in proc
dprada Jan 3, 2024
b3213b9
In process
dprada Jan 4, 2024
59258e5
In process
dprada Jan 5, 2024
22f95a7
in proc
dprada Jan 8, 2024
a6b3ec4
in proc
dprada Jan 15, 2024
7d3a647
In process
dprada Jan 16, 2024
381fc53
in process
dprada Jan 18, 2024
65d06f5
in process
dprada Jan 19, 2024
31d2ec6
In process
dprada Jan 22, 2024
8e9eeff
In process
dprada Jan 29, 2024
85b38e2
In process
dprada Jan 29, 2024
ccabd2a
In process
dprada Jan 30, 2024
ac50124
in process
dprada Jan 30, 2024
40106e6
in process
dprada Feb 2, 2024
b033f84
In process
dprada Feb 6, 2024
ddf401d
in process
dprada Feb 6, 2024
eb8d84b
in process
dprada Feb 7, 2024
640071d
in process
dprada Feb 8, 2024
98fc3fd
in process
dprada Feb 8, 2024
cd23a00
In process
dprada Feb 9, 2024
28a89e7
In process
dprada Feb 9, 2024
e768664
in process
dprada Feb 10, 2024
c62382a
In process
dprada Feb 12, 2024
bf656de
In process
dprada Feb 12, 2024
eea835c
In process
dprada Feb 13, 2024
e9f4aaa
XXX
dprada Feb 13, 2024
c6e2836
In process
dprada Feb 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions dev_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Basic

pip install --no-deps --editable .

## Get

- n_atoms is always an integer even when there is no topological info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
get_inner_bond_index_from_system
get_inner_bonded_atoms_from_atom
get_inner_bonded_atoms_from_system
get_kinetic_energy_from_system
get_molecule_id_from_atom
get_molecule_id_from_chain
get_molecule_id_from_component
Expand Down Expand Up @@ -331,8 +332,11 @@
get_partial_charge_from_group
get_partial_charge_from_molecule
get_partial_charge_from_system
get_potential_energy_from_system
get_structure_id_from_system
get_temperature_from_system
get_time_from_system
get_total_energy_from_system
get_velocities_from_system


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
get_component_type_from_entity
get_component_type_from_group
get_component_type_from_molecule
get_coordinates_from_atom
get_coordinates_from_system
get_entity_id_from_atom
get_entity_id_from_chain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
get_inner_bond_index_from_system
get_inner_bonded_atoms_from_atom
get_inner_bonded_atoms_from_system
get_kinetic_energy_from_system
get_molecule_id_from_atom
get_molecule_id_from_chain
get_molecule_id_from_component
Expand Down Expand Up @@ -331,8 +332,11 @@
get_partial_charge_from_group
get_partial_charge_from_molecule
get_partial_charge_from_system
get_potential_energy_from_system
get_structure_id_from_system
get_temperature_from_system
get_time_from_system
get_total_energy_from_system
get_velocities_from_system


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,106 @@
.. autosummary::

set_atom_id_to_atom
set_atom_index_to_atom
set_atom_name_to_atom
set_atom_type_to_atom
set_b_factor_to_atom
set_box_to_system
set_chain_id_to_atom
set_chain_id_to_chain
set_chain_id_to_component
set_chain_id_to_group
set_chain_id_to_molecule
set_chain_index_to_atom
set_chain_index_to_chain
set_chain_index_to_component
set_chain_index_to_group
set_chain_index_to_molecule
set_chain_name_to_atom
set_chain_name_to_chain
set_chain_name_to_component
set_chain_name_to_group
set_chain_name_to_molecule
set_chain_type_to_atom
set_chain_type_to_chain
set_chain_type_to_component
set_chain_type_to_group
set_chain_type_to_molecule
set_component_id_to_atom
set_component_id_to_component
set_component_id_to_group
set_component_index_to_atom
set_component_index_to_component
set_component_index_to_group
set_component_name_to_atom
set_component_name_to_component
set_component_name_to_group
set_component_type_to_atom
set_component_type_to_component
set_component_type_to_group
set_constraints_to_system
set_coordinates_to_atom
set_coordinates_to_system
set_cutoff_distance_to_system
set_dispersion_correction_to_system
set_entity_id_to_atom
set_entity_id_to_chain
set_entity_id_to_component
set_entity_id_to_entity
set_entity_id_to_group
set_entity_id_to_molecule
set_entity_index_to_atom
set_entity_index_to_chain
set_entity_index_to_component
set_entity_index_to_entity
set_entity_index_to_group
set_entity_index_to_molecule
set_entity_name_to_atom
set_entity_name_to_chain
set_entity_name_to_component
set_entity_name_to_entity
set_entity_name_to_group
set_entity_name_to_molecule
set_entity_type_to_atom
set_entity_type_to_chain
set_entity_type_to_component
set_entity_type_to_entity
set_entity_type_to_group
set_entity_type_to_molecule
set_ewald_error_tolerance_to_system
set_flexible_constraints_to_system
set_forcefield_to_system
set_group_id_to_atom
set_group_id_to_group
set_group_index_to_atom
set_group_index_to_group
set_group_name_to_atom
set_group_name_to_group
set_group_type_to_atom
set_group_type_to_group
set_hydrogen_mass_to_system
set_implicit_solvent_to_system
set_kappa_to_system
set_molecule_id_to_atom
set_molecule_id_to_chain
set_molecule_id_to_component
set_molecule_id_to_group
set_molecule_id_to_molecule
set_molecule_index_to_atom
set_molecule_index_to_chain
set_molecule_index_to_component
set_molecule_index_to_group
set_molecule_index_to_molecule
set_molecule_name_to_atom
set_molecule_name_to_chain
set_molecule_name_to_component
set_molecule_name_to_group
set_molecule_name_to_molecule
set_molecule_type_to_atom
set_molecule_type_to_chain
set_molecule_type_to_component
set_molecule_type_to_group
set_molecule_type_to_molecule
set_non_bonded_method_to_system
set_occupancy_to_atom
set_rigid_water_to_system
Expand All @@ -38,6 +123,7 @@
set_structure_id_to_system
set_switch_distance_to_system
set_time_to_system
set_velocities_to_atom
set_water_model_to_system


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
set_occupancy_to_atom
set_structure_id_to_system
set_time_to_system
set_velocities_to_atom
set_velocities_to_system



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@



.. rubric:: Functions

.. autosummary::

set_atom_id_to_atom
set_atom_name_to_atom
set_group_name_to_group




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
get_partial_charge_from_system
get_structure_id_from_system
get_time_from_system
get_velocities_from_atom
get_velocities_from_system


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@



.. rubric:: Functions

.. autosummary::

set_coordinates_to_atom
set_coordinates_to_system




Expand Down
43 changes: 43 additions & 0 deletions docs/contents/user/intro/native_forms/file_h5msm.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "efce3e3e-6878-4ba2-9186-3ac5b1b24764",
"metadata": {},
"source": [
"# file:h5msm\n",
"\n",
"To be written"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "06dd6d43-dfeb-4b0c-a649-cbf5caa19485",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
1 change: 1 addition & 0 deletions docs/contents/user/intro/native_forms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
:maxdepth: 1

MolSys.ipynb
file_h5msm.ipynb
```
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
65 changes: 65 additions & 0 deletions docs/contents/user/intro/native_forms/molsysmt_Topology.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "bdc76b08-dda7-4000-a71f-2cb0611f9ac5",
"metadata": {},
"source": [
"# MolSysMT.Topology\n",
"\n",
"To be written\n"
]
},
{
"cell_type": "markdown",
"id": "4e0be295-7699-46ee-97cf-83d4118ecb82",
"metadata": {},
"source": [
"## chain dataframe"
]
},
{
"cell_type": "markdown",
"id": "f0edbf0a-676f-4b70-a924-d5a0d0dd2651",
"metadata": {},
"source": [
"### chain type\n",
"\n",
"chain type takes the value:\n",
"\n",
"- 'system': when the chain contains every atom in the molecular system\n",
"- 'molecule_type/s + molecule_type/s + ...' where the list of molecule types apparences is ['protein', 'peptide', 'dna', 'rna', 'oligosaccharide', 'small molecule', 'lipid', 'ion', 'water']. The singular or plural form of the molecule type is used if a single or multiple molecules are of the same type are contained in the chain. For example 'dna + ions + waters' or 'protein + small molecule + lipids + ions + waters'."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f84bf92d-2d55-48d6-a593-4f56e8352ed0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Binary file added docs/contents/user/tools/basic/181L.mmtf
Binary file not shown.
2 changes: 1 addition & 1 deletion molsysmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from . import hbonds
from . import thirds

from . import systems
from .systems import systems

# Adding molsysmt to nglview

Expand Down
1 change: 1 addition & 0 deletions molsysmt/_private/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import digestion
from . import variables
from .conversion_shortcuts import _multiple_conversion_shortcuts
9 changes: 9 additions & 0 deletions molsysmt/_private/digestion/argument/check_if_None.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from ...exceptions import ArgumentError

def digest_check_if_None(check_if_None, caller=None):

if isinstance(check_if_None, bool):
return check_if_None

raise ArgumentError('check_if_None', value=check_if_None, caller=caller, message=None)

9 changes: 9 additions & 0 deletions molsysmt/_private/digestion/argument/constant_box.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from ...exceptions import ArgumentError

def digest_constant_box(constant_box, caller=None):

if isinstance(constant_box, bool):
return constant_box

raise ArgumentError('constant_box', value=constant_box, caller=caller, message=None)

9 changes: 9 additions & 0 deletions molsysmt/_private/digestion/argument/constant_id_step.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from ...exceptions import ArgumentError

def digest_constant_id_step(constant_id_step, caller=None):

if isinstance(constant_id_step, bool):
return constant_id_step

raise ArgumentError('constant_id_step', value=constant_id_step, caller=caller, message=None)

9 changes: 9 additions & 0 deletions molsysmt/_private/digestion/argument/constant_time_step.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from ...exceptions import ArgumentError

def digest_constant_time_step(constant_time_step, caller=None):

if isinstance(constant_time_step, bool):
return constant_time_step

raise ArgumentError('constant_time_step', value=constant_time_step, caller=caller, message=None)

Loading
Loading