Skip to content

Commit

Permalink
fix to pac_dexa export to GRDI Biosample.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Jul 31, 2024
1 parent 215a4cb commit 4925e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/templates/phac_dexa/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
// Copy headers to 1st row of new export table
const outputMatrix = [[...ExportHeaders.keys()]];

let normalize = self.initLookup();
let normalize = self.initLookup(self);

const inputMatrix = dh.getTrimmedData(dh.hot);
for (const inputRow of inputMatrix) {
Expand Down Expand Up @@ -345,7 +345,7 @@ export default {
*
* @return {Object} term normalize lookup table.
*/
initLookup: function () {
initLookup: function (self) {
let normalize = {};
for (const line of self.LOOKUP.split('\n')) {
let [ontology_id, parent, label, normalization] = line
Expand Down

0 comments on commit 4925e6a

Please sign in to comment.