Skip to content

Commit 765d9f0

Browse files
committed
Making a small change so I can test this on AWS:
1 parent a03cbaa commit 765d9f0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build/build_all.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
parser.add_argument('--figshare', action='store_true', help="Upload all local data to Figshare. FIGSHARE_TOKEN must be set in local environment.")
4141
parser.add_argument('--all',dest='all',default=False,action='store_true', help="Run all data build commands. This includes docker, samples, omics, drugs, exp arguments. This does not run the validate or figshare commands")
4242
parser.add_argument('--high_mem',dest='high_mem',default=False,action='store_true',help = "If you have 32 or more CPUs, this option is recommended. It will run many code portions in parallel. If you don't have enough memory, this will cause a run failure.")
43-
parser.add_argument('--dataset',dest='datasets',default='broad_sanger,hcmi,beataml,cptac,mpnst,mpnstpdx,pancpdo',help='Datasets to process. Defaults to all available.')
43+
parser.add_argument('--dataset',dest='datasets',default='broad_sanger,hcmi,beataml,cptac,mpnst,mpnstpdx,pancpdo,bladderpdo',help='Datasets to process. Defaults to all available.')
4444
parser.add_argument('--version', type=str, required=False, help='Version number for the Figshare upload title (e.g., "0.1.29"). This is required for Figshare upload. This must be a higher version than previously published versions.')
4545
parser.add_argument('--github-username', type=str, required=False, help='GitHub username for the repository.')
4646
parser.add_argument('--github-email', type=str, required=False, help='GitHub email for the repository.')
@@ -121,6 +121,7 @@ def process_docker(datasets):
121121
'mpnst': ['mpnst'],
122122
'mpnstpdx': ['mpnstpdx'],
123123
'pancpdo': ['pancpdo'],
124+
'bladderpdo': ['bladderpdo'],
124125
'cptac': ['cptac'],
125126
'genes': ['genes'],
126127
'upload': ['upload']
@@ -328,7 +329,7 @@ def get_latest_commit_hash(owner, repo, branch='main'):
328329
# Error handling for required tokens
329330
if args.figshare and not figshare_token:
330331
raise ValueError("FIGSHARE_TOKEN environment variable is not set.")
331-
if ('beataml' in args.datasets or 'mpnst' in args.datasets) and not synapse_auth_token:
332+
if any(dataset in args.datasets for dataset in ['beataml', 'mpnst', 'bladderpdo', 'pancpdo']) and not synapse_auth_token:
332333
if args.docker or args.samples or args.omics or args.drugs or args.exp or args.all: # Token only required if building data, not upload or validate.
333334
raise ValueError("SYNAPSE_AUTH_TOKEN is required for accessing MPNST and beatAML datasets.")
334335

@@ -407,7 +408,7 @@ def get_latest_commit_hash(owner, repo, branch='main'):
407408
# if args.figshare or args.validate:
408409
# FigShare File Prefixes:
409410

410-
prefixes = ['beataml', 'hcmi', 'cptac', 'mpnst', 'genes', 'drugs']
411+
prefixes = ['beataml', 'hcmi', 'cptac', 'mpnst', 'mpnstpdx', 'pancpdo', 'bladderpdo', 'genes', 'drugs']
411412
broad_sanger_datasets = ["ccle","ctrpv2","fimm","gdscv1","gdscv2","gcsi","prism","nci60"]
412413
if "broad_sanger" in datasets:
413414
prefixes.extend(broad_sanger_datasets)

0 commit comments

Comments
 (0)