-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/remove_system_option_settings'
- Loading branch information
Showing
18 changed files
with
310 additions
and
250 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ mdout.mdp | |
traj_comp.xtc | ||
|
||
# Jupyter notebook | ||
.ipynb | ||
.ipynb_checkpoints/ | ||
|
||
# Pycharm | ||
|
Large diffs are not rendered by default.
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
Empty file.
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,25 @@ | ||
global_properties: | ||
can_write_console_log: False | ||
remove_tmp: False | ||
working_dir_path: /tmp/biobb/unitests | ||
|
||
confreader: | ||
paths: | ||
config_complete: file:test_data_dir/configuration/config_complete.yml | ||
config_empty: file:test_data_dir/configuration/config_empty.yml | ||
config_nostep_globals: file:test_data_dir/configuration/config_nostep_globals.yml | ||
config_nostep: file:test_data_dir/configuration/config_nostep.yml | ||
|
||
ref_config_complete_pkl: file:test_reference_dir/configuration/config_complete.pkl | ||
ref_config_empty_pkl: file:test_reference_dir/configuration/config_empty.pkl | ||
ref_config_nostep_globals_pkl: file:test_reference_dir/configuration/config_nostep_globals.pkl | ||
ref_config_nostep_pkl: file:test_reference_dir/configuration/config_nostep.pkl | ||
|
||
ref_config_complete_paths_pkl: file:test_reference_dir/configuration/config_complete_paths.pkl | ||
ref_config_empty_paths_pkl: file:test_reference_dir/configuration/config_empty_paths.pkl | ||
ref_config_nostep_globals_paths_pkl: file:test_reference_dir/configuration/config_nostep_globals_paths.pkl | ||
ref_config_nostep_paths_pkl: file:test_reference_dir/configuration/config_nostep_paths.pkl | ||
|
||
properties: | ||
remove_tmp: False | ||
|
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,40 @@ | ||
global_properties: | ||
working_dir_path: biobb_wf_protein-complex_md_setup | ||
can_write_console_log: False | ||
run_md: false | ||
|
||
step00_cat_pdb: | ||
tool: cat_pdb | ||
paths: | ||
input_structure1: superinput.pdb | ||
input_structure2: /path/to/inputs/ions.pdb | ||
output_structure_path: protein.ions.pdb | ||
|
||
step4_fix_side_chain: | ||
tool: fix_side_chain | ||
paths: | ||
input_pdb_path: dependency/step00_cat_pdb/output_structure_path | ||
output_pdb_path: fixsidechain.pdb | ||
|
||
step5_pdb2gmx: | ||
tool: pdb2gmx | ||
paths: | ||
input_pdb_path: dependency/step4_fix_side_chain/output_pdb_path | ||
output_gro_path: pdb2gmx.gro | ||
output_top_zip_path: pdb2gmx_top.zip | ||
properties: | ||
force_field: amber99sb | ||
water_type: tip3p | ||
|
||
step9_make_ndx: | ||
paths: | ||
input_structure_path: file:/path/to/inputs/ligand.gro | ||
output_ndx_path: ligand.index.ndx | ||
properties: | ||
selection: 0 & ! a H* | ||
|
||
step9_bis_make_ndx: | ||
paths: | ||
input_structure_path: /path/to/inputs/ligand.gro | ||
output_ndx_path: ligand.index.ndx | ||
properties: |
Empty file.
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,8 @@ | ||
tool: pdb2gmx | ||
paths: | ||
input_pdb_path: path/to/output_pdb_path | ||
output_gro_path: pdb2gmx.gro | ||
output_top_zip_path: pdb2gmx_top.zip | ||
properties: | ||
force_field: amber99sb | ||
water_type: tip3p |
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,13 @@ | ||
global_properties: | ||
working_dir_path: biobb_wf_protein-complex_md_setup | ||
can_write_console_log: False | ||
run_md: false | ||
|
||
tool: pdb2gmx | ||
paths: | ||
input_pdb_path: path/to/output_pdb_path | ||
output_gro_path: pdb2gmx.gro | ||
output_top_zip_path: pdb2gmx_top.zip | ||
properties: | ||
force_field: amber99sb | ||
water_type: tip3p |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�}�. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# type: ignore | ||
from biobb_common.tools import test_fixtures as fx | ||
from biobb_common.configuration.settings import ConfReader | ||
|
||
|
||
class TestConfReader(): | ||
def setup_class(self): | ||
fx.test_setup(self, 'confreader') | ||
|
||
def teardown_class(self): | ||
# pass | ||
fx.test_teardown(self) | ||
|
||
def test_confreader_properties(self): | ||
print() # Add a new line for better readability in the console | ||
for file_name in ['config_complete', 'config_empty', 'config_nostep', 'config_nostep_globals']: | ||
conf = ConfReader(self.paths[file_name]) | ||
assert fx.compare_object_pickle(conf.get_prop_dic(), self.paths[f'ref_{file_name}_pkl'], ignore_keys=['path', 'working_dir_path', 'sandbox_path']) | ||
|
||
def test_confreader_paths(self): | ||
print() # Add a new line for better readability in the console | ||
for file_name in ['config_complete', 'config_empty', 'config_nostep', 'config_nostep_globals']: | ||
conf = ConfReader(self.paths[file_name]) | ||
assert fx.compare_object_pickle(conf.get_paths_dic(), self.paths[f'ref_{file_name}_paths_pkl'], ignore_keys=['working_dir_path', 'sandbox_path'], ignore_substring='/Users/pau/projects/biobb_common/') |