.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_methods.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_methods.py: Available methods per converter ===================================== Plot number of implemented methods per converter. .. GENERATED FROM PYTHON SOURCE LINES 34-54 .. code-block:: Python from bioconvert.core.registry import Registry r = Registry() info = r.get_info() # The available unique converters converters = [x for x in info.items()] # the number of methods per converter data = [info[k] for k, v in info.items()] # the number of formats A1 = [y for x in list(r.get_conversions()) for y in x[0]] A2 = [y for x in list(r.get_conversions()) for y in x[1]] formats = set(A1 + A2) print("Number of formats: {}".format(len(formats))) print("Number of converters: {}".format(len(converters))) print("Number of methods : {}".format(sum(data))) .. GENERATED FROM PYTHON SOURCE LINES 55-61 .. code-block:: Python from pylab import hist, clf, xlabel, grid clf() hist(data, range(17), ec="k", zorder=2, align="left") xlabel("Number of methods") grid(zorder=-1) .. _sphx_glr_download_auto_examples_plot_methods.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_methods.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_methods.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_methods.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_