|
|
Overview
GeneralHow do I know which units/datasources/tables are available ?Use the show command. How can I delete a datasource or a table or a variable ?Currently, you can't do it using an Opal command. You can only make a datasource not visible, by changing the Datasources Configuration. How to import data from A to Z ?
ImportWhere is the variable catalogue that is imported ?The variables description is embedded in the imported file. If the file is encrypted, use the decrypt command to decrypt it and open it. Each directory is a table, and in each of them there is a variables.xml file. Currently there is no friendlier way to access to a variable catalogue before it has been imported. Once imported, see How can I see the variable catalogue ?. How does Opal handles variable versions ?There are no variable versions. Instead Opal ensures the consistency of the variables and categories during the importation process:
To explain why there are no more values for a variable, it is recommended to have another variable that tells the version of the imported catalogue. For instance Onyx provides for each questionnaire a variable named 'QuestionnaireRun.version' that tells the version of questionnaire administered to the participant. There is also a variable named 'Admin.onyxVersion' that tells the version of Onyx used to collect the participant data. How do I import a large file ?Importation process is done in one transaction. This means that if import fails for any reason (corrupted file, out of memory on server side etc.) the entire process will be rolled back. This also means that if the file to import is large, it will be high memory-consuming on server side (due to the storage of transaction), increasing the process time a lot and increasing the risk of getting short of memory. So in the case of a large file (i.e. containing a lot of participants or a lot of data per participants), you should split the file in smaller pieces using the split command. This will ensure you of:
Where is the unit's directory ?On server side you might want to access to the unit's directory for copying files to be imported and having access to the ones that where archived by the import command. Opal defines a File System Root. Units data are stored and handled relatively from the <opal-file-system-root>/units/<unit-name> directory. CopyCan I change variable names ?It is not recommended to change a variable name while there are still data to be imported in the corresponding datasource. This would result in the re-creation of the original variable when a new import process happens. So you might want to not interfere with the import process. If you want to reorganize your variables, the copy command should be used. For the purpose of renaming a variable, use the --transform option. How to split a table into smaller tables ?For any reasons, a table has too many variables in it, making it hard to process (to many columns in a SQL tables or in a Excel sheet for instance). Two solutions are offered to you:
How can I see the variable catalogue ?How can I check the variable catalogue before copying data ?There is no variable catalogue, there are as much variable catalogues you are interested in. Currently the friendlier way of viewing the variables for a user is to do a copy into an Excel file using the --no-values option. What can I do for handling the limits of the SQL or Excel datasources ?SQL and Excel datasources have strong limitations in terms of:
For Excel datasource, preferably use ".xlsx" file suffix, the corresponding Excel format has higher limits. Use views to limit the number of rows and change the table names. Use the copy command options --multiplex and --transform to reduce the number of variables in a table and to change the variable names. The right scripts for these options may be difficult to write:
|
Search Opal Documentation |
Opal Commands Cookbook
Labels:
None