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

Multiple "OR" criteria for a description #3

Closed
pvelasco opened this issue Oct 31, 2017 · 1 comment
Closed

Multiple "OR" criteria for a description #3

pvelasco opened this issue Oct 31, 2017 · 1 comment

Comments

@pvelasco
Copy link

Hi Johan,
I would like to have the tool accept more than one criteria to do the classification. For example, based on the example/config.json file, a run will be classified as T1w if the string "T1W_3D" appears in the "SeriesDescription". However, many times, the T1w file contains "MPRAGE" instead. Is it possible to have a config.json file that will work for both scenarios?
I tried changing the criteria for the T1w to something like:

 {
    "dataType": "anat",
    "suffix": "T1w",
    "criteria": {
        "in": {"SeriesDescription": [ "T1W_3D" ,
                                      "T1w" ,
                                      "MPRAGE" ,
                                      "MP-RAGE"
                                    ]
              }
    }
},

but when I run the code, it doesn't match the criteria.

I also tried:

{
    "dataType": "anat",
    "suffix": "T1w",
    "criteria": [
{
    "in": {"SeriesDescription": "T1W_3D"}
},
{
    "in": {"SeriesDescription": "T1w"}
}
]
},

But, again, it doesn't match.

I assume the code in sidecarparser will need to be changed, but how to do that in a way that it still respect the case in which you have to match several criteria at the same time (like match the series description AND the echotime)?

Thanks!

-Pablo

@jooh
Copy link
Owner

jooh commented Oct 31, 2017 via email

@jooh jooh closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants