From b095aff4bb798419069970d21865b6eb94f139a8 Mon Sep 17 00:00:00 2001 From: Damion Dooley Date: Sun, 15 Nov 2020 12:03:28 -0800 Subject: [PATCH] provenance tweak for CNPHI --- script/main.js | 6 +++--- template/canada_covid19/data.js | 5 +++++ template/canada_covid19/data.tsv | 2 +- template/canada_covid19/export.js | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/script/main.js b/script/main.js index 5a4a52a8..53684201 100644 --- a/script/main.js +++ b/script/main.js @@ -11,7 +11,7 @@ * main.html?template=test_template * */ -const VERSION = '0.13.6'; +const VERSION = '0.13.7'; const TEMPLATES = { 'CanCOGeN Covid-19': {'folder': 'canada_covid19', 'status': 'published'}, 'PHAC Dexa (ALPHA)': {'folder': 'phac_dexa', 'status': 'draft'}, @@ -946,7 +946,7 @@ const getInvalidCells = (hot, data) => { }; /** - * Test cellVal against DataHarmonizer: vX.Y.Z pattern and if it needs an + * Test cellVal against DataHarmonizer provenance: vX.Y.Z pattern and if it needs an * update, do so. * @param {Object} cellVal field value to be tested. * @param {Object} hot link to data @@ -954,7 +954,7 @@ const getInvalidCells = (hot, data) => { * @param {Integer} column index of data */ const checkProvenance = (cellVal, hot, row, col) => { - const version = 'DataHarmonizer: v' + VERSION; + const version = 'DataHarmonizer provenance: v' + VERSION; let splitVal = []; if (!cellVal) { splitVal = [version]; diff --git a/template/canada_covid19/data.js b/template/canada_covid19/data.js index 1fd6b296..d683f298 100644 --- a/template/canada_covid19/data.js +++ b/template/canada_covid19/data.js @@ -3561,6 +3561,11 @@ var DATA = [ { "field": "DataHarmonizer provenance" } + ], + "CNPHI": [ + { + "field": "additional comments" + } ] } } diff --git a/template/canada_covid19/data.tsv b/template/canada_covid19/data.tsv index 8f610d41..67a0b7df 100644 --- a/template/canada_covid19/data.tsv +++ b/template/canada_covid19/data.tsv @@ -123,7 +123,7 @@ Risk Factor: A variable associated with an increased risk of disease or infectio Pathogen diagnostic testing diagnostic pcr Ct value 2 xs:token The Ct value result from a diagnostic SARS-CoV-2 RT-PCR test. Provide the CT value of the sample from the second diagnostic RT-PCR test. 36 Gene Target #2 CT Value Contributor acknowledgement Contributor acknowledgement authors xs:token recommended Names of individuals contributing to the processes of sample collection, sequence generation, analysis, and data submission. Include the first and last names of all individuals that should be attributed, separated by a comma. Tejinder Singh, Fei Hu, Joe Blogs Authors - Contributor acknowledgement DataHarmonizer provenance provenance DataHarmonizer provenance + Contributor acknowledgement DataHarmonizer provenance provenance DataHarmonizer provenance additional comments umbrella bioproject accession PRJNA623807 diff --git a/template/canada_covid19/export.js b/template/canada_covid19/export.js index 55cc293a..2877b85f 100644 --- a/template/canada_covid19/export.js +++ b/template/canada_covid19/export.js @@ -176,7 +176,7 @@ var exportLASER = (baseName, hot, data, xlsx, fileType) => { ['Gene Target #1 CT Value',[]], ['Gene Target #2',[]], ['Gene Target #2 CT Value',[]], - //['DataHarmonizer provenance',[]] + ['additional comments',[]] ]); const sourceFields = getFields(data);