Skip to content

Commit

Permalink
add temp script for boutiques and bids model graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 10, 2024
1 parent 4659cd6 commit 5aff4f4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 113 deletions.
103 changes: 0 additions & 103 deletions WIP/boutiques/bidspm.json

This file was deleted.

9 changes: 0 additions & 9 deletions WIP/boutiques/invocation.json

This file was deleted.

15 changes: 15 additions & 0 deletions WIP/create_boutiques_descriptor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import boutiques.creator as bc

from bidspm.parsers import common_parser

newDescriptor = bc.CreateDescriptor(common_parser(), execname="bidspm")

newDescriptor.save("my-new-descriptor.json")

# args = common_parser.parse_args()
# invoc = newDescriptor.createInvocation(args)

# # Then, if you want to save them to a file...
# import json
# with open('my-inputs.json', 'w') as fhandle:
# fhandle.write(json.dumps(invoc, indent=4))
11 changes: 11 additions & 0 deletions WIP/write_model_graph.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pathlib import Path

from bids.modeling.statsmodels import BIDSStatsModelsGraph

graph = BIDSStatsModelsGraph(
layout=Path("/home/remi/github/cpp-lln-lab/bidspm/demos/MoAE/inputs/raw"),
model="/home/remi/github/cpp-lln-lab/bidspm/demos/openneuro/models/model-narps_desc-U26C_smdl.json",
)


graph.write_graph()
2 changes: 1 addition & 1 deletion src/bidspm/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def common_parser() -> argparse.ArgumentParser:
type=str,
nargs=1,
default="neuromorphometrics",
choices=SUPPORTED_ATLASES,
choices=list(SUPPORTED_ATLASES),
)

stats_only = parser.add_argument_group("stats only arguments")
Expand Down

0 comments on commit 5aff4f4

Please sign in to comment.