PAM CLI Parameters

This page is generated from the PAM CLI option metadata in src/pam/setup/config.jl. Use options as --name=value; positional arguments are not supported.

The listed defaults are the base defaults. scripts/run_pam.jl applies a few model-aware overrides after parsing:

  • --dimension=3 defaults to --source-model=point, 3D coordinates, coarser dy/dz, and shorter t-max-us unless those options are provided.
  • --source-model=point defaults to coherent phase, narrower receiver aperture, shorter duration, and --recon-bandwidth-khz=0.
  • 3D squiggle and network runs default to windowed-friendly reconstruction settings such as --recon-bandwidth-khz=40, --recon-window-us=40, and --recon-hop-us=20.

For practical guidance, start with Running PAM before tuning individual parameters.

General

OptionDefaultValueApplies toChoicesDescription
--dimension22|3PAM2, 3Selects the 2D or 3D PAM workflow.
--source-modelsquigglepoint|squiggle|networkPAMpoint, squiggle, networkSelects explicit point sources, a squiggly vascular source, or a synthetic 3D network.
--from-run-dirpath2D reconstruction onlyLoads RF data, medium, grid, and sources from a previous output directory and reruns reconstruction/analysis only.
--random-seed42integerPAMSeed used for stochastic phases, source placement jitter, and generated vascular/network geometry.
--benchmarkfalseboolPAMPrints additional timing information from simulation and reconstruction.

Source geometry

OptionDefaultValueApplies toChoicesDescription
--sources-mm30:0depth:lateral[,depth:lateral] or depth:y:zpointPoint source coordinates in millimeters. 2D uses depth:lateral; 3D uses depth:y:z.
--anchors-mm45:0depth:lateral[,depth:lateral] or depth:y:zsquiggle, networkAnchor coordinates for generated vascular or network activity. 2D uses depth:lateral; 3D uses depth:y:z.
--transducer-mm-30:0depth:lateral2D squiggleReference transducer position used when computing geometric source phases in 2D.

Source signal

OptionDefaultValueApplies toChoicesDescription
--frequency-mhz0.4MHzpointTone-burst frequency for point sources unless per-source frequencies are supplied.
--fundamental-mhz0.5MHzsquiggle, networkFundamental activity frequency. Harmonic frequencies are integer multiples of this value.
--amplitude-pa1.0pressurePAMDefault pressure amplitude for generated sources.
--source-amplitudes-pacomma listpointOptional per-point-source amplitudes. Use one value for all sources or one value per source.
--source-frequencies-mhzcomma listpointOptional per-point-source frequencies in MHz. Use one value for all sources or one value per source.
--phases-degcomma listpointOptional per-point-source phases in degrees before phase-mode randomization.
--delays-us0comma listPAMEmission delays in microseconds. Use one value for all sources or one value per coordinate/anchor.
--num-cycles4integerpointNumber of cycles in each point-source tone burst.
--harmonics2,3,4comma listsquiggle, networkHarmonic orders emitted by generated bubble activity.
--harmonic-amplitudes1.0,0.6,0.3comma listsquiggle, networkRelative amplitude for each harmonic listed in –harmonics.
--gate-us50microsecondssquiggle, networkDuration of each activity emission gate.
--taper-ratio0.25fractionsquiggle, networkTukey taper fraction applied to generated activity gates.
--phase-modegeometriccoherent|random|jittered|geometricPAMcoherent, random, jittered, geometricControls initial source phases. Point sources accept coherent, random, and jittered; generated activity also uses geometric travel-time phases.
--phase-jitter-rad0.2radiansPAMStandard deviation for jittered source phases.
--source-phase-moderandom_phase_per_windowcoherent|randomstaticphase|randomphaseper_windowPAMcoherent, random_static_phase, random_phase_per_windowControls whether source phases are fixed or redrawn across reconstruction windows.
--frequency-jitter-percent1percentsquiggle, networkMultiplicative jitter applied to generated source fundamentals before harmonics are formed.

Vascular source

OptionDefaultValueApplies toChoicesDescription
--vascular-length-mm12mmsquiggleLength of the generated squiggle centerline for each anchor.
--vascular-squiggle-amplitude-mm1.5mmsquiggleLateral squiggle amplitude in 2D, or y-amplitude in 3D.
--vascular-squiggle-amplitude-x-mm1.0mm3D squiggleDepth-direction squiggle amplitude for 3D vascular sources.
--vascular-squiggle-wavelength-mm8mmsquiggleSpatial wavelength of the generated squiggle path.
--vascular-squiggle-slope0.0slopesquiggleLinear slope added to the generated squiggle path.
--squiggle-phase-x-deg90degrees3D squigglePhase offset for the 3D depth-direction squiggle component.
--vascular-source-spacing-mm0.5mmsquiggle, networkApproximate spacing between sampled bubble emitters along generated centerlines.
--vascular-position-jitter-mm0.05mmsquiggleRandom position jitter applied when sampling vascular sources.
--vascular-min-separation-mm0.25mmsquiggle, networkMinimum allowed distance between generated bubble emitters.
--vascular-max-sources-per-anchor0integersquiggleCaps generated sources per anchor. A value of 0 disables the cap.

Analysis

