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.

combine_two_categories(adata, A, B[, sep])

Combine two categories in place, respecting the order of the concatenation.

dotplot_2obs(adata, gene, x_axis, y_axis[, ...])

A function that extracts the expression for a provided gene, and subsequently prepares a dotplot where the two axes are two categoricals from the obs of the object.

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.