Input Parameter Types
Converter Inputs
ASEFileConfigurator
default=
Sets an input file for the ASE converter.
AtomMappingConfigurator
default={}
The atom mapping configurator for trajectory converters.
It allows the user to verify and potentially change the way atom types from an MD trajectory will be converted to the chemical elements used by MDANSE.
Attributes
_default : dict The default atom map setting JSON string.
BooleanConfigurator
default=False
Sets a value to a logical True or False.
The input value can be directly provided as a Python boolean or by the using the following (standard) representation of a boolean: ‘true’/’false’, ‘yes’/’no’, ‘y’/’n’, ‘1’/’0’, 1/0
ConfigFileConfigurator
default=
Parse the result of a LAMMPS write_data.
Provides necessary initial details if not included in trajectory.
FieldFileConfigurator
default=
The DL_POLY field file configurator.
FloatConfigurator
default=0
Inputs a single floating-point number.
InputFileConfigurator
default=
Uses a file as input. Very general.
IntegerConfigurator
default=0
Inputs a single integer number.
MDAnalysisCoordinateFileConfigurator
default=(‘’, ‘AUTO’)
Take one or more filenames of files containing atomic coordinates.
Several trajectory files can be concatenated using this input, but only if they are all in the same format.
MDAnalysisTimeStepConfigurator
default=0.0
Input for the trajectory time step in the MDAnalysis converter.
MDAnalysis will attempt to determine the correct value of the time step based on the input files. That value is not guaranteed to be correct.
MDAnalysisTopologyFileConfigurator
default=(‘’, ‘AUTO’)
Constructs and MDAnalysis.Universe from the input file.
The format of the input file can be specified manually, or set to AUTO. The automatic format determination typically fails for filenames without an extension.
MDFileConfigurator
default=
Set a CASTEP .md file as input.
Class representing a .md file format (documentation can be found at https://www.tcm.phy.cam.ac.uk/castep/MD/node13.html). It is used to determine the structure of the file (eg. the length of each section) and to read the information stored in one frame of the trajectory.
MDTrajTimeStepConfigurator
default=0.0
Inputs the time step value for the MDTraj converter.
MDTrajTopologyFileConfigurator
default=
Uses MDTraj to read the system topology information from a file.
MDTrajTrajectoryFileConfigurator
default=
Passes one or more trajectory files to the MDTraj converter.
Multiple files can be concatenated, but they have to be all in the same format.
OptionalXYZFileConfigurator
default=
Input for an XYZ file. The filename can also be empty.
OutputTrajectoryConfigurator
default=(‘OUTPUT_TRAJECTORY’, 64, 128, ‘none’, ‘no logs’)
Specifies how a trajectory should be output to a file.
Allows to define:
path to the file,
precision of the floating point numbers,
HDF5 chunk size,
compression applied to the HDF5 datasets
logging level of the converter run.
For trajectories, MDANSE supports only the MDT format (HDF5).
SingleChoiceConfigurator
default=[]
Selects a single item from multiple choices.
XDATCARFileConfigurator
default=
Inputs an XDATCAR file (for the VASP converter).
XTDFileConfigurator
default=
Opens and reads an XTD file.
The information contained in the XTD file will be used to construct an instance of ChemicalSystem.
XYZFileConfigurator
default=
Reads information from an XYZ file for the CP2K converter.
This class loads the contents of an XYZ file. This file may contain the atom positions, velocities or forces. In either case there will be 3 components per atom.
If you have an ExtendedXYZ file, load it with the ASE converter instead.
Analysis Inputs
AtomSelectionConfigurator
default={}
Selects atoms in trajectory based on the input string.
This configurator allows the selection of a specific set of atoms on which the analysis will be performed. The defaults setting selects all atoms.
Attributes
_default : str The defaults selection setting.
AtomTransmutationConfigurator
default={}
Assigns different chemical elements to selected atoms.
For some analysis it can be necessary to change the nature of the chemical element of a given part of the system to have results closer to experience. A good example is to change some hydrogen atoms to deuterium in order to fit with experiments where deuteration experiments have been performed for improving the contrast and having a better access to the dynamics of a specific part of the molecular system.
Attributes
_default : str The defaults transmutation setting.
AxisSelectionConfigurator
default=(None, 0)
Defines a local axis in a molecule.
The input is the name of a molecule type, and one or two indices of atoms within the molecule.
If the atom indices are not defined, the calculation will use the principal axis of the molecule determined from the moment of inertia.
If one index is given, the molecule axis will be a vector from the molecule centre to the atom with the given index.
If two indices are given, the molecule axis will be a vector between the atoms with the two indices.
BooleanConfigurator
default=False
Sets a value to a logical True or False.
The input value can be directly provided as a Python boolean or by the using the following (standard) representation of a boolean: ‘true’/’false’, ‘yes’/’no’, ‘y’/’n’, ‘1’/’0’, 1/0
CorrelationFramesConfigurator
default=all
Parses the input of trajectory frames.
Configures the time frame range to be used in the calculations together with a movable window used for correlations.
DerivativeOrderConfigurator
default=3
Specifies the order of a numerical derivative.
Values from 1 to 5 are allowed.
DistHistCutoffConfigurator
default=(0, 10, 1)
Range of interatomic distances for a histogram.
It does not allow distances large enough to include the periodic image of any atom in the system.
FloatConfigurator
default=0
Inputs a single floating-point number.
FramesConfigurator
default=all
Select the trajectory frames on which to run the analysis.
The frame selection can be input as three numbers, in the format of (first, last, step).
GroupingLevelConfigurator
default=atom
Define how the partial results will be grouped in the output.
- The grouping levels currently supported are:
‘atom’: no changes are made to the atom selection
‘each atom’: no changes are made to the atom selection
‘molecule’: this changes the atom names in the atom selection so that it includes the molecule name that they are a part of e.g. <H2_O1>/H for a water molecule’s hydrogen atom. Job in mdanse will sum results based on the atom names so that results like f(q,t)/<H2_O1>/H will be obtained.
‘each molecule’: this changes the atom selection so that the atom indices for each molecule will be grouped together. Jobs can then run calculations can be run for each group of indices together.
HDFInputFileConfigurator
default=INPUT_FILENAME.mda
Uses an .mda file from another analysis as input.
HDFTrajectoryConfigurator
default=INPUT_FILENAME.mdt
Chooses the trajectory to be analysed.
You can use it both with an .mdt file created by an MDANSE converter, or with an H5MD file if it contains complete information about the atom positions, time axis, physical units and atom types.
InstrumentResolutionConfigurator
default=(‘gaussian’, {‘mu’: 0.0, ‘sigma’: 10.0})
Defines the resolution function to use for signal broadening.
The instrument resolution will be used in frequency-dependent analysis (e.g. the vibrational density of states) when performing the Fourier transform of its time-dependent counterpart. The convolution of the signal with a resolution function should be closer to the experimental spectrum.
In MDANSE, the instrument resolution is calculated as a function of energy, and then Fourier-transformed into the time domain and applied to the time-dependent signal as follows:
where f(t) and r(t) are, respectively, the time-dependent signal and instrument resolution. \(F(\omega)\) and \(R(\omega)\) are their corresponding spectra. Hence, \(G(\omega)\) represents the convolution of the signal and the instrument resolution. This resolution is constant and not energy-dependent, as opposed to the real resolution of most neutron instruments.
IntegerConfigurator
default=0
Inputs a single integer number.
InterpolationOrderConfigurator
default=3
Specifies the order of a numerical derivative used for interpolation.
Normally it is used for calculating atom velocities from their positions. Values from 1 to 5 are allowed. If MD engine velocities are provided in the trajectory file, you can (and should) choose to use them by setting this to 0.
The velocities calculated from atom positions may differ from the values used by the MD engine during the simulation. Additionally, if your MD engine was not writing out every frame, the velocities are likely to be underestimated compared to the values used by the MD engine in the simulation, and the error in the calculation increases quickly with the number of trajectory frames skipped in the MD output.
MoleculeSelectionConfigurator
default=
Picks a molecule type present in the trajectory.
If the molecule labels are not available, you can detect the molecules using TrajectoryEditor.
Attributes
_default : str Empty by default.
OptionalFloatConfigurator
default=[False, 1.0]
Inputs a single floating point number. Empty input is allowed.
OutputFilesConfigurator
default=(‘OUTPUT_FILENAME’, [‘MDAFormat’, ‘TextFormat’, ‘FileInMemory’], ‘no logs’)
Allows the user to choose the output file for writing.
This configurator allows to define:
output directory and the base file name,
format(s) of the output file(s),
logging level of the analysis run.
The list of output files is built by joining the given output directory, the base file name and the extensions corresponding to the input file formats.
For analysis, MDANSE currently supports:
MDAFormat - an HDF5 file written to the disk,
TextFormat - a tar file containing a text file for each array,
FileInMemory - an HDF5 data object NOT written to the disk.
FileInMemory is not available when running from the GUI.
OutputStructureConfigurator
default=(‘OUTPUT_FILENAME’, ‘vasp’, ‘no logs’)
Defines the name of the output (average) structure file.
Allows to define:
output directory and file name,
output structure file format (supported by ASE io module),
logging level of the analysis run.
OutputTrajectoryConfigurator
default=(‘OUTPUT_TRAJECTORY’, 64, 128, ‘none’, ‘no logs’)
Specifies how a trajectory should be output to a file.
Allows to define:
path to the file,
precision of the floating point numbers,
HDF5 chunk size,
compression applied to the HDF5 datasets
logging level of the converter run.
For trajectories, MDANSE supports only the MDT format (HDF5).
PartialChargeConfigurator
default={}
Assigns partial charges to atoms.
ProjectionConfigurator
default=None
Projects atomic coordinates onto an axis or plane.
Null projector (which does nothing) is the standard choice. The input vector can be used as an axis direction, or as a plane normal vector.
QVectorsConfigurator
default=(‘SphericalLatticeQVectors’, {‘shells’: (0.1, 5, 0.1), ‘width’: 0.1, ‘n_vectors’: 50, ‘seed’: 0})
Creates and configures a q-vector generator.
Reciprocal vectors are used in MDANSE for analysis related to scattering experiments, such as dynamic coherent structure or elastic incoherent structure factor analysis. In MDANSE, properties that depend on Q vectors are always scalar regarding Q vectors in the sense that the values of these properties will be computed for a given norm of Q vectors and not for a given Q vector. Hence, the Q vectors generator supported by MDANSE always generates Q vectors on Q-shells, each shell containing a set of Q vectors whose norm match the Q shell value within a given tolerance.
Depending on the generator selected, Q vectors can be generated isotropically or anistropically, on a lattice or randomly.
RangeConfigurator
default=(0, 10, 1)
Inputs a range of values as 3 parameters : start, stop, step.
By default the values are generated as a NumPy array.
RunningModeConfigurator
default=(‘single-core’, 1)
Specifies how many CPU cores will be used by this task.
MDANSE currently support single-core or multicore (SMP) running modes. In the latter case, you have to specify the number of slots used for running the analysis.
SingleChoiceConfigurator
default=[]
Selects a single item from multiple choices.
TrajectoryFilterConfigurator
default={“filter”: “Butterworth”, “attributes”: {“order”: 1, “attenuation_type”: “lowpass”, “cutoff_freq”: 25.0}}
Defines the filter that will be applied to atom positions.
The filters are provided by the scipy.signal library.
Attributes
_default : str The defaults selection setting.
UnitCellConfigurator
default=([[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], False)
Input a unit cell definition.
This is normally used to introduce a cell definition to a trajectory, or to change the existing cell definition.
WeightsConfigurator
default=equal
Select the atom property to be used by the weight scheme.
This configurator allows to select which atom properties will be used as weights when combining the partial contributions into the total result.