OptionDefaultValueApplies toChoicesDescription
--vascular-radius-mm1.0mmsquiggle, networkTruth radius used when scoring activity detection around generated sources.
--peak-suppression-radius-mm8.0mmPAMRadius used to suppress neighboring peaks during localization analysis.
--success-tolerance-mm1.5mmPAMLocalization error threshold used when reporting success.
--axial-gain-power1.5power3DDepth-gain exponent applied in 3D analysis/visualization.
--analysis-modeautoauto|localization|detectionPAMauto, localization, detectionSelects localization or activity-detection metrics. Auto uses detection for squiggle/network sources.
--detection-threshold-ratio0.2ratiodetectionSingle threshold ratio used by basic detection analysis.
--boundary-threshold-ratios0.5,0.55,0.6,0.65,0.7,0.75comma listdetectionThreshold ratios used for boundary overlays and threshold sweeps.
--auto-threshold-searchtruebooldetectionSearches a dense threshold range and selects representative detection thresholds.
--auto-threshold-min0.10ratiodetectionMinimum threshold ratio for automatic threshold search.
--auto-threshold-max0.95ratiodetectionMaximum threshold ratio for automatic threshold search.
--auto-threshold-step0.01ratiodetectionThreshold ratio spacing for automatic threshold search.

Network source

OptionDefaultValueApplies toChoicesDescription
--network-axial-radius-mm10.0mm3D networkAxial radius of the ellipsoid used to clip generated network activity.
--network-lateral-y-radius-mm1.5mm3D networkY radius of the generated network ellipsoid.
--network-lateral-z-radius-mm1.5mm3D networkZ radius of the generated network ellipsoid.
--network-root-count12integer3D networkNumber of root branches grown for each network center.
--network-generations3integer3D networkNumber of branching generations in the synthetic network.
--network-branch-length-mm5.0mm3D networkNominal length of each generated branch segment.
--network-branch-step-mm0.4mm3D networkSampling step along generated network branches.
--network-branch-angle-deg36degrees3D networkNominal branching angle for synthetic network growth.
--network-tortuosity0.18fraction3D networkStrength of random branch curvature in the synthetic network.
--network-orientationisotropicisotropic|horizontal|axial3D networkisotropic, horizontal, axialOrientation prior for generated network branches.
--network-density-sigma-mm0mm3D networkOptional isotropic Gaussian density sigma. A value of 0 uses the anisotropic sigma options.
--network-density-axial-sigma-mm10.0mm3D networkAxial Gaussian density sigma for network source sampling.
--network-density-lateral-y-sigma-mm1.5mm3D networkY Gaussian density sigma for network source sampling.
--network-density-lateral-z-sigma-mm1.5mm3D networkZ Gaussian density sigma for network source sampling.
--network-max-sources-per-center80integer3D networkCaps generated sources per network center. Values <= 0 disable the cap.

Grid

OptionDefaultValueApplies toChoicesDescription
--axial-mm80mmPAMRequested axial domain depth. The runner may extend this to fit sources and time of flight.
--transverse-mm102.4mmPAMDefault lateral domain width. In 3D this seeds y and z widths unless overridden.
--transverse-y-mmmm3DOverrides the 3D y-width when set.
--transverse-z-mmmm3DOverrides the 3D z-width when set.
--dx-mm0.2mmPAMAxial grid spacing.
--dy-mmmm3D3D y grid spacing. Defaults to –dz-mm when omitted.
--dz-mm0.2mmPAM2D lateral spacing or 3D z spacing.
--t-max-us500microsecondsPAMRequested simulation duration. The runner may extend this when needed to capture source arrivals.
--dt-ns20nanosecondsPAMSimulation time step.
--zero-pad-factor4integerPAMLateral FFT zero-padding factor used by ASA/HASA reconstruction.
--bottom-margin-mm10mmPAMMinimum margin below the deepest source when auto-fitting the PAM domain.

Receiver

OptionDefaultValueApplies toChoicesDescription
--receiver-aperture-mmfullmm|fullPAMReceiver aperture width. Use full, all, or none to use the whole receiver plane.
--receiver-aperture-y-mmmm|full3DOverrides the 3D receiver aperture in y.
--receiver-aperture-z-mmmm|full3DOverrides the 3D receiver aperture in z.

Medium

OptionDefaultValueApplies toChoicesDescription
--aberratornonenone|water|skullPAMnone, water, skullSelects homogeneous water/no aberrator or a CT-derived skull medium.
--ct-path/home/runner/Desktop/OBJ_0001pathskullPath to the private DICOM folder used for CT-backed skull media.
--slice-index250integerskullCT slice index used when building the skull medium.
--skull-transducer-distance-mm30mmskullDistance from the receiver/transducer plane to the outer skull surface.
--hu-bone-thr200HUskullHounsfield-unit threshold used to identify bone in CT data.

Simulation

OptionDefaultValueApplies toChoicesDescription
--simulation-backendkwavekwave|analyticPAMkwave, analyticForward model backend. CT skull runs require k-Wave.
--kwave-use-gputrueboolk-WavePasses GPU execution to k-Wave where supported.

Reconstruction

OptionDefaultValueApplies toChoicesDescription
--recon-use-gputrueboolPAMUses the CUDA.jl reconstruction backend. 3D reconstruction currently requires this to be true.
--recon-bandwidth-khz500kHzPAMHalf-width bandwidth used to select frequency bins around reconstruction frequencies. Use 0 to keep only the target bins.
--recon-step-um50micrometersPAMAxial integration step used by ASA/HASA reconstruction.
--recon-modeautoauto|full|windowedPAMauto, full, windowedReconstruction mode. Auto uses full for point sources and windowed for squiggle/network activity.
--recon-window-us20microsecondswindowedWindow duration for windowed incoherent reconstruction.
--recon-hop-us10microsecondswindowedHop between consecutive reconstruction windows.
--recon-window-taperhannhann|none|rectangular|tukeywindowedhann, none, rectangular, tukeyTaper applied to each reconstruction window.
--recon-min-window-energy-ratio0.001ratiowindowedSkips windows whose energy is below this fraction of the maximum window energy.
--recon-progressfalseboolPAMPrints reconstruction progress updates.
--window-batch1integerwindowed GPUNumber of reconstruction windows batched together on the GPU.