Beispiel #1
0
ops = Operations()
ops.f_getSignature()
ops.f_KMEANS_Sig(nClusters=17, isTSNE=True)

List_Cluster, List_Pred, List_TP = ops.f_KMeans_Result()
print '# of Gene Assoc With GoI: ' + str(len(List_Cluster))
print List_Cluster
print '# of Predictions: ' + str(len(List_Pred))
print List_Pred
print '# of True Positive: ' + str(len(List_TP))
print List_TP

## Visualization by trajectories
vis = Visualization(Dir='Img/tSNE')
vis.f_GoI(List_Cluster)
vis.f_plot_trajectory(isLegend=False,
                      isGoI=True,
                      isOutput=True,
                      isGrid=False,
                      isLabel=False,
                      style=None,
                      FileName='Trajectories_KMeans_tSNE_cluster.pdf')

vis.f_GoI(List_Pred)
vis.f_plot_trajectory(isLegend=True,
                      isGoI=True,
                      isOutput=True,
                      isGrid=False,
                      isLabel=False,
                      style=None,
Beispiel #2
0
ops.f_get_GoI_label()

# Tendency for TP
ops.f_GoI(TP_set)
ops.f_get_GoI_label()

# Tendency for Pred
ops.f_GoI(Pred_set)
ops.f_get_GoI_label()
# raw_input('Press to Cntnue')

############### Visualization ###############
## Plot time-course signature of cluseter
vis = Visualization(Dir='Img/HMM')
# Visulaize Trajectory of genes in the cluster assoc with GoI
vis.f_GoI(glist)
vis.f_plot_trajectory(isLegend=False,
                      isGoI=True,
                      isOutput=True,
                      isGrid=False,
                      isLabel=False,
                      style=None,
                      FileName='Trajectories_HMM_Cluster.pdf')

# Visulaize Trajectory of Predicted TFs
vis.f_GoI(Pred_set)
vis.f_plot_trajectory(isLegend=True,
                      isGoI=True,
                      isOutput=True,
                      isGrid=False,
                      isLabel=False,