Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bidsme_examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
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
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIGA-CRC Human Imaging
Public
BIDStools
BIDSme
bidsme_examples
Commits
91a619c9
Commit
91a619c9
authored
5 years ago
by
nbeliy
Browse files
Options
Downloads
Patches
Plain Diff
improved readme
parent
b7e66250
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example1/README.md
+195
-111
195 additions, 111 deletions
example1/README.md
example1/resources/plugins/bidsify_plugin.py
+2
-0
2 additions, 0 deletions
example1/resources/plugins/bidsify_plugin.py
with
197 additions
and
111 deletions
example1/
resources/
README.md
→
example1/README.md
+
195
−
111
View file @
91a619c9
This diff is collapsed.
Click to expand it.
example1/resources/plugins/bidsify_plugin.py
+
2
−
0
View file @
91a619c9
...
...
@@ -80,12 +80,14 @@ def SubjectEP(scan):
# This will demonstrate the subject renaming
# namely increasing the id by 1
"""
sub_id = int(scan.subject[4:])
scan.subject =
"
sub-{:03d}
"
.format(sub_id + 1)
# changing also in participant.tsv file
if scan.sub_values[
"
paired
"
]:
pair_id = int(scan.sub_values[
"
paired
"
][4:])
scan.sub_values[
"
paired
"
] =
"
sub-{:03d}
"
.format(pair_id + 1)
"""
#################################
# Subject metadata manipulation #
...
...
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