-
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
168 changed files
with
956 additions
and
51,471 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from molsysmt._private.exceptions import ArgumentError | ||
|
||
def digest_n_amino_acids(n_amino_acids, caller=None): | ||
|
||
if caller=='molsysmt.basic.get.get': | ||
if isinstance(n_amino_acids, bool): | ||
return n_amino_acids | ||
elif caller=='molsysmt.basic.contains.contains': | ||
if isinstance(n_amino_acids, (bool, int)): | ||
return n_amino_acids | ||
|
||
|
||
raise ArgumentError('n_amino_acids', value=n_amino_acids, caller=caller, message=None) | ||
|
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import molsysmt as msm | ||
import numpy as np | ||
from pathlib import Path | ||
import os | ||
import shutil | ||
|
||
data_dir = Path('../.') | ||
|
||
# Purge | ||
|
||
files_to_be_purged = [ | ||
'pdb/1tcd.pdb', | ||
'mmtf/1tcd.mmtf', | ||
'h5msm/1tcd.h5msm' | ||
] | ||
|
||
for filename in files_to_be_purged: | ||
filepath = Path(data_dir, filename) | ||
if os.path.isfile(filepath): | ||
os.remove(filepath) | ||
|
||
# Make | ||
|
||
msm.convert('pdb_id:1tcd', to_form='1tcd.pdb') | ||
msm.convert('pdb_id:1tcd', to_form='1tcd.mmtf') | ||
msm.convert('pdb_id:1tcd', to_form='1tcd.h5msm') | ||
|
||
shutil.move('1tcd.pdb', Path(data_dir, 'pdb/1tcd.pdb')) | ||
shutil.move('1tcd.mmtf', Path(data_dir, 'mmtf/1tcd.mmtf')) | ||
shutil.move('1tcd.h5msm', Path(data_dir, 'h5msm/1tcd.h5msm')) | ||
|
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
Binary file not shown.
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
Oops, something went wrong.