Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --bids-filter-file option to command-line interface #62

Open
tsalo opened this issue Jan 23, 2024 · 3 comments
Open

Add --bids-filter-file option to command-line interface #62

tsalo opened this issue Jan 23, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tsalo
Copy link
Member

tsalo commented Jan 23, 2024

It might be useful to allow users to provide a filter file to the command line.

@tsalo tsalo added the enhancement New feature or request label Jan 23, 2024
@Remi-Gau
Copy link
Contributor

agreed !!

@tsalo
Copy link
Member Author

tsalo commented Feb 5, 2024

Given that there aren't target variables like there would be in BIDS Apps (e.g., "bold" for the BOLD files), the actual structure of the filter file will need to be somewhat different from other, similar cases.

@tsalo
Copy link
Member Author

tsalo commented Feb 5, 2024

We'll want to support non-overlapping queries as well, so perhaps a list of dictionaries? For example, if users want to report on DWI scans from the first two sessions, but BOLD only from the first session, we might do something like this:

[
    {"session": ["01", "02"], "suffix": ["dwi"], "run": ["01", "02"]},
    {"session": ["01"], "suffix": ["bold"], "task": ["rest", "nback"], "run": ["01", "02", null]}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants