Coder Social home page Coder Social logo

fast_dp's Issues

fast_dp-report.html rather corpulent

eg /dls/i03/data/2018/nt18231-9/processed/tmp/2018-11-15/07-35-33-8f6f713d/INS2_29_2_1_/fast_dp/fast_dp-report.html is 12.6 MB.
.json is another 12 MB

I suspect there are a few digits that can be shaved off

HTML log

see html logs for xia2; fast_ep for inspiration... would be very useful to replace current very minimal text version...

scaled unmerged data is in xds_sorted.mtz?

Hi,
looking how Aimless is run, I guess that if the user wants to get scaled unmerged data, the right file is xds_sorted.mtz.
Is that correct? Is this file available for download? (I can't remember how the web interface works).

For pixel array data set DATA_RANGE_FIXED_SCALE_FACTOR=1

Leaving it to it's own devices seems to change the absolute scale of the data, which can be an issue if it decides that the correct scale factor is 0.02 - means that all your intensities are < 1 which apparently SHELXC treats as meaningful...

Fast DP error: 'CLIBD'

I'm trying to get fast_dp working on a new CentOS7 machine.

I install cctbx from source
installed fast_dp as per instructions

Fast_DP version 1.3
Starting image: /20190501/burn0/lyso5_1_E1_00001.cbf
Running on: als-enable
Number of jobs: 1
Number of cores: 0
Processing images: 1 -> 100
Rotation range: 107.00 -> 207.00
Template: lyso5_1_E1_#####.cbf
Wavelength: 1.25511
Working in: /home/username/process
All autoindexing results:
Lattice      a      b      c  alpha   beta  gamma
Autoindexing failed
Fast DP error: 'CLIBD'

From fast_dp.error file:

$ cat fast_dp.error 
Traceback (most recent call last):
  File "/home/username/cctbx/base/lib/python2.7/site-packages/fast_dp/fast_dp.py", line 532, in main
    finst.process()
  File "/home/username/cctbx/base/lib/python2.7/site-packages/fast_dp/fast_dp.py", line 263, in process
    self._xds_inp, input_cell=self._input_cell_p1
  File "/home/username/cctbx/base/lib/python2.7/site-packages/fast_dp/autoindex.py", line 133, in autoindex
    spacegroup_to_lattice(r),
  File "/home/username/cctbx/base/lib/python2.7/site-packages/fast_dp/cell_spacegroup.py", line 78, in spacegroup_to_lattice
    os.path.join(os.environ["CLIBD"], "symop.lib"), "r"
  File "/home/username/cctbx/build/../base/lib/python2.7/UserDict.py", line 40, in __getitem__
    raise KeyError(key)
KeyError: 'CLIBD'

Generate scaled_unmerged.mtz

Please could fast_dp generate a scaled_unmerged.mtz? Just needs to add the following input to aimless:
output unmerged

Support for ADSC HF-4M

At moment it says:

Starting image: ../thaum-11_1_0001.cbf
Fast DP error: 'detector_class'

refined beam x and y flipped?

If you look at line 306-309 of fast_dp.py:

            self._refined_beam = (
                beam_pixels[1] * float(self._xds_inp["QY"]),
                beam_pixels[0] * float(self._xds_inp["QX"]),
            )

It appears to me that the refined beam is being ordered with Y first and X second. I think this is propagating into the fast_dp.xml file where refinedXBeam and refinedYBeam are swapped with respect to the starting values. SynchWeb (master branch) has been written to accept these swapped beam centres, but the changes that were made to Synchweb in order to display things properly for fast_dp means that, at least for me, the other pipeline results (autoPROC, xia2-3d, xia2-dials) indicate a badly misaligned beam_xy in my image headers... which I know they are not.

Latest changes to XDS (i.e. CLUSTER_NODES=) may cause fast_dp to not use parallelism

Latest revision 20170601 has different approach to cluster usage and appears to ignore the forkintegrate command - this can make fast_dp no longer fast. In INTEGRATE.LP see

 INPUT PARAMETER VALUES
 ----------------------
 MAXIMUM_NUMBER_OF_PROCESSORS=  20  (0: automatic choice of OpenMP threads)
 number of OpenMP threads used  20
 MAXIMUM_NUMBER_OF_JOBS=  20  (0:automatic choice of forked main tasks)
 number of forked INTEGRATE tasks   1

Working with XDS authors to resolve what is happening here...

Allow mode to work on named machines

i.e. in preference to running with e.g. UGE as a queue management system, instead run the parallel bits on node-001 node-002 or similar named on command-line

Will require passing info through to distributed forkxds script

Fix up for updated DIALS

fast_dp has become incompatible with recent dials releases due to deprecation and removal of some features. Please fix.

fast_dp doesn't recognise e.g. spacegroup C121

$ fast_dp image_0001.cbf --spacegroup="C121"
Fast_DP version 1.3
Spacegroup C121 not recognised: ignoring
...

This is because it checks the name against a hardcoded list in $CLIBD/symop.lib:

def check_spacegroup_name(spacegroup_name):
"""Will return normalised name if spacegroup name is recognised,
raise exception otherwise. For checking command-line options."""
try:
j = int(spacegroup_name)
if j > 230 or j <= 0:
raise RuntimeError("spacegroup number nonsense: %s" % spacegroup_name)
return spacegroup_number_to_name(j)
except ValueError:
pass
for record in open(os.path.join(os.environ["CLIBD"], "symop.lib"), "r").readlines():
if " " in record[:1]:
continue
if spacegroup_name == record.split()[3]:
return spacegroup_name
raise RuntimeError('spacegroup name "%s" not recognised' % spacegroup_name)

It would be better instead if it used sgtbx to interpret space group symbols is more permissive in what it supports as input.

Tests fail confusingly without XDS

Running tests without XDS present give:

        for step in ["XYCORR", "INIT", "COLSPOT", "IDXREF"]:
>           lastrecord = open("%s.LP" % step).readlines()[-1]
E           FileNotFoundError: [Errno 2] No such file or directory: 'XYCORR.LP'

fast_dp/autoindex.py:106: FileNotFoundError

This is because run_job doesn't check and provides no way to tell if the process actually ran, so autoindex just carries on as if it's worked:

log = run_job("xds_par")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.