Skip to content

Commit

Permalink
Merge pull request #14 from broadinstitute/add-columns-to-released-pr…
Browse files Browse the repository at this point in the history
…-meta

Add columns to OmicsProfiles.csv, update files released to public
  • Loading branch information
gulatide authored Mar 29, 2024
2 parents 0e9e5a2 + c521c46 commit 7b6e513
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions depmap_omics_upload/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@
"ModelCondition",
"ModelID",
"Datatype",
"Baits"
"Baits",
"actual_seq_technology",
"Stranded",
"Source"
],
"virtual_filenames_nummat_exp_model": {
"proteinCoding_genes_tpm_logp1_profile": "OmicsExpressionProteinCodingGenesTPMLogp1",
Expand Down Expand Up @@ -194,7 +197,8 @@
"internal": [],
"dmc": [],
"public": [
"structuralVariants_profile"
"structuralVariants_profile",
"armLevelCNA_profile"
]
},
"taiga_expression": "expression-d035",
Expand Down
6 changes: 5 additions & 1 deletion depmap_omics_upload/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,11 @@ def makeProfileTable(prs, columns=config["profile_table_cols"]):
"""
mytracker = track.SampleTracker()
pr_table = mytracker.add_model_cols_to_prtable(["ModelID"])
pr_table = pr_table.loc[prs, columns].rename(columns={"Baits": "WESKit"})
seq_table = mytracker.read_seq_table()
mc_table = mytracker.read_mc_table()
pr_table["Stranded"] = pr_table["MainSequencingID"].map(dict(zip(seq_table.index, seq_table.stranded)))
pr_table["Source"] = pr_table["ModelCondition"].map(dict(zip(mc_table.index, mc_table.Source)))
pr_table = pr_table.loc[prs, columns].rename(columns={"Baits": "WESKit", "actual_seq_technology": "Product"})
pr_table = pr_table[pr_table["Datatype"].isin(["rna", "wgs", "wes", "SNParray"])]
pr_table.loc[
pr_table[pr_table["Datatype"].isin(["rna", "wgs", "SNParray"])].index.tolist(),
Expand Down

0 comments on commit 7b6e513

Please sign in to comment.