Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
BIDS-cfood
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
crawler-extensions
BIDS-cfood
Commits
0513a250
Commit
0513a250
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
ENH: distinguish between side car file and t1weighted image
parent
9f8f825f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/bids-cfood/cfood.yml
+6
-1
6 additions, 1 deletion
src/bids-cfood/cfood.yml
src/bids-cfood/model.yml
+1
-0
1 addition, 0 deletions
src/bids-cfood/model.yml
with
7 additions
and
1 deletion
src/bids-cfood/cfood.yml
+
6
−
1
View file @
0513a250
...
...
@@ -34,10 +34,11 @@ metadata:
params
:
suffix
:
null
parent
:
null
extension
:
"
[.a-zA-Z0-9]+"
definition
:
${parent}_datafile
:
type
:
SimpleFile
match
:
^sub-(?P<sub>[a-zA-Z0-9]+)(_ses-(?P<ses>[a-zA-Z0-9]+))?(_acq-(?P<acq>[a-zA-Z0-9]+))?(_ce-(?P<ce>[a-zA-Z0-9]+))?(_rec-(?P<rec>[a-zA-Z0-9]+))?(_run-(?P<run>[a-zA-Z0-9]+))?(_mod-(?P<mod>[a-zA-Z0-9]+))?(_echo-(?P<echo>[a-zA-Z0-9]+))?(_inv-(?P<inv>[a-zA-Z0-9]+))?(_flip-(?P<flip>[a-zA-Z0-9]+))?(_mt-(?P<mt>[a-zA-Z0-9]+))?(_part-(?P<part>[a-zA-Z0-9]+))?(_(?P<suffix>${suffix}))?\.(?P<extension>
[.a-zA-Z0-9]+
)$
match
:
^sub-(?P<sub>[a-zA-Z0-9]+)(_ses-(?P<ses>[a-zA-Z0-9]+))?(_acq-(?P<acq>[a-zA-Z0-9]+))?(_ce-(?P<ce>[a-zA-Z0-9]+))?(_rec-(?P<rec>[a-zA-Z0-9]+))?(_run-(?P<run>[a-zA-Z0-9]+))?(_mod-(?P<mod>[a-zA-Z0-9]+))?(_echo-(?P<echo>[a-zA-Z0-9]+))?(_inv-(?P<inv>[a-zA-Z0-9]+))?(_flip-(?P<flip>[a-zA-Z0-9]+))?(_mt-(?P<mt>[a-zA-Z0-9]+))?(_part-(?P<part>[a-zA-Z0-9]+))?(_(?P<suffix>${suffix}))?\.(?P<extension>
${extension}
)$
records
:
someFile
:
parents
:
...
...
@@ -476,6 +477,10 @@ project_level:
parent
:
"
MagnetizationTransferSaturation"
-
suffix
:
T1w
parent
:
"
T1WeightedImage"
extension
:
"
(nii(
\
.gz))?"
-
suffix
:
T1w
parent
:
"
JSONSidecar"
extension
:
"
json"
-
suffix
:
T2starw
parent
:
"
T2starWeightedImage"
-
suffix
:
inplaneT1
...
...
This diff is collapsed.
Click to expand it.
src/bids-cfood/model.yml
+
1
−
0
View file @
0513a250
...
...
@@ -66,6 +66,7 @@ Subject:
Session
:
label
:
datatype
:
TEXT
JSONSidecar
:
Session
:
description
:
"
A
logical
grouping
of
neuroimaging
and
behavioral
data
consistent
across
subjects.
Session
can
(but
doesn't
have
to)
be
synonymous
to
a
visit
in
a
longitudinal
study.
In
general,
subjects
will
stay
in
the
scanner
during
one
session.
However,
for
example,
if
a
subject
has
to
leave
the
scanner
room
and
then
be
re-positioned
on
the
scanner
bed,
the
set
of
MRI
acquisitions
will
still
be
considered
as
a
session
and
match
sessions
acquired
in
other
subjects.
Similarly,
in
situations
where
different
data
types
are
obtained
over
several
visits
(for
example
fMRI
on
one
day
followed
by
DWI
the
day
after)
those
can
be
grouped
in
one
session.
Defining
multiple
sessions
is
appropriate
when
several
identical
or
similar
data
acquisitions
are
planned
and
performed
on
all
-or
most-
subjects,
often
in
the
case
of
some
intervention
between
sessions
(for
example,
training).
https://bids-specification.readthedocs.io/en/stable/appendices/entities.html#ses"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment