Skip to content

Commit

Permalink
updated Kris's Dotplot2D
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpenghe committed Jul 29, 2023
1 parent 9dec749 commit 9a90aea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Scanpyplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,9 @@ def PseudoBulk(adata, group_key, layer=None, gene_symbols=None):
out[group] = np.ravel(X.mean(axis=0, dtype=np.float64))
return out

def Dotplot2D(adata,obs1,obs2,gene,cmap='OrRd'):
def Dotplot2D(adata,obs1,obs2,gene,cmap='OrRd', min_count=1):
#This function was modified from K Polanski's codes. It can plot a gene such as XIST across samples and cell types
#require at least these many cells in a batch+celltype intersection to process it
min_count = 10

#extract a simpler form of all the needed data - the gene's expression and the two obs columns
#this way things run way quicker downstream
Expand Down

0 comments on commit 9a90aea

Please sign in to comment.