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 skeleton of meta and dataset modules. #1

Merged
merged 3 commits into from
Jan 19, 2018
Merged

Add skeleton of meta and dataset modules. #1

merged 3 commits into from
Jan 19, 2018

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Jan 17, 2018

Also, add ALE and SCALE code from pyale. It won't work though.

Copy link
Contributor

@tyarkoni tyarkoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some general comments. But fine to merge and tweak later since this is just a skeleton.

from ..base import MetaEstimator


class MFX_GLM(MetaEstimator):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will probably inherit from IBMAEstimator

The gold standard image-based meta-analytic test. Uses contrast and standard
error images.
"""
def __init__(self, dataset, n_iters=10000, voxel_thresh=0.001, clust_thresh=0.05,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll almost certainly need another layer on top of dataset that represents the actual component of a database/dataset that can be submitted for analysis. So I still lean strongly towards making dataset an argument of fit and not init. Otherwise we'll end up in a weird situation where both the Dataset and the MetaEstimator classes are implementing methods that filter/mutate the data.

except:
raise Exception('Nope')

def get(self, search='', algorithm=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the scope of the project and the variety of different data types this object is going to store, I think we may want more explicit accessor methods (e.g., get_studies, get_metadata, etc.). Fine to leave this as a placeholder, but ultimately we'll probably replace it with a bunch of more specific methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add in some more empty methods, just so there's a blueprint.

from ...utils import intersection, diff


class MKDA(MetaEstimator):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should inherit from CBMAEstimator

tsalo added 2 commits January 18, 2018 08:50
- Also add MetaResult class, and parent classes for contrasts and data
types.
@tyarkoni tyarkoni merged commit e628132 into neurostuff:master Jan 19, 2018
@tyarkoni
Copy link
Contributor

I don't think I can push commits to your repo, so I'll merge as-is and then create a new branch with edits.

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

Successfully merging this pull request may close these issues.

2 participants