-
Notifications
You must be signed in to change notification settings - Fork 124
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
Loading collections fails when derivatives is outside parent directory #383
Comments
Can you try this in 0.8 (#369) and see what happens? |
Looks like the same issue in 0.8 |
Isn't this a feature? Aren't we supposed to be producing valid sidecars for derivatives? I'm pretty sure we had a discussion and metadata isn't supposed to bleed between datasets. |
That makes sense to me. In that case then its a bug that it does bleed between derivatives and the main dataset. I assume fmriprep will soon (or already does) produce this sort of meta-data soon? |
It should. It turns out this is a major pain to implement, though. |
@adelavega in 0.8, by default, |
I used I need to re-test what happens with a derivative folder that is actually inside the bids dir. You are saying it should fail again because meta-data should no longer bleed? In this case, I'll have to temporarily modify the fmriprep datasets we've published to include TR metadata until fmriprep can produce it. |
I need to go look at what (if anything) the spec says about this. It may also require an overhaul of the way non-imaging data files are read in (there are other reasons to want to do that as well). For the time being, yeah, let's just work around the issue by putting a single |
I think in 0.9 (see sqlalchemy branch) metadata should no longer bleed between raw and derivative directories. Feel free to test and confirm. |
If layout is set up as such:
layout = BIDSLayout('/bids', derivatives='/fmriprep')
Then the following will fails
layout.get_collections()
because the TR for an image in the derivatives can't be found:
If I instead add a symlink to
derivatives/fmriprep
then it works.This might be a more general issue of how meta-data is searched when the root folder differs.
The text was updated successfully, but these errors were encountered: