2-1. Low-dimensional analysis of a scRNA-seq data (UMAP:K-MEAN)#
Baron (Pancreas)#
Fixed the number of cell types with 13.
import matplotlib.pyplot as plt
from umap import UMAP
from utils import run_plot
import src.utils as my_u
from src.utils import df_cp
from src.utils import df_log
from src.utils import df_total20000
from src.utils import df_minmax
from src.utils import df_l2norm
from src.utils import df_zscore
from src.utils import df_meansquare
from src.utils import run_plot
total_data = X_
labels = y_
#latent_space = TSNE(n_components=2)
latent_space = umap.UMAP(n_components=2, init='spectral', random_state=0)
clustering_method = 'kmean'
############################################
plt.figure(figsize=(16,16), dpi=300)
ax00 = plt.subplot2grid((4,4), (0,0))
ax10 = plt.subplot2grid((4,4), (0,1))
ax20 = plt.subplot2grid((4,4), (0,2))
ax30 = plt.subplot2grid((4,4), (0,3))
ax01 = plt.subplot2grid((4,4), (1,0))
ax11 = plt.subplot2grid((4,4), (1,1))
ax21 = plt.subplot2grid((4,4), (1,2))
ax31 = plt.subplot2grid((4,4), (1,3))
ax02 = plt.subplot2grid((4,4), (2,0))
ax12 = plt.subplot2grid((4,4), (2,1))
ax22 = plt.subplot2grid((4,4), (2,2))
ax32 = plt.subplot2grid((4,4), (2,3))
ax03 = plt.subplot2grid((4,4), (3,0))
ax13 = plt.subplot2grid((4,4), (3,1))
ax23 = plt.subplot2grid((4,4), (3,2))
ax33 = plt.subplot2grid((4,4), (3,3))
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_cp(total_data), \
ax00, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_cp(total_data)), \
ax10, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_total20000(df_cp(total_data)), \
ax20, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_total20000(df_cp(total_data))), \
ax30, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_cp(total_data)), \
ax01, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_cp(total_data))), \
ax11, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_total20000(df_cp(total_data))), \
ax21, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_total20000(df_cp(total_data)))), \
ax31, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_cp(total_data)), \
ax02, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_cp(total_data))), \
ax12, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_total20000(df_cp(total_data))), \
ax22, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_total20000(df_cp(total_data)))), \
ax32, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_cp(total_data)), \
ax03, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_cp(total_data))), \
ax13, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_total20000(df_cp(total_data))), \
ax23, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_total20000(df_cp(total_data)))), \
ax33, labels, latent_space, clustering_method)
############################################
ax00.set_ylabel('raw' , fontsize=14)
ax01.set_ylabel('min-max norm' , fontsize=14)
ax02.set_ylabel('l2 norm' , fontsize=14)
ax03.set_ylabel('z-score' , fontsize=14)
ax03.set_xlabel('raw', fontsize=13)
ax13.set_xlabel('log2', fontsize=13)
ax23.set_xlabel('total', fontsize=13)
ax33.set_xlabel('total_log2', fontsize=13)
ax33.legend(bbox_to_anchor=(1.1,0), loc='lower left',borderaxespad=0)
<matplotlib.legend.Legend at 0x7f4cec377d90>
UMAP and K-means
Muraro (Pancreas)#
import matplotlib.pyplot as plt
from umap import UMAP
from utils import run_plot
import src.utils as my_u
from src.utils import df_cp
from src.utils import df_log
from src.utils import df_total20000
from src.utils import df_minmax
from src.utils import df_l2norm
from src.utils import df_zscore
from src.utils import df_meansquare
from src.utils import run_plot
total_data = X_
labels = y_
#latent_space = TSNE(n_components=2)
latent_space = umap.UMAP(n_components=2, init='spectral', random_state=0)
clustering_method = 'kmean'
############################################
plt.figure(figsize=(16,16), dpi=300)
ax00 = plt.subplot2grid((4,4), (0,0))
ax10 = plt.subplot2grid((4,4), (0,1))
ax20 = plt.subplot2grid((4,4), (0,2))
ax30 = plt.subplot2grid((4,4), (0,3))
ax01 = plt.subplot2grid((4,4), (1,0))
ax11 = plt.subplot2grid((4,4), (1,1))
ax21 = plt.subplot2grid((4,4), (1,2))
ax31 = plt.subplot2grid((4,4), (1,3))
ax02 = plt.subplot2grid((4,4), (2,0))
ax12 = plt.subplot2grid((4,4), (2,1))
ax22 = plt.subplot2grid((4,4), (2,2))
ax32 = plt.subplot2grid((4,4), (2,3))
ax03 = plt.subplot2grid((4,4), (3,0))
ax13 = plt.subplot2grid((4,4), (3,1))
ax23 = plt.subplot2grid((4,4), (3,2))
ax33 = plt.subplot2grid((4,4), (3,3))
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_cp(total_data), \
ax00, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_cp(total_data)), \
ax10, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_total20000(df_cp(total_data)), \
ax20, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_total20000(df_cp(total_data))), \
ax30, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_cp(total_data)), \
ax01, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_cp(total_data))), \
ax11, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_total20000(df_cp(total_data))), \
ax21, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_total20000(df_cp(total_data)))), \
ax31, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_cp(total_data)), \
ax02, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_cp(total_data))), \
ax12, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_total20000(df_cp(total_data))), \
ax22, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_total20000(df_cp(total_data)))), \
ax32, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_cp(total_data)), \
ax03, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_cp(total_data))), \
ax13, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_total20000(df_cp(total_data))), \
ax23, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_total20000(df_cp(total_data)))), \
ax33, labels, latent_space, clustering_method)
############################################
ax00.set_ylabel('raw' , fontsize=14)
ax01.set_ylabel('min-max norm' , fontsize=14)
ax02.set_ylabel('l2 norm' , fontsize=14)
ax03.set_ylabel('z-score' , fontsize=14)
ax03.set_xlabel('raw', fontsize=13)
ax13.set_xlabel('log2', fontsize=13)
ax23.set_xlabel('total', fontsize=13)
ax33.set_xlabel('total_log2', fontsize=13)
ax33.legend(bbox_to_anchor=(1.1,0), loc='lower left',borderaxespad=0)
<matplotlib.legend.Legend at 0x7f659df9d960>
Segerstolpe (Pancreas)#
import matplotlib.pyplot as plt
from umap import UMAP
from utils import run_plot
import src.utils as my_u
from src.utils import df_cp
from src.utils import df_log
from src.utils import df_total20000
from src.utils import df_minmax
from src.utils import df_l2norm
from src.utils import df_zscore
from src.utils import df_meansquare
from src.utils import run_plot
total_data = X_
labels = y_
#latent_space = TSNE(n_components=2)
latent_space = umap.UMAP(n_components=2, init='spectral', random_state=0)
clustering_method = 'kmean'
############################################
plt.figure(figsize=(16,16), dpi=300)
ax00 = plt.subplot2grid((4,4), (0,0))
ax10 = plt.subplot2grid((4,4), (0,1))
ax20 = plt.subplot2grid((4,4), (0,2))
ax30 = plt.subplot2grid((4,4), (0,3))
ax01 = plt.subplot2grid((4,4), (1,0))
ax11 = plt.subplot2grid((4,4), (1,1))
ax21 = plt.subplot2grid((4,4), (1,2))
ax31 = plt.subplot2grid((4,4), (1,3))
ax02 = plt.subplot2grid((4,4), (2,0))
ax12 = plt.subplot2grid((4,4), (2,1))
ax22 = plt.subplot2grid((4,4), (2,2))
ax32 = plt.subplot2grid((4,4), (2,3))
ax03 = plt.subplot2grid((4,4), (3,0))
ax13 = plt.subplot2grid((4,4), (3,1))
ax23 = plt.subplot2grid((4,4), (3,2))
ax33 = plt.subplot2grid((4,4), (3,3))
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_cp(total_data), \
ax00, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_cp(total_data)), \
ax10, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_total20000(df_cp(total_data)), \
ax20, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_total20000(df_cp(total_data))), \
ax30, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_cp(total_data)), \
ax01, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_cp(total_data))), \
ax11, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_total20000(df_cp(total_data))), \
ax21, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_total20000(df_cp(total_data)))), \
ax31, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_cp(total_data)), \
ax02, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_cp(total_data))), \
ax12, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_total20000(df_cp(total_data))), \
ax22, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_total20000(df_cp(total_data)))), \
ax32, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_cp(total_data)), \
ax03, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_cp(total_data))), \
ax13, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_total20000(df_cp(total_data))), \
ax23, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_total20000(df_cp(total_data)))), \
ax33, labels, latent_space, clustering_method)
############################################
ax00.set_ylabel('raw' , fontsize=14)
ax01.set_ylabel('min-max norm' , fontsize=14)
ax02.set_ylabel('l2 norm' , fontsize=14)
ax03.set_ylabel('z-score' , fontsize=14)
ax03.set_xlabel('raw', fontsize=13)
ax13.set_xlabel('log2', fontsize=13)
ax23.set_xlabel('total', fontsize=13)
ax33.set_xlabel('total_log2', fontsize=13)
ax33.legend(bbox_to_anchor=(1.1,0), loc='lower left',borderaxespad=0)
<matplotlib.legend.Legend at 0x7f657e97c730>
Wang (Pancreas)#
import matplotlib.pyplot as plt
from umap import UMAP
from utils import run_plot
import src.utils as my_u
from src.utils import df_cp
from src.utils import df_log
from src.utils import df_total20000
from src.utils import df_minmax
from src.utils import df_l2norm
from src.utils import df_zscore
from src.utils import df_meansquare
from src.utils import run_plot
total_data = X_
labels = y_
#latent_space = TSNE(n_components=2)
latent_space = umap.UMAP(n_components=2, init='spectral', random_state=0)
clustering_method = 'kmean'
############################################
plt.figure(figsize=(16,16), dpi=300)
ax00 = plt.subplot2grid((4,4), (0,0))
ax10 = plt.subplot2grid((4,4), (0,1))
ax20 = plt.subplot2grid((4,4), (0,2))
ax30 = plt.subplot2grid((4,4), (0,3))
ax01 = plt.subplot2grid((4,4), (1,0))
ax11 = plt.subplot2grid((4,4), (1,1))
ax21 = plt.subplot2grid((4,4), (1,2))
ax31 = plt.subplot2grid((4,4), (1,3))
ax02 = plt.subplot2grid((4,4), (2,0))
ax12 = plt.subplot2grid((4,4), (2,1))
ax22 = plt.subplot2grid((4,4), (2,2))
ax32 = plt.subplot2grid((4,4), (2,3))
ax03 = plt.subplot2grid((4,4), (3,0))
ax13 = plt.subplot2grid((4,4), (3,1))
ax23 = plt.subplot2grid((4,4), (3,2))
ax33 = plt.subplot2grid((4,4), (3,3))
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_cp(total_data), \
ax00, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_cp(total_data)), \
ax10, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_total20000(df_cp(total_data)), \
ax20, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_total20000(df_cp(total_data))), \
ax30, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_cp(total_data)), \
ax01, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_cp(total_data))), \
ax11, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_total20000(df_cp(total_data))), \
ax21, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_total20000(df_cp(total_data)))), \
ax31, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_cp(total_data)), \
ax02, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_cp(total_data))), \
ax12, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_total20000(df_cp(total_data))), \
ax22, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_total20000(df_cp(total_data)))), \
ax32, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_cp(total_data)), \
ax03, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_cp(total_data))), \
ax13, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_total20000(df_cp(total_data))), \
ax23, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_total20000(df_cp(total_data)))), \
ax33, labels, latent_space, clustering_method)
############################################
ax00.set_ylabel('raw' , fontsize=14)
ax01.set_ylabel('min-max norm' , fontsize=14)
ax02.set_ylabel('l2 norm' , fontsize=14)
ax03.set_ylabel('z-score' , fontsize=14)
ax03.set_xlabel('raw', fontsize=13)
ax13.set_xlabel('log2', fontsize=13)
ax23.set_xlabel('total', fontsize=13)
ax33.set_xlabel('total_log2', fontsize=13)
ax33.legend(bbox_to_anchor=(1.1,0), loc='lower left',borderaxespad=0)
<matplotlib.legend.Legend at 0x7f667c1b28c0>
Xin (Pancreas)#
import matplotlib.pyplot as plt
from umap import UMAP
from utils import run_plot
import src.utils as my_u
from src.utils import df_cp
from src.utils import df_log
from src.utils import df_total20000
from src.utils import df_minmax
from src.utils import df_l2norm
from src.utils import df_zscore
from src.utils import df_meansquare
from src.utils import run_plot
total_data = X_
labels = y_
#latent_space = TSNE(n_components=2)
latent_space = umap.UMAP(n_components=2, init='spectral', random_state=0)
clustering_method = 'kmean'
############################################
plt.figure(figsize=(16,16), dpi=300)
ax00 = plt.subplot2grid((4,4), (0,0))
ax10 = plt.subplot2grid((4,4), (0,1))
ax20 = plt.subplot2grid((4,4), (0,2))
ax30 = plt.subplot2grid((4,4), (0,3))
ax01 = plt.subplot2grid((4,4), (1,0))
ax11 = plt.subplot2grid((4,4), (1,1))
ax21 = plt.subplot2grid((4,4), (1,2))
ax31 = plt.subplot2grid((4,4), (1,3))
ax02 = plt.subplot2grid((4,4), (2,0))
ax12 = plt.subplot2grid((4,4), (2,1))
ax22 = plt.subplot2grid((4,4), (2,2))
ax32 = plt.subplot2grid((4,4), (2,3))
ax03 = plt.subplot2grid((4,4), (3,0))
ax13 = plt.subplot2grid((4,4), (3,1))
ax23 = plt.subplot2grid((4,4), (3,2))
ax33 = plt.subplot2grid((4,4), (3,3))
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_cp(total_data), \
ax00, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_cp(total_data)), \
ax10, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_total20000(df_cp(total_data)), \
ax20, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_log(df_total20000(df_cp(total_data))), \
ax30, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_cp(total_data)), \
ax01, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_cp(total_data))), \
ax11, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_total20000(df_cp(total_data))), \
ax21, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_minmax(df_log(df_total20000(df_cp(total_data)))), \
ax31, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_cp(total_data)), \
ax02, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_cp(total_data))), \
ax12, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_total20000(df_cp(total_data))), \
ax22, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_l2norm(df_log(df_total20000(df_cp(total_data)))), \
ax32, labels, latent_space, clustering_method)
############################################
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_cp(total_data)), \
ax03, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_cp(total_data))), \
ax13, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_total20000(df_cp(total_data))), \
ax23, labels, latent_space, clustering_method)
latent_space = UMAP(n_components=2, init='spectral', random_state=0)
run_plot(df_zscore(df_log(df_total20000(df_cp(total_data)))), \
ax33, labels, latent_space, clustering_method)
############################################
ax00.set_ylabel('raw' , fontsize=14)
ax01.set_ylabel('min-max norm' , fontsize=14)
ax02.set_ylabel('l2 norm' , fontsize=14)
ax03.set_ylabel('z-score' , fontsize=14)
ax03.set_xlabel('raw', fontsize=13)
ax13.set_xlabel('log2', fontsize=13)
ax23.set_xlabel('total', fontsize=13)
ax33.set_xlabel('total_log2', fontsize=13)
ax33.legend(bbox_to_anchor=(1.1,0), loc='lower left',borderaxespad=0)
<matplotlib.legend.Legend at 0x7f657ce69e70>