-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API typos, outdated info, broken links, etc (ongoing) #2401
Comments
Yep. So something pandas does is to mush around doc strings with decorators, so we could even do that with |
The recently-merged #2390 was created to make a script that auto-docs parsers and the attributes associated. It's currently in the UserGuide but I could move it over to the main repo? |
@lilyminium does the UG have a list of all pre-defined topology attributes from core.topologyattrs? Would be useful for EDIT: Yes – at https://www.mdanalysis.org/UserGuide/topology_system.html#topology-attributes |
This example in Edit: as pointed out by @jbarnoud, it is easy to forget to clean or preprocess your trajectories before analysis. In that case, putting in the #TODO is now on TODO list 😁 import MDAnalysis as mda
from MDAnalysis.analysis import align
from MDAnalysis.tests.datafiles import TPR, XTC
u = mda.Universe(TPR, XTC, in_memory=True)
protein = u.select_atoms("protein")
# 1) need a step to center and make whole: this trajectory
# contains the protein being split across periodic boundaries
#
# TODO
# 2) fit to the initial frame to get a better average structure
# (the trajectory is changed in memory)
prealigner = align.AlignTraj(u, select="protein and name CA", in_memory=True).run()
# 3) reference = average structure
reference_coordinates = u.trajectory.timeseries(asel=protein).mean(axis=1)
# make a reference structure (need to reshape into a 1-frame "trajectory")
reference = mda.Merge(protein).load_new(
reference_coordinates[:, None, :], order="afc") |
Not dealing with PBC is a frequent misuse of the analysis tools. Showing it has to be done seems a good idea to me. Our examples will be used more or less verbatim in papers. |
Bond.__eq__
does not check bond order incore.topologyobjects
:mdanalysis/package/MDAnalysis/core/topologyobjects.py
Lines 163 to 167 in e110108
mdanalysis/package/MDAnalysis/core/topologyobjects.py
Lines 135 to 140 in e110108
All the "Reads the following Attributes" and "Guesses the following Attributes" should be double-checked in
topology.__init__
__init__
does not include ITPParserPSFParser
:.. _PSF: http://www.charmm.org/documentation/c35b1/struct.html
link broken.MinimalParser
: Ends in the middle of a sentence:mdanalysis/package/MDAnalysis/topology/MinimalParser.py
Line 58 in e110108
TRJReader
outdated: Outdated documentation for AMBER TRJReader #2398dist
is missing documentation of thebox
parameter (analysis.distances.dist
). Note that AtomGroups can be (usually are?) from different Universes. Note that even if the Universe has dimensions associated,dist
does not use them unless explicitly passed intobox
Add lines to initialise
k
anddist
indistances.self_distance_array
returns exampleUpdate Molnums documentation, which is identical to Moltypes
All of the
helanal
documentation. Best to leave this after update helanal to AnalysisBase #2452 is addressedAtomGroup.guess_bonds misleading documentation, could pass in fudge_factor #2395 fix up
guess_bonds
documentationAll of the PSA documentation. Perhaps it will get AnalysisBased?
encore.hes returns unreadable details which are not documented
encore.ClusteringMethod.KMeans documents precompute_distances without actually having it as a kwarg
encore.DimensionalityReductionMethod.StochasticProximityEmbeddingNative documents the default number of dimensions as 3, but it's actually 2
for encore.hes, ces, dres: document that the method returns averages and standard deviations if
estimate_error=True
for encore.ces_convergence document the output. The shape does not include
preference_values
.for rdf.InterRDF_s document
density
kwargfix base.AnalysisFromFunction raises ValueError
document kwargs in Ramachandran.plot
PCA.mean_atoms is not the mean positions, PCA.mean is
The text was updated successfully, but these errors were encountered: