CCPEM Pipeliner
Guide

CCP-EM Jobs: Model Building and Refinement

CCP-EM jobs for docking, model building, refinement, ligands and restraints


Overview

This page documents the CCP-EM model-building and refinement job types registered in ccpem-pipeliner. These jobs cover the full downstream modelling pipeline: docking atomic models into density maps, automated and manual model building, atomic structure refinement, restraint generation for ligands and metals, and model utility operations such as format conversion and domain splitting. No CCP-EM job supports continuation — if you need to re-run one, schedule it as a new job with updated parameters.


Usage

All jobs described here are registered under the ccpem_pipeliner.jobs entry-point group and are discovered automatically when pipeliner starts. You interact with them through the Python API (PipelinerProject) or the CLI (pipeliner --run_job).

Important constraints that apply to every CCP-EM job on this page:

  • can_continue is False for all CCP-EM jobs. Calling PipelinerProject.get_continuation_job() on any of these jobs raises NotImplementedError. To extend a run, schedule a new job.
  • Job option values are set via the .value property on each JobOption object (e.g., job.joboptions["resolution"].value = 3.2).
  • Parameters dicts passed to run_job() or schedule_job() use option keys (e.g., "input_model"), not option labels (e.g., "Input model").
  • run_job() with run_in_foreground=False (the default) returns immediately; use wait_for_job_to_finish() to block until completion before scheduling dependent downstream jobs.

Typical scripting pattern:

import os
os.chdir("/path/to/my/project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import job_default_parameters_dict, write_default_jobstar, edit_jobstar

proj = PipelinerProject()

From there you can either pass a parameters dict directly to run_job(), or generate a job.star template with write_default_jobstar(), edit it with edit_jobstar(), and pass the resulting file path to run_job().

Checking availability:

If a required external program is missing, the job loads normally but job.jobinfo.is_available is False and job.jobinfo.unavailable_message explains which executable was not found. You can still schedule such a job via the API; it will fail at execution time when the command runs.

Run pipeliner.check_setup to see which programs are found on your system.


Docking jobs

em_placement.atomic_model_fit — EMPlacement

Docks an atomic model into a cryo-EM map using a likelihood target (Phaser EM Placement). Requires CCP4 ≥ 9.0.009 (also works with 9.0.003 and 9.0.004; versions 9.0.005–9.0.008 are broken).

Key optionTypeRequiredDescription
modelInputNodeyesModel to dock (.cif, .pdb, .ent)
input_map1InputNodeyesFirst half map (.mrc, .map)
input_map2InputNodeyesSecond half map (.mrc, .map)
best_resolutionFloatyesBest resolution of the full map (Å)
use_reference_structureBooleannoEstimate composition from a reference model rather than a FASTA file
sequenceInputNodeconditionalFASTA sequence (required when use_reference_structure=False)
reference_structureInputNodeconditionalComposition model (required when use_reference_structure=True)
fixed_modelInputNodenoModel fixed in the map; its region is masked from the search
symmetryStringnoPoint group symmetry (e.g., C4, D2, O)
estimated_rmsdFloatyesExpected RMSD; 1.0 for identical, 1.2 for AlphaFold (default 1.2)

Output nodes are created after the job runs (create_post_run_output_nodes): top_model*.pdb and *.map files.

External program: em_placement (resolved via ccp4-python installation path).


emplace_local.atomic_model_fit — EMPlace Local

Docks a model into a user-defined local region of a cryo-EM map. Requires the same CCP4 version constraints as em_placement.atomic_model_fit.

Key optionTypeRequiredDescription
modelInputNodeyesModel to dock (.cif, .pdb, .ent)
input_map1InputNodeyesFirst map or full map
use_halfmapsBooleannoUse half maps for docking (default True)
input_map2InputNodeconditionalSecond half map (required when use_halfmaps=True)
resolutionFloatyesResolution of full map (Å)
centre_x, centre_y, centre_zFloatyesCentre of the local search sphere (Å)
starting_model_vrmsFloatyesExpected VRMS; 1.0 for identical, 1.2 for AlphaFold (default 1.2)

Output nodes are created post-run: top_model*.pdb and *.map files.

External program: emplace_local (resolved via ccp4-python).


molrep.atomic_model_fit — Molrep

Fits one or more atomic models into a cryo-EM map using molecular replacement (SAPTF or RTF method). Requires CCP4.

Key optionTypeRequiredDescription
input_mapInputNodeyesCryoEM map (.mrc, .map)
input_modelInputNodeyesSearch model (.cif, .pdb, .ent)
modeMultipleChoicenoSAPTF (default RTF)
copiesIntyesNumber of copies to find (default 1)
subunitsIntyesMonomers in search model (default 1)
fixed_modelInputNodenoModel fixed during search
rotation_peaksIntyesRotation function peaks to use (default 1)
translation_peaksIntyesTranslation function peaks to use (default 1)

Validation: rotation_peaks must be ≥ copies. A warning is raised if the input map has a non-zero origin record (Molrep ignores it; use the Model Shift job to correct afterward).

Outputs: molrep.pdb and molrep.cif (both NODE_ATOMCOORDS).

External program: molrep.


Model-building jobs

modelcraft.atomic_model_build — ModelCraft

Automated atomic model building using Buccaneer (protein) and Nautilus (nucleic acids). Requires ModelCraft version 5+ and CCP4.

Key optionTypeRequiredDescription
input_map1InputNodeyesHalf map 1 or full map
input_half_map2InputNodenoHalf map 2 (recommended)
input_build_mapInputNodenoOptimally sharpened map for building (ModelCraft 5+)
resolutionFloatyesHigh-resolution limit (Å)
input_seqInputNodeyesFASTA or PIR sequence file
input_maskInputNodeconditionalMap mask; required if half maps are not provided and emda is absent
input_modelInputNodenoStarting model (predicted or partial)
ncycleIntnoMaximum build-refine cycles (default 25)
auto_stop_cyclesIntnoCycles without FSC improvement before stopping (default 4)
lib_inInputNodenoLigand restraint dictionary (.cif) for non-standard ligands

If no mask is provided and emda is on PATH, a mask is generated automatically. If emda is absent and no mask is given, an error is raised at scheduling time.

Thread parallelism is supported via nr_threads (added by get_runtab_options(threads=True)).

Output: modelcraft.cif (NODE_ATOMCOORDS).

External program: modelcraft (configurable via PIPELINER_MODELCRAFT_EXECUTABLE; default modelcraft).


process_predicted_model.atomic_model_utilities — Process Predicted Model

Processes AlphaFold2 (or similar) predicted models using mmtbx.process_predicted_model. Replaces pLDDT values in the B-factor column with estimated B-values, removes low-confidence residues, and optionally splits the model into compact domains.

Key optionTypeRequiredDescription
modelInputNodeyesPredicted model in .pdb format
remove_low_confidence_residuesBooleannoRemove residues with low pLDDT (default True)
split_model_by_compact_regionsBooleannoSplit into compact subdomains (default True)
max_domainsIntnoMaximum domains to obtain (default 3)
domain_sizeFloatnoApproximate domain size in Å (default 70; max 70)

Output nodes are created post-run: all *_processed*.pdb and *_processed*.cif files in the output directory.

External program: mmtbx.process_predicted_model.


Refinement jobs

servalcat.atomic_model_refine — Servalcat Refine

Atomic model refinement against cryo-EM maps using Servalcat in refine_spa_norefmac mode. Requires Servalcat ≥ 0.4.88 (from CCP4 ≥ 9.0.005 or installed separately).

Key optionTypeRequiredDescription
input_modelInputNodeyesModel to refine (.cif, .mmcif, .pdb)
input_ligandMultiInputNodenoCIF restraint files for non-standard ligands
resolutionFloatyesResolution in Å
half_map_refinementBooleannoUse half maps (default True; strongly recommended)
input_map1InputNodeyesHalf map 1 or full map
input_half_map2InputNodeconditionalHalf map 2 (required when half_map_refinement=True)
input_maskInputNodenoMask for Fo-Fc map normalisation
n_cycleIntyesRefinement cycles (default 20)
how_use_hydrogensMultipleChoicenoHydrogen handling: Generate hydrogen atoms (default), Use only hydrogen atoms present in model, Remove if present
write_hydrogensBooleannoWrite hydrogen atoms in output (default False)
point_groupStringyesPoint group symmetry (default C1); must match Cn/Dn/I/O/T pattern
helical_symmetryBooleannoApply helical symmetry (default False)
helical_twistFloatconditionalHelical twist in ° (required when helical_symmetry=True)
helical_riseFloatconditionalHelical rise in Å (required when helical_symmetry=True)
auto_symmetryBooleannoLocal NCS restraints (default True)
auto_weightBooleannoAuto-determine data/restraints weight (default True)
weightFloatconditionalManual weight (active when auto_weight=False; default 1.0)
unrestrainedBooleannoUnrestrained refinement
masked_refinementBooleannoTrim map to model before refinement (default True)

Outputs: refined.mmcif and refined.pdb (NODE_ATOMCOORDS), plus version-dependent map and structure factor files.

External program: servalcat.


refmac_servalcat.atomic_model_refine — Refmac Servalcat (deprecated)

Older REFMAC5-based refinement wrapped by Servalcat. Superseded by servalcat.atomic_model_refine. Retained for backward compatibility but will be removed in a future version.

Key optionTypeRequiredDescription
input_modelInputNodeyesModel to refine (.cif, .pdb)
input_ligandMultiInputNodenoLigand restraint files
resolutionFloatyesResolution in Å
input_map1InputNodeyesHalf map 1 or full map
half_map_refinementBooleannoUse half maps (default True)
input_half_map2InputNodeconditionalHalf map 2
input_maskInputNodenoMask for map normalisation
n_cycleIntyesRefinement cycles (default 20)
point_groupStringyesPoint group symmetry (default C1)
nucleotide_restraintsBooleannoLIBG nucleic acid restraints (default False)
jelly_bodyBooleannoJelly-body restraints (default True)
b_factorFloatyesReset B-factors to this value (default 40.0)
use_hydrogensMultipleChoicenoAll (default), Yes, No
auto_weightBooleannoAuto weight (default True)
masked_refinementBooleannoMasked refinement (default True)

External programs: servalcat, refmac5, gemmi.


flex_em.atomic_model_refine — Flex-EM

Fitting and flexible refinement of atomic structures guided by cryo-EM density using Flex-EM and Modeller. Waters and ligands are automatically removed from the input model. Requires CCP-EM v1 (ccpem-python on PATH).

Key optionTypeRequiredDescription
input_modelInputNodeyesModel to refine (.cif, .pdb)
resolutionFloatyesResolution in Å
input_mapInputNodeyesCryoEM map (.mrc, .map)
iterationsIntyesFlex-EM iterations (default 3)
auto_ribfindBooleannoAuto-create rigid bodies with Ribfind (default True)
ribfind_rigid_body_fileInputNodeconditionalRibfind rigid body file (required when auto_ribfind=False)
phi_psi_restraintsBooleannoUse phi/psi restraints (default True)
density_weightFloatyesDensity weight 0–1 (default 1.0)

Outputs: 1_MD/final1_mdcg.pdb and 1_MD/final1_mdcg.cif (both NODE_ATOMCOORDS).

External programs: mkdssp, ccpem-ribfind, ccpem-flex-em, gemmi.


Ligand and restraint jobs

acedrg.create_ligand — AceDRG

Generates stereochemical restraint dictionaries for ligands. Accepts one of: SMILES string, SMILES file, SDF/MOL file, MOL2 file, or monomer CIF file. Only one input type may be provided per job.

Key optionTypeRequiredDescription
smiles_stringStringconditionalSMILES string
smiles_fileInputNodeconditionalSMILES file (.smi)
mol_fileInputNodeconditionalSDF or MDL mol file
mol2_fileInputNodeconditionalMol2 file
mmcif_fileInputNodeconditionalMonomer CIF file
monomer_codeStringnoMonomer code (default LIG)
has_metalBooleannoMonomer contains a metal atom (default False)
metal_structureInputNodeconditionalMetal complex structure (recommended when has_metal=True)
do_prot_changesBooleannoAllow protonation changes (default True)
use_coordsBooleannoUse input conformation (default False; inactive for SMILES inputs)

Outputs: <monomer_code>_acedrg.cif (NODE_LIGANDDESCRIPTION) and <monomer_code>_acedrg.mmcif (NODE_ATOMCOORDS).

External program: acedrg.


metalcoord.create_restraints — MetalCoord

Generates restraints for metal coordination sites using MetalCoord.

Key optionTypeRequiredDescription
input_modelInputNodeyesAtomic model containing a metal site (.cif, .mmcif, .pdb)
all_monomersBooleannoApply to all metal-containing monomers (default True)
ligandStringconditionalMonomer code for a single metal-containing monomer (required when all_monomers=False; 1–5 characters)
linksMultipleChoicenoHow to update link records (default: Keep existing link records and add new ones)
distanceFloatnoDistance threshold for atom selection (default 0.5)
coordinationIntnoMaximum coordination number (default 42)
thresholdFloatnoProcrustes distance threshold (default 0.3)
min_sizeIntnoMinimum sample size (default 30)
use_pdbBooleannoUse COD structures based on model (default False)
ideal_angles_onlyBooleannoOnly bond angles in output (default False)
simple_filteringBooleannoSimple distance-based filtering (default False)

Outputs: metalcoord_output.txt (NODE_RESTRAINTS). When links is not Do not alter existing link records, also outputs metalcoord_output.mmcif and metalcoord_output.pdb (NODE_ATOMCOORDS).

External program: metalCoord.


prosmart.create_restraints — ProSMART

Generates external structural restraints for protein or nucleic acid chains using ProSMART, for use in downstream refinement with Servalcat.

Key optionTypeRequiredDescription
input_modelInputNodeyesTarget model (.cif, .mmcif, .pdb)
all_chainsBooleannoGenerate restraints for all chains (default True)
chainsStringconditionalSpace-separated chain IDs (required when all_chains=False)
actionMultipleChoicenoRestraint type: based on reference model(s) (default), for backbone hydrogen-bonds (protein only), self-restraints
reference_modelsMultiInputNodeconditionalReference homologous models (active when action is reference-based)
macromol_typeMultipleChoiceconditionalProtein (default) or Nucleic acid
seqid_minFloatnoMinimum sequence identity % (default 75)
only_similarBooleannoUse only most similar chain (default False)
side_chainBooleannoInclude side-chain restraints (default True)

Output: prosmart/<input_model_stem>.txt (NODE_RESTRAINTS).

External program: prosmart.


Model utility jobs

servalcat.map_utilities.trim — Servalcat Trim

Trims maps to a smaller box using a mask or atomic model as a guide, and shifts atomic models to align with the trimmed box. Saves trim/shift parameters for later use.

Key optionTypeRequiredDescription
input_mapsMultiInputNodenoMaps to trim (.mrc)
maskInputNodeconditionalMask to define trimming extent (required if no models and no shifts_json)
input_modelsMultiInputNodeconditionalModels to shift (required if no mask and no shifts_json)
paddingFloatyesPadding around mask/model in Å (default 10.0)
mask_thresholdFloatyesMask boundary threshold (default 0.5)
noncubicBooleannoAllow non-cubic trimmed box (default True)
noncenteredBooleannoAllow non-centred trimming (default True)
do_shiftBooleannoShift maps and models (default True)
shifts_jsonInputNodenoPre-calculated shift parameters from a prior Trim job

Outputs: trimmed maps (*_trimmed.mrc, NODE_DENSITYMAP), trimmed mask (*_trimmed.mrc, NODE_MASK3D), trimmed models (NODE_ATOMCOORDS), and trim_shifts.json (NODE_PROCESSDATA) when no shifts_json input is provided.

External program: servalcat.


slicendice.atomic_model_split — Slice

Slices atomic models into sub-domains with configurable clustering methods and B-factor–based trimming options.

Key optionTypeRequiredDescription
input_modelMultiInputNodeyesInput model(s) (.cif, .pdb)
bfactor_columnMultipleChoicenoB-factor column format: pLDDT (default), RMS, Fractional pLDDT, Predicted B-factor, B-factor, None
clustering_methodMultipleChoicenoClustering method: Birch (default), Agglomerative, dbscan, kMeans, MeanShift, Optics, PAE Clustering
minimum_splitsIntyesMinimum splits (default 3)
maximum_splitsIntyesMaximum splits (default 3)
xyz_split_listMultiStringconditionalComma-separated split counts per model (required for multiple input models)
plddt_thresholdIntnopLDDT threshold for trimming (default 70; active when bfactor_column=pLDDT)
pae_fileInputNodeconditionalPAE JSON or pkl file (required when clustering_method=PAE Clustering)
pae_methodMultipleChoiceconditionalnetworkx (default) or igraph
pae_cutoffIntnoPAE cutoff for edge creation (default 5)

Output: slicendice_0/slicendice.log (NODE_LOGFILE). Additional model output nodes are created post-run.

External program: slicendice.


gemmi.atomic_model_utilities.process_model — Gemmi Process Model

Processes and inter-converts atomic models between mmCIF and PDB formats using Gemmi. Supports atom selection, chain renaming, B-factor resetting, removal of hydrogens/waters/ligands, and sequence assignment.

Key optionTypeRequiredDescription
modelInputNodeyesInput model (.cif, .mmcif, .pdb, .ent)
convert_onlyBooleannoJust convert format, no processing (default False)
output_formatMultipleChoicenommCIF (default) or PDB
shorten_chainBooleannoShorten chain names (default True)
out_filenameStringnoCustom output filename
model_selectionStringnoAtom selection string (format: /models/chains/residues/atoms)
reset_bBooleannoReset isotropic B-factors (default False)
reset_b_valFloatconditionalNew B-factor value (required when reset_b=True)
rename_chainStringnoRename chain: OLD:NEW format
assign_sequenceInputNodenoSequence file for assignment (FASTA/PIR)
remove_selectionStringnoAtom selection to remove
remove_hBooleannoRemove hydrogens (default False)
remove_ligands_watersBooleannoRemove ligands and waters (default False)
remove_watersBooleannoRemove waters only (default False)
remove_anisouBooleannoRemove ANISOU records (default False)
trim_to_alaBooleannoTrim side chains to alanine (default False)

Output nodes are created post-run based on the selected format and filename.

External program: gemmi.


ccpem_utils.atomic_model_utilities.shift_origin_nstart — Model Shift

Translates atomic models based on a reference map's origin or nstart header record, or by an explicit (x, y, z) vector in Å. Useful when a tool ignores or misapplies map origin records.

Key optionTypeRequiredDescription
input_modelsMultiInputNodeyesModels to shift (.cif, .pdb, .ent)
reference_mapInputNodenoReference map to extract origin/nstart from
origin_or_nstartMultipleChoiceconditionalorigin (default) or nstart (active when reference_map is set)
shift_nonzeroBooleanconditionalShift forward by origin/nstart (default True)
shift_zeroBooleanconditionalShift back by origin/nstart (default False)
trans_x, trans_y, trans_zFloatconditionalTranslation vector in Å (active when no reference_map)

Exactly one of shift_nonzero or shift_zero must be True. Either a reference_map or a non-zero translation vector must be provided.

Outputs: <model_stem>_shifted<ext> files (NODE_ATOMCOORDS).


Validation jobs

pipeliner.atomic_model_validation — Atomic Model Validation

Validates protein atomic model quality and map agreement using multiple methods: Molprobity (geometry), Servalcat FSC (model-map FSC), TEMPy SMOC (per-residue local fit), FDR backbone (local backbone trace), and CheckMySequence (sequence agreement).

Key optionTypeRequiredDescription
input_modelInputNodeyesModel to validate (.cif, .pdb, .ent)
quick_evalBooleannoQuick evaluation using only Molprobity clashes and TEMPy SMOC (default False)
run_molprobityBooleannoRun Molprobity geometry evaluation
run_fscBooleannoRun Servalcat model-map FSC
run_globBooleannoRun TEMPy global real-space fit
run_smocBooleannoRun TEMPy SMOC per-residue fit
run_fdrBooleannoRun FDR backbone trace evaluation
run_checkmysequenceBooleannoRun CheckMySequence
input_mapInputNodeconditionalInput map (required for TEMPy and FDR metrics)
resolutionFloatconditionalMap resolution in Å (required for TEMPy global and SMOC)
input_halfmap1, input_halfmap2InputNodeconditionalHalf maps for FSC calculations
input_maskInputNodeconditionalMap mask for FSC and TEMPy global
input_fdrmapInputNodeconditionalFDR confidence map
input_sequenceInputNodeconditionalSequence file for CheckMySequence
input_contourBooleannoInput contour threshold? (default False)
contourlevelFloatnoContour level (default -100.0)

External program: gemmi. Additional programs (molprobity.molprobity, servalcat, TEMPy.scores, TEMPy.smoc) are required for the respective metrics.


For the MolProbity geometry-only validation job, see molprobity.atomic_model_validation.geometry. For TEMPy map-fit scoring, see tempy.atomic_model_validation.map_fit. Both are separate registered job types.


Examples

Example 1: Run Servalcat refinement from a parameters dict

import os
os.chdir("/data/my_spa_project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import job_default_parameters_dict

proj = PipelinerProject()

params = job_default_parameters_dict("servalcat.atomic_model_refine")
params["input_model"] = "ModelCraft/job005/modelcraft.cif"
params["input_map1"] = "PostProcess/job004/postprocess_half1.mrc"
params["input_half_map2"] = "PostProcess/job004/postprocess_half2.mrc"
params["resolution"] = "3.2"
params["half_map_refinement"] = "Yes"
params["n_cycle"] = "25"
params["point_group"] = "C1"

job = proj.run_job(params, run_in_foreground=True)
print(job.output_dir)  # e.g. ServalcatRefine/job006/

Example 2: Generate a job.star file, edit it, then run ModelCraft

import os
os.chdir("/data/my_spa_project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import write_default_jobstar, edit_jobstar

proj = PipelinerProject()

# Write a default job.star template for ModelCraft
template = write_default_jobstar("modelcraft.atomic_model_build")
# template == 'modelcraft_atomic_model_build_job.star'

# Edit the template to set required inputs.
# No input_mask is set here, so emda must be on PATH to make the mask
# automatically; otherwise add "input_mask" (e.g. "MaskCreate/job002/mask.mrc")
# or run_job raises ValueError ("... Input mask not provided and 'emda' is not
# available in the system PATH ...")
edited = edit_jobstar(
    template,
    {
        "input_map1": "PostProcess/job004/postprocess_half1.mrc",
        "input_half_map2": "PostProcess/job004/postprocess_half2.mrc",
        "input_seq": "FetchFasta/job001/sequence.fasta",
        "resolution": "3.5",
    },
    "modelcraft_edited.job.star",
)

job = proj.run_job(edited, run_in_foreground=True)

Example 3: Dock a model with EMPlacement, then wait for completion

import os
os.chdir("/data/my_spa_project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import job_default_parameters_dict

proj = PipelinerProject()

params = job_default_parameters_dict("em_placement.atomic_model_fit")
params["model"] = "FetchAlphaFold/job001/AF-P12345-F1-model_v4.pdb"
params["input_map1"] = "Refine3D/job003/run_half1_class001_unfil.mrc"
params["input_map2"] = "Refine3D/job003/run_half2_class001_unfil.mrc"
params["best_resolution"] = "3.1"
params["sequence"] = "FetchFasta/job002/sequence.fasta"
params["estimated_rmsd"] = "1.2"

job = proj.run_job(params)  # launches in background
final_status = proj.wait_for_job_to_finish(job, error_on_fail=True)
# Proceed to refinement only after docking succeeds

Example 4: Generate AceDRG ligand restraints from a SMILES string

import os
os.chdir("/data/my_spa_project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import job_default_parameters_dict

proj = PipelinerProject()

params = job_default_parameters_dict("acedrg.create_ligand")
params["smiles_string"] = "CC(=O)Oc1ccccc1C(=O)O"  # aspirin
params["monomer_code"] = "ASP"
params["do_prot_changes"] = "Yes"

job = proj.run_job(params, run_in_foreground=True)
# Outputs: AceDRG/job007/ASP_acedrg.cif and AceDRG/job007/ASP_acedrg.mmcif

Example 5: Check job availability before scheduling

from pipeliner.job_factory import new_job_of_type

job = new_job_of_type("molrep.atomic_model_fit")
if not job.jobinfo.is_available:
    print(job.jobinfo.unavailable_message)
else:
    print("Molrep is available")

Example 6: Trim maps and models after refinement

import os
os.chdir("/data/my_spa_project")

from pipeliner.api.manage_project import PipelinerProject
from pipeliner.api.api_utils import job_default_parameters_dict

proj = PipelinerProject()

params = job_default_parameters_dict("servalcat.map_utilities.trim")
params["input_maps"] = (
    "PostProcess/job004/postprocess_half1.mrc"
    ":::PostProcess/job004/postprocess_half2.mrc"
)
params["input_models"] = "ServalcatRefine/job006/refined.mmcif"
params["mask"] = "MaskCreate/job002/mask.mrc"
params["padding"] = "10.0"
params["noncubic"] = "Yes"

job = proj.run_job(params, run_in_foreground=True)

Note: When providing multiple values for a MultiInputNode option in a parameters dict, join them with ::: (triple colon), which is the separator used by pipeliner for multi-value options in star and run.job files.