pyxnat.Select¶
-
class
pyxnat.
Select
(interface)¶ Data selection interface. Callable object that indicates the data to be returned to the user.
Examples
- Select with a path:
>>> interface.select('/projects/myproj/subjects').get()
- Select with a datatype:
>>> columns = ['xnat:subjectData/PROJECT', 'xnat:subjectData/SUBJECT_ID' ] >>> criteria = [('xnat:subjectData/SUBJECT_ID', 'LIKE', '*'), 'AND' ] >>> interface.select('xnat:subjectData', columns ).where(criteria)
Methods
__call__
(datatype_or_path[, columns])Select clause to specify what type of data is to be returned.
experiment
(ID)Access a particular experiment.
experiments
([id_filter])Returns the list of all visible experiments for the server.
project
(ID)Access a particular project.
projects
([id_filter])Returns the list of all visible projects for the server.
tag
tags