Skip to content

Commit

Permalink
Merge pull request #139 from rigdenlab/minor_fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
hlasimpk authored Sep 21, 2021
2 parents a20dcc8 + 9a8711c commit 56e1d79
Show file tree
Hide file tree
Showing 84 changed files with 116 additions and 8 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Changelog
=========

0.2.6
-----

Changed
~~~~~~~
- Lots of minor bug fixes including issue with amore rotation search
- Added back in user defined MTZ column labels after changes to the MTZ parser meant this was lost


Changelog
=========
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sequence Independent Molecular Replacement Based on Available Database
:target: https://travis-ci.com/rigdenlab/SIMBAD
:alt: CI Status

.. image:: https://img.shields.io/badge/solution%20count-9-blue.svg?style=flat
.. image:: https://img.shields.io/badge/solution%20count-8-blue.svg?style=flat
:alt: Solution count

.. image:: https://img.shields.io/badge/DOI-10.1107/S2059798318005752-blue.svg
Expand Down
2 changes: 1 addition & 1 deletion scripts/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import requests

LOG = logging.getLogger(__name__)
URL = 'https://search.rcsb.org/rcsbsearch/v1/query?json={"query":{"type":"terminal","service":"text","parameters":{"value":"simbad"}},"return_type":"entry"}'
URL = 'https://search.rcsb.org/rcsbsearch/v1/query?json={"query":{"type":"terminal","service":"full_text","parameters":{"value":"simbad"}},"return_type":"entry"}'


def update_readme(n_sols):
Expand Down
24 changes: 24 additions & 0 deletions simbad/command_line/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ def _simbad_contaminant_search(args):
skip_mr=args.skip_mr,
process_all=args.process_all,
)

# If user defined, set columns
if args.F and args.SIGF:
rotation_search.mtz_obj.f = args.F
rotation_search.mtz_obj.sigf = args.SIGF

rotation_search.run(
os.path.abspath(args.cont_db),
nproc=args.nproc,
Expand Down Expand Up @@ -348,6 +354,12 @@ def _simbad_morda_search(args):
skip_mr=args.skip_mr,
process_all=args.process_all,
)

# If user defined, set columns
if args.F and args.SIGF:
rotation_search.mtz_obj.f = args.F
rotation_search.mtz_obj.sigf = args.SIGF

