Skip to content

Commit

Permalink
provenance tweak for CNPHI
Browse files Browse the repository at this point in the history
  • Loading branch information
Damion Dooley committed Nov 15, 2020
1 parent 165ff70 commit b095aff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -946,15 +946,15 @@ 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
* @param {Integer} row index of 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];
Expand Down
5 changes: 5 additions & 0 deletions template/canada_covid19/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,11 @@ var DATA = [
{
"field": "DataHarmonizer provenance"
}
],
"CNPHI": [
{
"field": "additional comments"
}
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion template/canada_covid19/data.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion template/canada_covid19/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b095aff

Please sign in to comment.