diff --git a/ddmc/figures/common.py b/ddmc/figures/common.py index d03e4bca..254e442a 100644 --- a/ddmc/figures/common.py +++ b/ddmc/figures/common.py @@ -304,55 +304,3 @@ def plot_pca_on_cluster_centers( axes[1].annotate( txt, (loadings[0][j] + 0.001, loadings[1][j] + 0.001), fontsize=10 ) - - -def ExportClusterFile(cluster, cptac=False, mcf7=False): - """Export cluster SVG file for NetPhorest and GO analysis.""" - if cptac: - c = pd.read_csv( - "ddmc/data/cluster_members/CPTAC_DDMC_35CL_W100_MembersCluster" - + str(cluster) - + ".csv" - ) - if mcf7: - c = pd.read_csv( - "ddmc/data/cluster_members/msresist/data/cluster_members/CPTAC_MF7_20CL_W5_MembersCluster" - + str(cluster) - + ".csv" - ) - c["pos"] = [s.split(s[0])[1].split("-")[0] for s in c["Position"]] - c["res"] = [s[0] for s in c["Position"]] - c.insert(4, "Gene_Human", [s + "_HUMAN" for s in c["Gene"]]) - c = c.drop(["Position"], axis=1) - drop_list = [ - "NHSL2", - "MAGI3", - "SYNC", - "LMNB2", - "PLS3", - "PI4KA", - "SYNM", - "MAP2", - "MIA2", - "SPRY4", - "KSR1", - "RUFY2", - "MAP11", - "MGA", - "PRR12", - "PCLO", - "NCOR2", - "BNIP3", - "CENPF", - "OTUD4", - "RPA1", - "CLU", - "CDK18", - "CHD1L", - "DEF6", - "MAST4", - "SSR3", - ] - for gene in drop_list: - c = c[c["Gene"] != gene] - c.to_csv("Cluster_" + str(cluster) + ".csv")