Skip to content

Commit

Permalink
Change cancer type IDs to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Tan committed Aug 1, 2018
1 parent 43f8c38 commit 054429f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/portalinfo/cancertypes.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
*.swp
*.swp
.idea
2 changes: 1 addition & 1 deletion seedDB/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ When using a release version **> 1.14.0**, a migration step to a new database sc

**Schema 2.6.0**: [SQL file with create table statements](https://raw.githubusercontent.com/cBioPortal/cbioportal/v1.13.1/db-scripts/src/main/resources/cgds.sql)<br>
**Seed database**: [seed-cbioportal_hg19_v2.6.0.sql.gz](https://github.com/cBioPortal/datahub/raw/master/seedDB/seed-cbioportal_hg19_v2.6.0.sql.gz)<br>
md5sum 4f418394148cb4c0af8a4d739df2dfd7
md5sum ae7b20340476b0bfcde92ff8379d526c

Contents of seed database:
- Entrez Gene IDs, HGNC symbols and gene aliases updated in April 2018 from [NCBI](ftp://ftp.ncbi.nih.gov/gene/DATA/GENE_INFO/Mammalia/Homo_sapiens.gene_info.gz)
Expand Down
Binary file modified seedDB/seed-cbioportal_hg19_v2.6.0.sql.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions seedDB/update_cancer_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def parse_cancer_types_json(cancer_types_json):
def flatten_oncotree(node, node_name):
"""Recursive function to flatten the JSON formatted cancer types"""

type_of_cancer_id = node_name
type_of_cancer_id = node_name.lower()
name = node['name']
clinical_trial_keywords = node['name'].lower()
dedicated_color = node['color']
short_name = node_name
parent = node['parent']
parent = node['parent'].lower()

cancer_type = [type_of_cancer_id, name, clinical_trial_keywords, dedicated_color, short_name, parent]
cancer_types.append(cancer_type)
Expand Down

0 comments on commit 054429f

Please sign in to comment.