rotation_search.run(
args.morda_db,
nproc=args.nproc,
Expand Down Expand Up @@ -418,6 +430,7 @@ def _simbad_lattice_search(args):
temp_mtz = os.path.join(args.work_dir, "input.mtz")
simbad.util.mtz_util.ctruncate(args.mtz, temp_mtz)
mp = MtzParser(temp_mtz)

if isinstance(mp.spacegroup_symbol, str):
space_group = "".join(mp.spacegroup_symbol.split())
elif isinstance(mp.spacegroup_symbol, unicode):
Expand Down Expand Up @@ -650,6 +663,17 @@ def submit_mr_jobs(mtz, mr_dir, search_results, refine_type, refine_cycles, args
tmp_dir=args.tmp_dir,
timeout=args.phaser_kill,
)

# If user defined, set columns
if args.F and args.SIGF:
molecular_replacement._mtz_obj.f = args.F
molecular_replacement._mtz_obj.sigf = args.SIGF
if args.FREE:
molecular_replacement._mtz_obj.free = args.FREE
if args.DANO and args.SIGDANO:
molecular_replacement._mtz_obj.dp = args.DANO
molecular_replacement._mtz_obj.sigdp = args.SIGDANO

molecular_replacement.submit_jobs(
search_results,
nproc=args.nproc,
Expand Down
2 changes: 1 addition & 1 deletion simbad/command_line/simbad_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def create_contaminant_db(database, add_morda_domains, nproc=2, submit_qtype=Non
msg = "Windows is currently not supported"
raise RuntimeError(msg)

if StrictVersion(dimple.main.__version__) < StrictVersion('2.6.2'):
if StrictVersion(dimple.main.__version__) < StrictVersion('2.6.1'):
msg = "Downloading latest Contaminant database from GitHub repo"
logger.info(msg)
cmd = ['svn', 'export', 'https://github.com/rigdenlab/SIMBAD/trunk/static/contaminants']
Expand Down
2 changes: 1 addition & 1 deletion simbad/mr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def submit_jobs(self, results, nproc=1, process_all=False, submit_qtype=None, su
else:
input_arguments.append(mr_succeeded_log)

submit_chunk(*input_arguments)
submit_chunk(*input_arguments, timeout=self.timeout)

mr_results = []
mr_pdbouts, mr_logfiles, ref_logfiles = zip(*run_files)
Expand Down
1 change: 0 additions & 1 deletion simbad/rotsearch/amore_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def run(

i = InputMR_DAT()
i.setHKLI(self.mtz)
i.setLABI_F_SIGF(str(self.mtz_obj.f), str(self.mtz_obj.sigf))
i.setMUTE(True)
run_mr_data = runMR_DAT(i)

Expand Down
1 change: 0 additions & 1 deletion simbad/rotsearch/phaser_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def run(

i = InputMR_DAT()
i.setHKLI(self.mtz)
i.setLABI_F_SIGF(str(self.mtz_obj.f), str(self.mtz_obj.sigf))
i.setMUTE(True)
run_mr_data = runMR_DAT(i)

Expand Down
4 changes: 3 additions & 1 deletion simbad/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def source_ccp4():
return "source {}".format(os.path.join(os.environ["CCP4"], "bin", "ccp4.setup-sh"))


def submit_chunk(collector, run_dir, nproc, job_name, submit_qtype, submit_queue, permit_nonzero, monitor, success_func):
def submit_chunk(collector, run_dir, nproc, job_name, submit_qtype, submit_queue, permit_nonzero, monitor, success_func,
timeout=30):
"""Submit jobs in small chunks to avoid using too much disk space
Parameters
Expand Down Expand Up @@ -197,6 +198,7 @@ def submit_chunk(collector, run_dir, nproc, job_name, submit_qtype, submit_queue
permit_nonzero=permit_nonzero,
shell="/bin/bash",
priority=-10,
runtime=timeout,
cleanup=True,
) as task:
task.run()
Expand Down
2 changes: 1 addition & 1 deletion simbad/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Maintain sematantic versioning. Further information can
# be found here [http://semver.org/]
__version_info__ = (0, 2, 5)
__version_info__ = (0, 2, 6)

# ======================================================
# Do __NOT__ change anything below here
Expand Down
1 change: 1 addition & 0 deletions static/contaminants/BACTH/THER_BACTH/P41212/6n4w.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/CTRA_BOVIN/P41212/7kty.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/TRY1_BOVIN/C121/7jwx.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/TRY1_BOVIN/P212121/1v2o.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/TRY1_BOVIN/P212121/6svj.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/TRY1_BOVIN/P212121/7bs6.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/BOVIN/TRY1_BOVIN/P3121/6zq2.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P1/6a10.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P1/6d6g.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P1/7avf.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P1211/6ht2.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P212121/6f1m.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P212121/6ro5.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P212121/6s7n.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P212121/6syc.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/3txb.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/4a7d.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/4hpi.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/4ngo.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/5kki.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/6wrm.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/6zs8.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/CHICK/LYSC_CHICK/P43212/7e02.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOBD/A0A140N6S1_ECOBD/I422/2r6s.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/BFR_ECOLI/P42212/6p8l.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/CATE_ECOLI/P1211/6ztw.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/C2221/1f33.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/C2221/6b0d.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P1/1jts.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P1/6qvx.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P1/7aqs.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P21212/1dps.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P32/1jre.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/DPS_ECOLI/P32/1l8h.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/G3P1_ECOLI/C2221/6utm.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/G3P1_ECOLI/P1/6io4.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/KDSA_ECOLI/I23/6u57.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/MALE_ECOLI/C121/5gxt.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/MALE_ECOLI/H32/4wrn.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/MALE_ECOLI/P21212/4xhs.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/MALE_ECOLI/P212121/5t0a.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/MALE_ECOLI/P212121/6kxg.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/NAGB_ECOLI/H32/1hot.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/NAGB_ECOLI/P6322/1jt9.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/ODO2_ECOLI/I4/6pbr.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/OMPF_ECOLI/P212121/6zhv.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/OMPF_ECOLI/P321/6zhp.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/TKT1_ECOLI/P212121/6rjc.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/ECOLI/TPIS_ECOLI/P212121/1tre.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/HRV2/POLG_HRV2/P3221/7ara.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/HUMAN/ELNE_HUMAN/C121/6sma.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/HUMAN/ELNE_HUMAN/H32/6f5m.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/HUMAN/ELNE_HUMAN/P212121/6e69.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/HUMAN/THRB_HUMAN/C2221/6bjr.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/PARAQ/PRTK_PARAQ/P1211/6kkf.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/PARAQ/PRTK_PARAQ/P43212/5rp4.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/PARAQ/PRTK_PARAQ/P43212/5whw.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/PIG/PEPA_PIG/P6522/6xd2.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1/6zvy.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1211/6sp5.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1211/6xt8.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1211/6zvv.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1211/6zvx.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P1211/7ond.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P21212/6zvu.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P212121/6sp8.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P212121/6ty7.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P212121/6xtc.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P212121/6zcc.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/RHORH/DHAA_RHORH/P321/6y7b.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/SCHJA/GST26_SCHJA/P21212/6n8u.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/SCHJA/GST26_SCHJA/P212121/6rwd.dat

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/contaminants/SERPL/S0AKJ8_SERPL/I422/4mca.dat

Large diffs are not rendered by default.

Binary file modified static/niggli_database.npz
Binary file not shown.

0 comments on commit 56e1d79

Please sign in to comment.