gph82 / mdciao

mdciao: Accessible Analysis and Visualization of Molecular Dynamics Simulation Data
http://proteinformatics.org/mdciao
GNU Lesser General Public License v3.0
30 stars 4 forks source link

Deprecate top2defs #21

Closed gph82 closed 3 years ago

gph82 commented 3 years ago

The use of sequence alignment to map topologies to consensus nomenclature is carried out differently, with very similar results.

The other alignment-needing methods, top2labels and top2frags wrap around aligntop

To re-use alignments, the ConsensusLabeller object now has a new attribute, most_recent_alignment, a pandas.DataFrame that can be passed to top2frags if the expert user trusts the last alignment to be a good source of fragment definitions.

Consequences of this are:

Other modifications in this PR are general style/doc improvements, like add_fragment_labels, speeding up some tests through setUpClass, and avoided unnecessary web_lookups.

The commits b7b24f2, 207b545, 83974f7 are a mess because I only wanted to add a TODO but committed everything and couldn't revert properly, but the tests work

TODO: eliminate the skipped tests and methods not needed any longer