tools

alpha_code(alpha)

Return the hex code for alpha transparency

calc_centroid(points)

Calculate the centroid from a numpy 2 dimenional array.

cell_cycle_scoring(adata[, human])

Run cell cycle scoring on AnnData object.

closest_node(query, nodes)

Find the closest node to the query position.

cmp([palette])

Create a cmap palette with grey as the first colour.

colorRampPalette(low, high[, diverging, ...])

Python implementation of R's colorRampPalette.

exportDEres(adata[, column, filename, ...])

Export DE results from scanpy.

get_hex(pal[, n])

Convert rgb colour code to hex code.

returnDEres(adata[, column, ...])

Summary

vmax(adata, genes, pct)

Extract the maximum expression value from list of genes in AnnData at the specified pct.

vmin(adata, genes, pct)

Extract the minimum expression value from list of genes in AnnData at the specified pct.