universe¶
-
mdtools.select.
universe
(top, trj, verbose=True, **kwargs)[source]¶ Create a MDAnalysis
Universe
from a topology and a trajectory file.- Parameters
top (str) – Filename of the topology file. See supported topology formats of MDAnalysis.
trj (str) – Filename of the trajectory. See supported coordinate formats of MDAnalysis.
verbose (bool, optional) – If
True
, print some basic information about the created MDAnalysisUniverse
to standard output. In fact, if verbose isFalse
,mdtools.select.universe()
simply calls the constructor ofMDAnalysis.core.universe.Universe
and returns the resulting MDAnalysisMDAnalysis.core.universe.Universe
.kwargs (dict, optional) – Additional keyword arguments to pass to the constructor of
MDAnalysis.core.universe.Universe
.
- Returns
universe – The created MDAnalysis
Universe
.- Return type
See also
mdtools.run_time_info.ag_info_str()
Create a string containing information about a MDAnalysis
AtomGroup
.
Notes
This function is just a convinient wrapper around the constructor of
MDAnalysis.core.universe.Universe
that can print the information generated bymdtools.run_time_info.ag_info_str()
about the createdMDAnalysis.core.universe.Universe
to standard output.