navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.interfaces.r.data2py
          • data2py()

    navis.interfaces.r.data2py¶

    navis.interfaces.r.data2py(data, **kwargs)[source]¶

    Convert data from rcatmaid (e.g. catmaidneuron from read.neuron.catmaid) and converts into Python Data.

    Notes

    1. Most R data comes as list (even if only 1 entry). This is preserved.

    2. R lists with headers are converted to dictionaries

    3. R DataFrames are converted to Pandas DataFrames

    4. R nblast results are converted to Pandas DataFrames but only the top 100 hits for which we have reverse scores!

    Parameters:

    data – Any kind of R data. Can be nested (e.g. list of lists)!

    Return type:

    Converted data or ‘Not converted’ if conversion failed.

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.