Skip to content

Commit 5aff4f4

Browse files
committed
add temp script for boutiques and bids model graph
1 parent 4659cd6 commit 5aff4f4

File tree

5 files changed

+27
-113
lines changed

5 files changed

+27
-113
lines changed

WIP/boutiques/bidspm.json

Lines changed: 0 additions & 103 deletions
This file was deleted.

WIP/boutiques/invocation.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

WIP/create_boutiques_descriptor.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import boutiques.creator as bc
2+
3+
from bidspm.parsers import common_parser
4+
5+
newDescriptor = bc.CreateDescriptor(common_parser(), execname="bidspm")
6+
7+
newDescriptor.save("my-new-descriptor.json")
8+
9+
# args = common_parser.parse_args()
10+
# invoc = newDescriptor.createInvocation(args)
11+
12+
# # Then, if you want to save them to a file...
13+
# import json
14+
# with open('my-inputs.json', 'w') as fhandle:
15+
# fhandle.write(json.dumps(invoc, indent=4))

WIP/write_model_graph.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pathlib import Path
2+
3+
from bids.modeling.statsmodels import BIDSStatsModelsGraph
4+
5+
graph = BIDSStatsModelsGraph(
6+
layout=Path("/home/remi/github/cpp-lln-lab/bidspm/demos/MoAE/inputs/raw"),
7+
model="/home/remi/github/cpp-lln-lab/bidspm/demos/openneuro/models/model-narps_desc-U26C_smdl.json",
8+
)
9+
10+
11+
graph.write_graph()

src/bidspm/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def common_parser() -> argparse.ArgumentParser:
289289
type=str,
290290
nargs=1,
291291
default="neuromorphometrics",
292-
choices=SUPPORTED_ATLASES,
292+
choices=list(SUPPORTED_ATLASES),
293293
)
294294

295295
stats_only = parser.add_argument_group("stats only arguments")

0 commit comments

Comments
 (0)