navis.interfaces.r.data2py¶
- navis.interfaces.r.data2py(data, **kwargs)[source]¶
Convert data from rcatmaid (e.g.
catmaidneuron
fromread.neuron.catmaid
) and converts into Python Data.Notes
Most R data comes as list (even if only 1 entry). This is preserved.
R lists with headers are converted to dictionaries
R DataFrames are converted to Pandas DataFrames
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.