Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
ctffind updated to 4.1.8 (output code bug was fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
azazellochg committed Jun 12, 2017
1 parent 2429d81 commit 3699f6f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/templates/scipion.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ EM_ROOT = software/em

BSOFT_HOME = %(EM_ROOT)s/bsoft-1.9.0
CTFFIND_HOME = %(EM_ROOT)s/ctffind-3.6
CTFFIND4_HOME = %(EM_ROOT)s/ctffind4-4.1.5
CTFFIND4_HOME = %(EM_ROOT)s/ctffind4-4.1.8
DOGPICKER_HOME = %(EM_ROOT)s/dogpicker-0.2.1
EMAN2DIR = %(EM_ROOT)s/eman-2.12
ETHAN_HOME = %(EM_ROOT)s/ethan-1.2
Expand Down
3 changes: 3 additions & 0 deletions install/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@
env.addPackage('ctffind4', version='4.1.5',
tar='ctffind_V4.1.5.tgz')

env.addPackage('ctffind4', version='4.1.8',
tar='ctffind_V4.1.8.tgz')

env.addPackage('summovie', version='1.0.2',
tar='summovie_1.0.2.tgz')

Expand Down
2 changes: 1 addition & 1 deletion pyworkflow/em/packages/grigoriefflab/grigoriefflab.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getSupportedVersions(var='FREALIGN'):
if var == 'UNBLUR':
return ['1.0_150529', '1.0.2']
elif var == 'CTFFIND4':
return ['4.0.15', '4.1.5']
return ['4.0.15', '4.1.5', '4.1.8']
else: # FREALIGN
return ['9.07']

Expand Down
8 changes: 4 additions & 4 deletions pyworkflow/em/packages/grigoriefflab/protocol_ctffind.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def _prepareCommand(self):
self._params['stepPhaseShift'] = self.stepPhaseShift.get()
else:
self._params['phaseShift'] = "no"
if self.resamplePix: # ctffind v4.1.5
if self.resamplePix: # ctffind >= v4.1.5
self._params['resamplePix'] = "yes"
else:
self._params['resamplePix'] = "no"
Expand Down Expand Up @@ -294,7 +294,7 @@ def _prepareRecalCommand(self, ctfModel):
self._params['stepPhaseShift'] = self.stepPhaseShift.get()
else:
self._params['phaseShift'] = "no"
if self.resamplePix: # ctffind v4.1.5
if self.resamplePix: # ctffind >= v4.1.5
self._params['resamplePix'] = "yes"
else:
self._params['resamplePix'] = "no"
Expand Down Expand Up @@ -335,7 +335,7 @@ def _argsCtffind4(self):
%(maxDefocus)f
%(step_focus)f"""

if getVersion('CTFFIND4') == '4.1.5':
if getVersion('CTFFIND4') in ['4.1.5', '4.1.8']:
if self.findPhaseShift:
self._args += """
no
Expand Down Expand Up @@ -402,7 +402,7 @@ def _getCTFModel(self, defocusU, defocusV, defocusAngle, psdFile):

def _summary(self):
summary = em.ProtCTFMicrographs._summary(self)
if self.useCtffind4:
if self.useCtffind4 and getVersion('CTFFIND4') == '4.1.5':
summary.append("NOTE: ctffind4.1.5 finishes correctly (all output is generated properly),"
" but returns an error code. Disregard error messages until this is fixed."
"http://grigoriefflab.janelia.org/node/5421")
Expand Down

0 comments on commit 3699f6f

Please sign in to comment.