nimare.nimads
.Studyset
- class Studyset(source, target_space=None, mask=None, annotations=None)[source]
Bases:
object
A collection of studies for meta-analysis.
New in version 0.0.14.
This is the primary target for Estimators and Transformers in NiMARE.
- Variables:
id (str) – A unique identifier for the Studyset.
name (str) – A human-readable name for the Studyset.
annotations (
list
ofnimare.nimads.Annotation
objects) – The Annotation objects associated with the Studyset.studies (
list
ofnimare.nimads.Study
objects) – The Study objects comprising the Studyset.
Methods
Combine analyses in Studyset.
copy
()Create a copy of the Studyset.
from_nimads
(filename)Create a Studyset from a NIMADS JSON file.
Extract a list of Analyses with a given label/annotation.
get_analyses_by_coordinates
(xyz[, r, n])Extract a list of Analyses with at least one Point near the requested coordinates.
Extract a list of Analyses with a given image.
get_analyses_by_mask
(img)Extract a list of Analyses with at least one Point in the specified mask.
Extract a list of Analyses with a metadata field/value.
Extract a list of Analyses with a given text.
get_annotations
(analyses)Collect Annotations associated with specified Analyses.
get_images
(analyses)Collect image files associated with specified Analyses.
get_metadata
(analyses)Collect metadata associated with specified Analyses.
get_points
(analyses)Collect Points associated with specified Analyses.
get_texts
(analyses)Collect texts associated with specified Analyses.
load
(filename)Load a Studyset from a pickled file.
merge
(right)Merge a separate Studyset into the current one.
save
(filename)Write the Studyset to a pickled file.
slice
(analyses)Create a new Studyset with only requested Analyses.
Convert the Studyset to a NiMARE Dataset.
to_dict
()Return a dictionary representation of the Studyset.
to_nimads
(filename)Write the Studyset to a NIMADS JSON file.
update_image_path
(new_path)Point to a new location for image files on the local filesystem.
Properties
Return existing Annotations.
- property annotations
Return existing Annotations.
- get_analyses_by_coordinates(xyz, r=None, n=None)[source]
Extract a list of Analyses with at least one Point near the requested coordinates.