Index: mdtraj/docs/index.rst =================================================================== --- mdtraj.orig/docs/index.rst 2025-08-11 10:57:15.648807453 +0200 +++ mdtraj/docs/index.rst 2025-08-11 10:57:15.636807252 +0200 @@ -18,7 +18,8 @@ and NMR observables. - Lightweight, Pythonic API. -MDTraj includes a command-line application, ``mdconvert``, for converting +MDTraj includes a command-line application, ``mdconvert`` (renamed to +``mdconvert-mdtraj`` on Debian systems), for converting trajectories between formats. Index: mdtraj/docs/mdconvert.rst =================================================================== --- mdtraj.orig/docs/mdconvert.rst 2025-08-11 10:57:15.648807453 +0200 +++ mdtraj/docs/mdconvert.rst 2025-08-11 10:57:15.636807252 +0200 @@ -1,4 +1,4 @@ -``mdconvert`` +``mdconvert`` (``mdconvert-mdtraj``) ============= ``mdconvert`` is a command-line script installed with MDTraj to convert @@ -11,16 +11,18 @@ (i.e. strip solvent molecules), and down-sample trajectories by extract only a subset of the frames. +On Debian systems ``mdconvert`` has been renamed to ``mdconvert-mdtraj``. + After installing the library, it should be in your ``$PATH``. You can check this from the command line with this command. :: - $ which mdconvert + $ which mdconvert-mdtraj -Here's the ``mdconvert`` help text. :: +Here's the ``mdconvert`` (``mdconvert-mdtraj``) help text. :: - $ mdconvert -h - usage: mdconvert [-h] -o OUTPUT [-c CHUNK] [-f] [-s STRIDE] [-i INDEX] + $ mdconvert-mdtraj -h + usage: mdconvert-mdtraj [-h] -o OUTPUT [-c CHUNK] [-f] [-s STRIDE] [-i INDEX] [-a ATOM_INDICES] [-t TOPOLOGY] input [input ...] Index: mdtraj/examples/simulation-with-openmm.ipynb =================================================================== --- mdtraj.orig/examples/simulation-with-openmm.ipynb 2025-08-11 10:57:15.648807453 +0200 +++ mdtraj/examples/simulation-with-openmm.ipynb 2025-08-11 10:57:15.636807252 +0200 @@ -121,7 +121,7 @@ "the hdf5 reporter, which saves all kinds of information, including\n", "the topology, positions, energies, etc to disk. To visualize the h5\n", "trajectory with a non-hdf5 enabled app like PyMol or VMD, you can\n", - "use mdconvert on the command line to easily transform it to NetCDF, DCD,\n", + "use mdconvert (mdconvert-mdtraj) on the command line to easily transform it to NetCDF, DCD,\n", "or any other format of your preference." ] }, Index: mdtraj/setup.py =================================================================== --- mdtraj.orig/setup.py 2025-08-11 10:57:15.648807453 +0200 +++ mdtraj/setup.py 2025-08-11 10:57:15.640807319 +0200 @@ -327,7 +327,7 @@ zip_safe=False, entry_points={ "console_scripts": [ - "mdconvert = mdtraj.scripts.mdconvert:entry_point", + "mdconvert-mdtraj = mdtraj.scripts.mdconvert:entry_point", "mdinspect = mdtraj.scripts.mdinspect:entry_point", ], }, Index: mdtraj/tests/test_mdconvert.py =================================================================== --- mdtraj.orig/tests/test_mdconvert.py 2025-08-11 10:57:15.648807453 +0200 +++ mdtraj/tests/test_mdconvert.py 2025-08-11 10:57:15.640807319 +0200 @@ -47,7 +47,7 @@ # Check that extracting a specific index works traj, in_fn, tmpdir = h5traj out_fn = f"{tmpdir}/frame4.pdb" - subprocess.check_call(["mdconvert", in_fn, "-i", "4", "-o", out_fn]) + subprocess.check_call(["mdconvert-mdtraj", in_fn, "-i", "4", "-o", out_fn]) frame4 = md.load(out_fn) eq(frame4.xyz, traj[4].xyz) @@ -56,7 +56,7 @@ # Check that extracting a specific slice works traj, in_fn, tmpdir = h5traj out_fn = f"{tmpdir}/frame13.pdb" - subprocess.check_call(["mdconvert", in_fn, "-i", "1:5:2", "-o", out_fn]) + subprocess.check_call(["mdconvert-mdtraj", in_fn, "-i", "1:5:2", "-o", out_fn]) frame13 = md.load(out_fn) eq(frame13.xyz, traj[1:5:2].xyz) @@ -107,7 +107,7 @@ for ext2 in extensions: out_fn = f"traj.{ext2}" - command1 = ["mdconvert", in_fn, "-o", out_fn, "-c 6"] + command1 = ["mdconvert-mdtraj", in_fn, "-o", out_fn, "-c 6"] if ext2 in ["pdb", "h5", "lh5"]: # if we're saving a pdb or h5, we need to give it a topology too command1 += ["-t", topology_fn]