Hi,
you might be looking at the wrong place.
The description of the filter is here:
You will find there equation de. Filter will ask for input in absolute frequency units, and the appropriate page
is linked under Input. You will find there equations to convert resolution to abs
freq.
There is a confusing comment by somebody there (Steve?). It follows from an unfortunate convention selected
for EMAN2.
Vast majority of low-pass filters require two parameters and there are two choices how to do it:
1. (stop band, pass band) - meaning frequencies at which the filter drops below certain value (ideally one, more often
something arbitrarily chose), and frequency at which the filter seizes to be higher than selected value (ideally one, usually
arbitrarily chosen). Example is a Butterworth filter
2. (cut-off, fall-off) - first is the frequency at which filter value is 0.5 and the "width" of the filter around this
value, again arbitrarily chosen levels, as above. This convention makes more sense for EM as cut-off is simply
the resolution specified by FSC at 0.5 cut-off value. Example is tangent
A notable exception is Gaussian filter, which is characterized by just one parameter, cut-ft value, but it is often
unclear what this cut-off is. Often it is not specified whether it means value of 0.5 or half-width or whatever.
Gaussian filter should be avoided at all cost at it never drops reasonably close to zero.
Bandpass filter will be characterized by at least FOUR parameters (not two as stated somewhere), as one has to specify
two pairs of values. Bandpass filters start from zero at freq 0 , then rise to one, and drop to zero again. See
for details.
Again, an exception is a Gaussian bandpass filter which indeed is specified by two values
As a low-pass filter should resemble the FSC curve, one has two choices:
1. simply get 0.5 freq from the FSC curve and measure from it a fall-off value (distance between 0.9 and 0.1 values, for example).
2. for "regular" fsc curve (meaning not jittery) there are functions that wild o the job for you:
fit_tanh(dres, low=0.1)
dres - list produced by the fsc funcion
dres[0] - absolute frequencies
dres[1] - fsc, because it was calculated from the dataset split into halves, convert it to full using rn = 2r/(1+r)
dres[2] - number of point use to calculate fsc coeff
low cutoff of the fsc curve
return parameters of the tanh filter: freq - cutoff frequency at which filter value is 0.5, and fall_off, the 'width' of the filter
or
fit_tanh1(dres, low=0.1)
dres - list
produced by the fsc funcion
dres[0] - absolute frequencies
dres[1] - fsc, to be conservative, do not use factor of 2.
dres[2] - number of point use to calculate fsc coeff
low cutoff of the fsc curve
return parameters of the tanh filter: freq - cutoff frequency at which filter value is 0.5, and fall_off, the 'width' of the filter
Second more "conservative".
The easiest approach is to use the selected filter using sparx command line.
Otherwise, lowpass tangent filter tilt_tanl is available through:
e2proc3d.py tmp.hdf ../model_structure.hdf --process=filter.lowpass.tanh:cutoff_abs=0.45:fall_off=0.1
There is much more on various filters on SPARX wiki pages.
Pawel.