Comments (7)
+1
I have a DCD that is too big for me to read.
What do you want this to look like? Arbitrary slicing for reads? Append for writes?
from mdtraj.
no arbitrary slicing. something like
class DCDFile(object):
def __init__(self, filename, mode='r'):
"""Open a DCD file"""
def read_frames(n_frames=1):
"""Return the next n frames of the trajectory"""
def close():
"""Close the file"""
from mdtraj.
I suppose a related feature would be to read only a subset of the atoms.
from mdtraj.
I need to look in the source, but I don't think that's possible with the DCD binary format. If you're doing a streaming analysis on a small number of frames at a time, then thats really how you're going to get the memory win.
from mdtraj.
Well, to me there's no reason why we couldn't implement this on the (c/p)ython side of things. I agree it might require an extra copy...
from mdtraj.
Yeah, it's not possible to actually load (and malloc space for) only some of the atoms. The DCD reader can give you the appearance of this by pre-slicing the results, but I don't think this is a good idea.
from mdtraj.
Okay, I take that back. You could, but you have to hack the binary format of the DCD file, instead of using the c-level dcd file reader functions. This is not worth it.
from mdtraj.
Related Issues (20)
- Numpy 2.0 Release is imminent HOT 5
- python version anaconda install HOT 1
- Gyration tensor, principal moments, and asphericity over PBCs HOT 1
- Update `import_` utility? HOT 5
- Upstream macOS compiler fix HOT 2
- How to micromamba (mistyped as minimamba, sorry) install release candidate? HOT 3
- Update/Audit docs HOT 5
- NETCDF4 Error HOT 10
- Set up better versioning scheme HOT 1
- Add netCDF4 as an upstream dependency
- Deleting an atom does not update bond list in topology HOT 1
- Getting code coverage up and running HOT 1
- MDTraj can write some PDB files that it cannot read HOT 5
- Python 3.8 Backward Compatibility due to `ast.unparse` HOT 3
- Updating unit cell information in dcd file HOT 1
- six module removed but still referenced, breaking mdinspect HOT 2
- How to Adjust the Energy Threshold in kabsch_sander Function? HOT 1
- mdtraj fails to load pdb correctly, the number of atoms is wrong HOT 8
- Error converting amber .nc to gromacs .xtc HOT 3
- Issue with mdtraj.kabsch_sander Returning Zero Energies for DNA Hydrogen Bonds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdtraj.