Skip to content

XTC file not recognized with extract_coordinates #68

@piia600

Description

@piia600

Hi,

I am trying to read my files in, and I keep running into problems with the trajectories.

I have Amber trajectories in .xtc format (from cpptraj), and either pdb or prmtop for the topology. I also tried to make .psf file with Parmed, but this was not recognized by extract_coordinates as a "proper .psf file".

So the command

extract_coordinates(ref_file, pdb_file, "my_trj.xtc", "my_trj", sel_base)

leads to an error

TypeError: Cannot find an appropriate coordinate reader for file '.'.
           Unknown coordinate trajectory format '' for '.'. The FORMATs 
           dict_keys(['CHAIN', 'CHEMFILES', 'CRD', 'DCD', 'CONFIG', 'HISTORY', 'DMS', 'GMS', 'GRO', 'INPCRD', 'RESTRT', 'LAMMPS', 'DATA', 'LAMMPSDUMP', 'MOL2', 'PDB', 'ENT', 'XPDB', 'PDBQT', 'PQR', 'TRJ', 'MDCRD', 'CRDBOX', 'NCDF', 'NC', 'TRR', 'H5MD', 'TRZ', 'XTC', 'XYZ', 'TXYZ', 'ARC', 'MEMORY', 'MMTF', 'GSD', 'COOR', 'NAMDBIN', 'IN', 'FHIAIMS', 'PARMED', 'RDKIT', 'OPENMMSIMULATION', 'OPENMMAPP'])

I could open the same files as an Universe in MDAnalysis (prmtop+xtc), so it seems this issue is related to the trajectory input in extract_coordinates.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions