Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BIDS tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
NTrepo
BIDS tools
Merge requests
!1
new laura folder
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
new laura folder
au620747-main-patch-86964
into
main
Overview
1
Commits
14
Pipelines
0
Changes
1
Merged
Laura Rævsbæk Birch
requested to merge
au620747-main-patch-86964
into
main
1 year ago
Overview
1
Commits
14
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5a3ddb28
Prev
Next
Show latest version
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5a3ddb28
Upload New File
· 5a3ddb28
Laura Rævsbæk Birch
authored
1 year ago
laura/ntlab_create_participants_subonly_tsv.py
0 → 100644
+
15
−
0
Options
import
csv
def
create_participants_subonly_tsv
(
filepath
,
subjects
):
participants
=
[]
with
open
(
filepath
,
'
wt
'
)
as
out_file
:
tsv_writer
=
csv
.
writer
(
out_file
,
delimiter
=
'
\t
'
,
lineterminator
=
'
\n
'
)
participants
.
append
(
'
participant_id
'
)
tsv_writer
.
writerow
(
participants
)
participants
.
clear
()
for
sub
in
subjects
:
participants
.
append
(
sub
)
tsv_writer
.
writerow
(
participants
)
participants
.
clear
()
\ No newline at end of file
Loading