Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

This stuff below specifically makes an ordered heatmap of Mystic Lake depths:

Wiki MarkupIn \ [1\]: file = 'eOTU_parallel/ML_Q_unique_final.mat.lin'unmigrated-wiki-markup

In \ [2\]: counts, lins = SM.fromTxt(file, lin=True)unmigrated-wiki-markup

In \ [3\]: counts = counts.remove_rows(\['MSB','MEB','M3.2','M8.2','M22'\])unmigrated-wiki-markup

In \ [4\]: fracs = counts.normalize()

Wiki MarkupIn \ [5\]: D = fracs.dist_mat(axis='rows', metric='JSsqrt')unmigrated-wiki-markup

In \ [6\]: order = \ ['M21', 'M20', 'M19', 'M17', 'M16', 'M15', 'M14', 'M13', 'M12', 'M11', 'M10', 'M9', 'M8', 'M7', 'M6', 'M5', 'M4', 'M3.1', 'M1.5', 'M0'\]unmigrated-wiki-markup

In \ [7\]: Dorder = D.reindex(index=order, columns=order)

Wiki MarkupIn \ [8\]: Dorder.plot_dist_heatmap(sort_rows=False, sort_cols=False, plot_row_labels=True, row_label_width = 0.06)

If you encounter problems, post them to his issues page:

...