CLI Reference
powerfit
Documentation for the powerfit script.
powerfit --help
usage: powerfit [-h] [--version] [-nl] [-ncw] [-nr] [-rr <float>] [-nt]
[-tc <float>] [-c <char>] [-d <dir>]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--delimiter <str>] [-a <float>] [-n <int>]
[-g [[cuda:<device>|<platform>:<device>]]] [-p <int>]
[--progressbar] [--cpu-backend {py,rust,hybrid}]
[--batch-size <int>] [--report]
target resolution template
positional arguments:
target Target density map to fit the model in. Data should
either be in CCP4 or MRC format
resolution Resolution of map in angstrom
template Atomic model to be fitted in the density. Format
should either be PDB or mmCIF. Valid extensions are
.pdb, .ent, .cif, .pdb.gz, .ent.gz, .cif.gz
options:
-h, --help show this help message and exit
--version show program's version number and exit
-nl, --no-laplace Do not use the Laplace pre-filter density data.
(default: False)
-ncw, --no-core-weighted
Do not use core-weighted local cross-correlation
score. (default: False)
-nr, --no-resampling Do not resample the density map. (default: False)
-rr, --resampling-rate <float>
Resampling rate compared to Nyquist. (default: 2)
-nt, --no-trimming Do not trim the density map. (default: False)
-tc, --trimming-cutoff <float>
Intensity cutoff to which the map will be trimmed.
Default is 10 percent of maximum intensity. (default:
None)
-c, --chain <char> The chain IDs of the structure to be fitted. Multiple
chains can be selected using a comma separated list,
i.e. -c A,B,C. Default is the whole structure.
(default: None)
-d, --directory <dir>
Directory where the results are stored. (default: .)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set the logging level. (default: INFO)
--delimiter <str> Delimiter used in the 'solutions.out' file. For
example use ',' or '\t'. Defaults to fixed width.
(default: None)
-a, --angle <float> Rotational sampling density in degree. Increasing this
number by a factor of 2 results in approximately 8
times more rotations sampled. (default: 10)
-n, --num <int> Number of models written to file. This number will be
capped if less solutions are found as requested.
(default: 10)
-g, --gpu [[cuda:<device>|<platform>:<device>]]
Off-load the intensive calculations to the GPU. Use
--gpu for automatic backend selection, --gpu cuda:N
for CUDA device N, or --gpu P:D for OpenCL platform P
and device D. If omitted, does not use GPU. (default:
None)
-p, --nproc <int> Number of processors used during search. The number
will be capped at the total number of available
processors on your machine. (default: 1)
--progressbar Show a progress bar during the search (CPU only).
Enabling the progressbar may reduce performance.
(default: False)
--cpu-backend {py,rust,hybrid}
CPU correlator backend. 'py' uses pyFFTW + Rust
rotation kernel (default). 'rust' uses the pure-Rust
correlator (rustfft) — faster at high --nproc, slower
at low. 'hybrid' picks automatically based on --nproc.
Incompatible with --gpu. (default: py)
--batch-size <int> GPU batch size to use. Use 0 to disable batching
entirely, or a positive integer to force a specific
batch size. Applies to GPU backends (CUDA/OpenCL). If
set too high will cause out-of-memory errors.
(default: 100)
--report Generate a html report with Mol* 3D viewer of the
fitted models. (default: False)
powerfit-score
Documentation for the powerfit-score script.
powerfit-score --help
usage: powerfit-score [-h] [--version] [-ncw] [-rr <float>] [-nt]
[-tc <float>] [-l] [-r] [-c CHAIN] [--out OUT]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--delimiter DELIMITER]
target resolution structure
Score the supplied atomic coordinates against a density map, no rotations or
translations are done.
positional arguments:
target Input density map in CCP4 or MRC format.
resolution Map resolution in angstrom.
structure Structure at its current coordinates: PDB or mmCIF,
optionally gzip-compressed.
options:
-h, --help show this help message and exit
--version show program's version number and exit
-ncw, --no-core-weighted
Do not use core-weighted local cross-correlation
score. (default: False)
-rr, --resampling-rate <float>
Resampling rate compared to Nyquist. (default: 2)
-nt, --no-trimming Do not trim the density map. (default: False)
-tc, --trimming-cutoff <float>
Intensity cutoff to which the map will be trimmed.
Default is 10 percent of maximum intensity. (default:
None)
-l, --laplace Apply the Laplace pre-filter.
-r, --resample Resample the density map according to the resampling
rate.
-c, --chain CHAIN Chain IDs to score, separated by commas; default is
all chains. (default: None)
--out OUT Write the score CSV to this file; default is stdout.
Use - for stdout. (default: None)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Logging level. (default: INFO)
--delimiter DELIMITER
Output delimiter; default is CSV (comma-separated).
(default: ,)
Unlike powerfit, powerfit-score does not apply the Laplace pre-filter or
resample the density map by default. Use -l/--laplace and -r/--resample
to match powerfit's default preprocessing.
Even with matching settings, scores can differ from powerfit search results
because powerfit rotates precomputed density and mask grids, while
powerfit-score rebuilds them from the supplied atomic coordinates. Grid
interpolation and mask discretization can therefore change the score, even
for an exported fit. With -l/--laplace, scores can also differ when the
pose's mask reaches a target map boundary: powerfit uses periodic target
filtering, while powerfit-score treats density outside the target as zero.
This filtering difference does not affect interior poses.