-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add temp script for boutiques and bids model graph
- Loading branch information
Showing
5 changed files
with
27 additions
and
113 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters