Skip to content

Commit

Permalink
delete unused function, can always restore
Browse files Browse the repository at this point in the history
  • Loading branch information
armaan-abraham committed Feb 3, 2024
1 parent 3a905f1 commit 49ddb57
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions ddmc/figures/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 49ddb57

Please sign in to comment.