Importation procedures¶
Python classes are provided to insert neuroimaging genetic data in a cubicweb database. The major advantage of this module is to guarantee a unified schema that in turn enables us to design common views.
piws.scripts
: Unified importation methods¶
base.Base (session[, can_read, can_update, ...]) |
This class enables us to add new entities and relations in CW. |
subjects.Subjects (session, project_name, ...) |
This class enables us to add new subjects in CW. |
genetics.Genetics (session, project_name, ...) |
This class enables us to load the genetic data to CW. |
scans.Scans (session, project_name, ...[, ...]) |
This class enables us to load the scan data to CW. |
questionnaires.Questionnaires (session, ...) |
This class enables us to load the questionnaire to CW. |
processings.Processings (session, ...[, ...]) |
This class enables us to load the processing data to CW. |
groups.CWGroups (session, list_group_names[, ...]) |
This class enables us to add new user groups in CW. |
users.CWUsers (session, users) |
This class enables us to add new users in CW and associate this user to one or multiple groups. |
piws.demo
: Demonstration¶
To exemplify the proposed unified importation methods, a demonstrator has been leveraged. By executing the ‘generate_toy_dataset.py’ function, a toy neuroimaging genetic data is created on your local file system.
The ‘import_to_dataset.py’ then inserts the generated data in a cubicweb database using the previously presented unified insertion procedures.