Skip to content

Commit

Permalink
fix: add unit to spectra width Bioschemas
Browse files Browse the repository at this point in the history
  • Loading branch information
NRayya committed May 22, 2024
1 parent 702b205 commit 20078e1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class BioschemasController extends Controller
* @param Illuminate\Http\Request $request
* @param App\Models\User $username
* @param App\Models\Project $projectName
* @param App\Models\Study $studyName Optional
* @param App\Models\Dataset $datasetName Optional
* @param App\Models\Study $studyName Optional
* @param App\Models\Dataset $datasetName Optional
* @return object
*/
/**
Expand Down Expand Up @@ -281,7 +281,6 @@ public function prepareExperiment($dataset)
$experiment = 'c13';
}
}

if ($experiment == 'proton') {
$experimentSchema = BioschemasHelper::prepareDefinedTerm('1H nuclear magnetic resonance spectroscopy', ['1H-NMR spectrometry', 'proton nuclear magnetic resonance spectroscopy', '1H-NMR spectroscopy', '1H-NMR', '1H NMR', '1H NMR spectroscopy', '1H nuclear magnetic resonance spectrometry', 'proton NMR'], 'CHMO:0000593', 'http://purl.obolibrary.org/obo/CHMO_0000593', $chmo);
} elseif ($experiment == 'c13') {
Expand Down Expand Up @@ -384,7 +383,7 @@ public function prepareNMRiumInfo($dataset)
$fieldStrengthProperty = BioschemasHelper::preparePropertyValue('magnetic field strength', 'MR:1400253', $fieldStrength, 'http://purl.obolibrary.org/obo/UO_0000228');
$numberOfScansProperty = BioschemasHelper::preparePropertyValue('number of scans', 'NMR:1400087', $numberOfScans, 'scans');
$pulseSequenceProperty = BioschemasHelper::preparePropertyValue('nuclear magnetic resonance pulse sequence', 'CHMO:0001841', $pulseSequence, null);
$spectralWidthProperty = BioschemasHelper::preparePropertyValue('Spectral Width', 'NCIT:C156496', $spectralWidth, null); //todo: add unit
$spectralWidthProperty = BioschemasHelper::preparePropertyValue('Spectral Width', 'NCIT:C156496', $spectralWidth, 'http://purl.obolibrary.org/obo/UO_0000169');
$numberOfPointsProperty = BioschemasHelper::preparePropertyValue('number of data points', 'NMR:1000176', $numberOfPoints, 'points');
$relaxationTimeProperty = BioschemasHelper::preparePropertyValue('relaxation time measurement', 'FIX:0000202', $relaxationTime, 'http://purl.obolibrary.org/obo/UO_0000010');

Expand Down

0 comments on commit 20078e1

Please # to comment.