Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pay attention to optional files when generating NGS analysis templates #466

Merged
merged 1 commit into from Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cidc_schemas/__init__.py
Expand Up @@ -2,4 +2,4 @@

__author__ = """James Lindsay"""
__email__ = "jlindsay@jimmy.harvard.edu"
__version__ = "0.24.35"
__version__ = "0.24.36"
Expand Up @@ -134,14 +134,16 @@
"merge_pointer": "/rna/haplotyper",
"gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/haplotyper.vcf.gz",
"type_ref": "assays/components/local_file.json#properties/file_path",
"is_artifact": 1
"is_artifact": 1,
"allow_empty": true
},
{
"parse_through": "lambda run: f'{folder or \"\"}analysis/rna/{run}/{run}_tnscope.filter.neoantigen.vep.rna.vcf'",
"merge_pointer": "/rna/vcf_tnscope_filter_neoantigen",
"gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/vcf_tnscope_filter_neoantigen.vcf",
"type_ref": "assays/components/local_file.json#properties/file_path",
"is_artifact": 1
"is_artifact": 1,
"allow_empty": true
},
{
"parse_through": "lambda run: f'{folder or \"\"}analysis/report.tar.gz'",
Expand Down
2 changes: 2 additions & 0 deletions cidc_schemas/template.py
Expand Up @@ -525,6 +525,8 @@ def _convert_api_to_template(name: str, schema: dict, assay_schema: dict):
"type_ref": "assays/components/local_file.json#properties/file_path",
"is_artifact": 1,
}
if entry.get("optional", False):
subsubtemplate["allow_empty"] = True

subtemplate[long_key]["process_as"].append(subsubtemplate)
used_merge_pointers.append(merge_pointer)
Expand Down