Skip to content

Commit

Permalink
[DATALAD RUNCMD] Rename hplc_recovery_fractions to hplc_recovery_frac…
Browse files Browse the repository at this point in the history
…tion

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git-sedi hplc_recovery_fractions hplc_recovery_fraction",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed May 15, 2024
1 parent 0f7b5bf commit f9a2ae3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/schema/objects/columns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ high_cutoff:
- type: string
enum:
- n/a
hplc_recovery_fractions:
name: hplc_recovery_fractions
hplc_recovery_fraction:
name: hplc_recovery_fraction
display_name: HPLC recovery fractions
description: |
HPLC recovery fractions (the fraction of activity that gets loaded onto the HPLC).
Expand Down
2 changes: 1 addition & 1 deletion src/schema/objects/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ MetaboliteRecoveryCorrectionApplied:
description: |
Metabolite recovery correction from the HPLC, for tracers where it changes
with time postinjection.
If `true`, the `hplc_recovery_fractions` column MUST be present in the
If `true`, the `hplc_recovery_fraction` column MUST be present in the
corresponding `*_blood.tsv` file.
type: boolean
MiscChannelCount:
Expand Down
4 changes: 2 additions & 2 deletions src/schema/rules/tabular_data/pet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Blood:
metabolite_polar_fraction:
level: optional
level_addendum: recommended if `MetaboliteAvail` is `true`
hplc_recovery_fractions:
hplc_recovery_fraction:
level: optional
level_addendum: required if `MetaboliteRecoveryCorrectionApplied` is `true`
whole_blood_radioactivity:
Expand Down Expand Up @@ -48,7 +48,7 @@ BloodMetaboliteCorrection:
- extension == ".tsv"
- sidecar.MetaboliteRecoveryCorrectionApplied == true
columns:
hplc_recovery_fractions: required
hplc_recovery_fraction: required

BloodWholeBlood:
selectors:
Expand Down
2 changes: 1 addition & 1 deletion tools/schemacode/bidsschematools/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def migrate_tsv_columns(dataset_path: Path):
# inheritance principle)
for col_from, col_to, file_glob in (
# https://github.com/bids-standard/bids-2-devel/issues/78
("hplc_recovery_fractions", "hplc_recovery_fraction", "*_blood.*"),
("hplc_recovery_fraction", "hplc_recovery_fraction", "*_blood.*"),
# https://github.com/bids-standard/bids-2-devel/issues/15
("units", "unit", "_channels.*"), # dependency on migrate_participants
# ??? Any other columns to rename for some reason?
Expand Down

0 comments on commit f9a2ae3

Please sign in to comment.