-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
85 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
from molsysmt._private.digestion import digest | ||
|
||
@digest(form='file:pdb') | ||
def to_molsysmt_MolSys(item, atom_indices='all', structure_indices='all', skip_digestion=False): | ||
def to_molsysmt_MolSys(item, atom_indices='all', structure_indices='all', get_missing_bonds=False, | ||
skip_digestion=False): | ||
|
||
from molsysmt.native import MolSys | ||
from . import to_molsysmt_Topology | ||
from . import to_molsysmt_Structures | ||
from . import to_molsysmt_PDBFileHandler | ||
from ..molsysmt_PDBFileHandler import to_molsysmt_MolSys as molsysmt_PDBFileHandler_to_molsysmt_MolSys | ||
|
||
tmp_item = MolSys() | ||
tmp_item.topology = to_molsysmt_Topology(item, atom_indices=atom_indices, skip_digestion=True) | ||
tmp_item.structures = to_molsysmt_Structures(item, atom_indices=atom_indices, | ||
structure_indices=structure_indices, skip_digestion=True) | ||
tmp_item = to_molsysmt_PDBFileHandler(item, skip_digestion=True) | ||
tmp_item = molsysmt_PDBFileHandler_to_molsysmt_MolSys(tmp_item, atom_indices=atom_indices, | ||
structure_indices=structure_indices, | ||
get_missing_bonds=get_missing_bonds, | ||
skip_digestion=True) | ||
|
||
return tmp_item | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.