ANY-maze Help > The ANY-maze reference > The Experiment page > Importing lists of animals or tests > Importing tests

Importing tests

Introduction

When the test schedule for an experiment is very complicated, it's often necessary to use ANY-maze's manual scheduling feature. This allows you to enter tests in any order, making the test schedule completely flexible.

Of course, if you know your schedule is complicated (and that you will therefore need to use manual scheduling), it implies that you have already planned your experiment, in which case you may well have created a test schedule in some other system, for example, in Microsoft Excel. In these circumstances it would make sense to simply import the schedule from that other system, rather than having to retype all the tests into ANY-maze. This is what the test import feature does.

Creating a list of tests to import

ANY-maze uses a standard file format called Comma-Separated Values, usually abbreviated to CSV, for test import. A CSV file is simply a text file with data on different rows and with individual values separated by commas - for example:

Animal,Apparatus,Novel side

C1A4,Box 1,Left

C1A2,Box 2,Right

Microsoft Excel includes an option to save files in CSV format, and this often the easiest way to create the files (in this case the commas separate the columns of data that form the spreadsheet).

The actual data in an import file consists of a Header row and any number of Data rows. The header row is the first non-blank row in the file (all blank rows, anywhere in the file are simply ignored). The header row defines the data that will be found in the subsequent data rows.

Each data row adds a test on a specific animal to the experiment, with the tests being scheduled in the order they appear in the file. For example, the file:

Animal

1

2

2

1

will create a schedule in which animal 1 will be tested, then animal 2, then animal 2 again and then animal 1 again. Note that imported tests still have to agree with the number of trials specified in the experiment's protocol, so in this case the protocol would need to include at least two trials otherwise the import would fail.

Valid entries in the file are:

AnimalThis is the animal number or ID of the animal to be tested. If the protocol uses Animal IDs then you should specify either an animal's ID or an ANY-maze number prefixed by a # sign. For example #4. Otherwise, you should simply specify the animal's number (as in the example above).
ApparatusThis is the name of the apparatus that the test should be performed on. This is only necessary if the protocol includes more than one piece of apparatus. If the protocol does include multiple apparatus, but the import file does not have an apparatus 'column', then the animals will be assigned to apparatus using the rules specified in the stages element of the protocol.
Field titlesThe names of any test fields defined in the protocol can be included in the import file.

For a field defined in the protocol as a choice field the data for each test must be one of the choices specified for the field. For a field defined as a numeric field, the data must be a numeric value. For a field defined as a text field, the data can be anything, up to a maximum of 80 characters.

Zone positionsAny zones defined in the protocol as having a position that varies within animals can have their positions included in the import. In the first example above, 'Novel side' is such a zone, with its position being specified as 'Left' for the test on animal C1A4 and 'Right' for the test on animal C1A2. The name of a position must exactly match one of the zone's positions as defined in the protocol.

Performing an import

To actually import a tests list, you simply need to switch to the Experiment page and click the Import tests button in the ribbon bar (if the Import tests button is disabled it means that you have not chosen to use manual scheduling in the protocol).

Selecting this button will cause a window to open where you can select the CSV file that contains the tests  list. ANY-maze will then read the file and attempt the import - this is a two stage process:

During the first part of the import process (called pre-processing), ANY-maze reads the entire file and checks that it all makes sense. For example, it checks that all the animals specified in the import file actually exist in the experiment. Note that the processing of this check is affected by the current import policies.

If the check is successful, then the system will proceed to actually import the data and add the tests to the experiment's test schedule. At the end of the process a report is displayed showing exactly what the system did - see figure 1 below:

  

  

Figure 1. An example of an 'Import tests' report.

See also:

 Importing animals 
 Import policies 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0762