Save Data

The save command in Alfa is a very robust and a multipurpose command. We will look at each of its applications in detail in the following subsections

1. Save/Rename a variable.

Alfa automatically assigns names to different variables that are generated as output from various Alfa commands. These variables can be renamed by the user to a more intuitive or a user friendly name as shown in the following example.

load tumor
mean of area
save as areaMean

This saves the mean of the area that was computed into the variable areaMean. The figures that are generated by AlfA can also renamed in a similar manner.

2. Save tables to csv.

The tables that are generated as output from various Alfa commands can be exported to csv spreadsheets using the save command.

load tumor data
computer summary statistics for tumor data
save table 1

Once the above commands are run, Alfa brings up a dialog box to let the user browse through the file system and save the csv at a desired location.

3. Save notebook

The Alfa workspace can be saved to a notebook. This is especially useful for sharing work, develop instructional tools, and report bugs. All the commands that were run in a session and their corresponding outputs are saved using this command. The command can be used as follows:

load tumor data
compute summary statistics for tumor data
plot histogram of area and radius of the tumor
create a scatterplot for texture of the tumor
save notebook