Skip to content

Commit

Permalink
fixed asasy
Browse files Browse the repository at this point in the history
  • Loading branch information
feserm committed Dec 15, 2023
1 parent 4bb4edf commit 9057085
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
20 changes: 19 additions & 1 deletion src/components/isa/assay/Assay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,25 @@
let emptyProcess = Schemas.getObjectFromSchema('process');
emptyProcess.executesProtocol = protocol;
protocol.parameters.forEach(parameter => {
emptyProcess.parameterValues.push(row[columnNames.indexOf(parameter.parameterName.annotationValue)])
// emptyProcess.parameterValues.push(row[columnNames.indexOf(parameter.parameterName.annotationValue)])
let emptyParameter = Schemas.getObjectFromSchema('process_parameter_value');
// let emptyCategory = Schemas.getObjectFromSchema('protocol_parameter');
let emptyOntologyAnnotation = Schemas.getObjectFromSchema('ontology_annotation');
emptyOntologyAnnotation.annotationValue="";
// emptyOntologyAnnotation.annotationValue = parameter.parameterName.annotationValue;
// emptyCategory.parameterName = parameter.parameterName.annotationValue;
emptyParameter.category = parameter;
emptyParameter.value = row[columnNames.indexOf(parameter.parameterName.annotationValue)];
emptyParameter.unit = emptyOntologyAnnotation;
// emptyProcess.parameterValues.push(row[columnNames.indexOf(parameter.parameterName.annotationValue)])
console.log(emptyParameter);
emptyProcess.parameterValues.push(emptyParameter);
emptyProcess.inputs = [];
emptyProcess.outputs = [];
emptyProcess.inputs.push(emptySample);
let emptyOutput = Schemas.getObjectFromSchema('sample');
emptyOutput.name = row[columnNames.indexOf('Assay Name')];
emptyProcess.outputs.push(emptyOutput );
});
assay.processSequence = [...assay.processSequence,emptyProcess];
});
Expand Down
10 changes: 0 additions & 10 deletions src/components/isa/generic/materials/Materials.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@
let emptySource = Schemas.getObjectFromSchema('source');
emptySource.name = row[columnNames.indexOf('Material Name')];
emptySource.characteristics = [];
// emptySource.characteristics.push({
// Organism: row[columnNames.indexOf('Organism')],
// Genus: row[columnNames.indexOf('Genus')],
// Species: row[columnNames.indexOf('Species')],
// Infraspecific_name: row[columnNames.indexOf('Infraspecific Name')],
// Biological_material_latitude: row[columnNames.indexOf('Latitude')],
// Biological_material_longitude: row[columnNames.indexOf('Longitude')],
// Variety_name: row[columnNames.indexOf('Variety Name')],
// Variety_database: row[columnNames.indexOf('Variety Database')],
// });
emptySource.characteristics.push(Schemas.createCharacteristicObject('Organism', row[columnNames.indexOf('Organism')]));
emptySource.characteristics.push(Schemas.createCharacteristicObject('Genus', row[columnNames.indexOf('Genus')]));
emptySource.characteristics.push(Schemas.createCharacteristicObject('Species', row[columnNames.indexOf('Species')]));
Expand Down

0 comments on commit 9057085

Please sign in to comment.