navis.interfaces.r.NBLASTresults¶
- class navis.interfaces.r.NBLASTresults(results, sc, scr, query, target, nblast_param)[source]¶
Class holding NBLAST results and wrappers that allow easy plotting.
- results¶
Contains top N results.
- Type:
pandas.Dataframe
- sc¶
Contains original RNblast forward scores.
- Type:
Robject
- scr¶
Original R Nblast reverse scores (Top N only).
- Type:
Robject
- query¶
The original query neurons.
- Type:
R object
- param¶
Contains parameters used for nblasting.
- Type:
dict
- target¶
The original target neurons.
- Type:
R robject
- date¶
Time of nblasting.
- Type:
datetime object
Examples
>>> import navis >>> # Blast neuron by skeleton ID >>> nbl = navis.nblast( skid, remote_instance = rm ) >>> # Sort results by mu_score >>> nbl.sort( 'mu_score' ) >>> # Show table >>> nbl.results >>> # 3D plot top 5 hits using vispy >>> canvas, view = nbl.plot(hits=5) >>> # Show distribution of results >>> import matplotlib.pyplot as plt >>> nbl.results.hist( layout=(3,1), sharex=True) >>> plt.show()
Init function.
Methods
__init__
(results, sc, scr, query, target, ...)Init function.
get_dps
(entries)Retrieve dotproducts from DPS database (neuronlistfh) as neuronslist.
plot3d
([hits, plot_neuron, plot_brain])Plot nblast hits using
navis.plot3d()
.sort
(columns)Sort results by given column(s).