plot_pc=scatter_column.plotly_chart(px.scatter(data_frame=pc_data,x=pc_1,y=pc_2,template="simple_white",height=800,color=categorical_variable,hover_data=[categorical_variable_2],hover_name=pc_data.index,title="PC plot of sample spectra"))
plot_pc=scatter_column.plotly_chart(px.scatter(data_frame=pc_data,x=pc_1,y=pc_2,template="simple_white",height=800,color=categorical_variable,hover_data=[categorical_variable_2],hover_name=pc_data.index,title="PC plot of sample spectra"))
# Clustering method
# Clustering method
cluster_type=['','k-means']
cluster_type=['','k-means','umap']
# cluster_type = ['k-means', 'umap'] # uncomment if more clustering algorithms available
# cluster_type = ['k-means', 'umap'] # uncomment if more clustering algorithms available