density-profile¶
The density-profile subcommand computes and plots species-resolved mass-density profiles — water, total lipid, protein, and ions — along the bilayer normal (\(z\)) for a membrane system. It reads a PSF, a single coordinate frame (a PDB or a NAMD binary .coor), and an XSC cell file; the bilayer midplane is centered at \(z=0\) and bulk solvent is made continuous across the periodic boundary so the water density is not artificially clipped at the box edges. This is the tool used to produce the density-profile figures for the membrane examples 16 and 17.
The simplest invocation names a single basename and reads <basename>.psf, <basename>.coor (or <basename>.pdb), and <basename>.xsc:
$ pestifer density-profile --basename my_membrane
The files can also be given individually:
$ pestifer density-profile --psf sys.psf --coor sys.coor --xsc sys.xsc --out density.png
For a multicomponent bilayer, --lipid-components decomposes the total lipid density into one curve per lipid species (in addition to the total lipid curve), which exposes leaflet asymmetry — the outer-leaflet species peak on one side, the inner-leaflet species on the other, while cholesterol populates both:
$ pestifer density-profile --basename my_membrane --lipid-components
Options¶
--basename— basename for<basename>.psf/.coor(or.pdb)/.xscand, by default, the output image.--psf/--coor/--xsc— input files, overriding the basename-derived names.--cooraccepts either a PDB or a NAMD binary.coor.--out— output PNG (default<basename>-density-profile.png).--title— plot title.--dz— \(z\)-slab thickness in Å (default1.0).--lipid-components— also plot a profile for each lipid species.--figsize— figure size in inches (default6.4 4.4).