You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new feature of the TASBE Flow Analytics package is an Excel interface that provides a user-friendly interface between raw FCS data and current TASBE data analysis tools. Using a template spreadsheet, scientists can document important aspects of their experiments without having to worry about writing Matlab code. Currently, the template is organized into the following sheets:
3
+
A new feature of the TASBE Flow Analytics package is an Excel interface that provides a user-friendly interface between raw FCS data and current TASBE data analysis tools. Using a template spreadsheet, scientists can document important aspects of their experiments without having to worry about writing Matlab code. Currently, the template is organized into the following sheets:
4
4
* "Experiment": includes all of the general experiment information and filename templates
5
5
* "Samples": includes important information regarding samples and batch analysis
6
6
* "Calibration": includes information to generate a Color Model
@@ -16,32 +16,32 @@ An example of the template is located at [TASBEFlowAnalytics-Tutorial](https://g
16
16
FCS data. The code needed to run the template is in the newest release of [TASBEFlowAnalytics](https://github.com/TASBE/TASBEFlowAnalytics/releases). The following sections describe specific features for each template sheet. There are more notes highlighted in green throughout the spreadsheet.
17
17
18
18
### Experiment
19
-
* Filename templates are used to generate the correct FCS filenames without having to type all of them out. Each filename template is separated into numbered sections with some sections being static and some being variable. The variable sections must correspond to column names in "Samples".
19
+
* Filename templates are used to generate the correct FCS filenames without having to type all of them out. Each filename template is separated into numbered sections with some sections being static and some being variable. The variable sections must correspond to column names in "Samples".
20
20
(i.e. A template of 1_2_3.fcs would have the numbers replaced with the three correct inputs.) **Make sure to update the blueprint of number placeholders right below the Filename Template header.**
21
-
* The conditions keys are used to make sure that the values for a certain column name in "Samples" is valid. The keys are used to obtain the sets for plusminus and transfer curve analysis.
21
+
* The conditions keys are used to make sure that the values for a certain column name in "Samples" is valid. The keys are used to obtain the sets for plusminus and transfer curve analysis.
22
22
23
-
### Samples
23
+
### Samples
24
24
* The SAMPLE NAME column is necessary for the analysis and needs to be manually filled out.
25
25
* Information for each replicate should be in the same row with commas separating the values (i.e. sample locations for three replicates could look like A1, A2, A3). This feature is not applicable to the experimental condition columns.
26
26
* The "Click to Update Filenames" button serves to generate sample filenames using the filename templates. These filenames are used in the TASBE ```getExcelFilename``` function, so it is important to click the "Update Filenames" button before running any analysis.
27
27
* "Statistics Filename", "Statistics Filepath", "Point Cloud Filename", and "Point Cloud Filepath" are preferences for batch analysis. "Point Cloud Filename" takes in a filename template number instead of a string name since Point Cloud files are generated for multiple samples.
28
-
* The "Click to Update Plates" button fills out the plate layout sheets. Values for the plate layout column should consist of the plate sheet name followed by the plate name (i.e. 96w,Plate 1). It is also important for the SAMPLE LOCATION(s) column to be updated since it is used to determine where to put the sample names.
28
+
* The "Click to Update Plates" button fills out the plate layout sheets. Values for the plate layout column should consist of the plate sheet name followed by the plate name (i.e. 96w,Plate 1). It is also important for the SAMPLE LOCATION(s) column to be updated since it is used to determine where to put the sample names.
29
29
30
30
### Calibration
31
-
* Multiple bead files can be compared by listing out their sample names in the "Sample Name" cell within the "Rainbow Beads" section. (i.e. Beads,Beads2,Beads3). The "Bead Comparison Tolerance" determines how identical you want the bead files to be. The results of the comparisons will be included in the TASBESession log located at the bottom of the sheet.
32
-
* The "Constitutive/Input/Output" cells within the "Fluorochromes" section are optional for batch analysis but required for plusminus and transfer curve analysis. If this feature will be used, exactly one channel must be marked as Constitutive. The minimum is 2 colors with the second color acting as both the input and output. (It only needs to be labeled as one of the two.) For 3 or more colors, all pairwise combinations between labeled inputs and outputs will be analyzed. Colors not labeled will be ignored.
33
-
* The "Relevant Channels" cell within the "Color Translation" section determines which colors to consider when creating the Color Model. A value of "all" means all listed colors will be used.
31
+
* Multiple bead files can be compared by listing out their sample names in the "Sample Name" cell within the "Rainbow Beads" section. (i.e. Beads,Beads2,Beads3). The "Bead Comparison Tolerance" determines how identical you want the bead files to be. The results of the comparisons will be included in the TASBESession log located at the bottom of the sheet.
32
+
* The "Constitutive/Input/Output" cells within the "Fluorochromes" section are optional for batch analysis but required for plusminus and transfer curve analysis. If this feature will be used, exactly one channel must be marked as Constitutive. The minimum is 2 colors with the second color acting as both the input and output. (It only needs to be labeled as one of the two.) For 3 or more colors, all pairwise combinations between labeled inputs and outputs will be analyzed. Colors not labeled will be ignored.
33
+
* The "Relevant Channels" cell within the "Color Translation" section determines which colors to consider when creating the Color Model. A value of "all" means all listed colors will be used.
34
34
* Size beads feature can be used by filling out the "Size Beads" and "Non-fluorescence Channels (unprocessed)" sections.
35
35
36
36
### Comparative Analysis
37
37
* "Comparison Group(s)" contains sample column name-value pairs that determine which samples in the "Samples" sheet are compared. The format is "Sample Column Name = Value". Multiple name-value pairs can be listed out to further specify the comparison groups (i.e. ColName1 = Value1, ColName2 = Value2). Leave this section blank if all samples should be considered for analysis.
38
-
* "Comparisons" consist of the required primary comparison sets (i.e. +, -) and the secondary ordering inductions, which are optional. Both the primary and secondary sets are in the form of sample column names for a single plusminus analysis.
39
-
* Multiple plusminus analysis can be run as long as the Comparison Groups are aligned with their respective Comparison values. Additional preferences including output filename and plot path are required to differentiate between different analyses.
38
+
* "Comparisons" consist of the required primary comparison sets (i.e. +, -) and the secondary ordering inductions, which are optional. Both the primary and secondary sets are in the form of sample column names for a single plusminus analysis.
39
+
* Multiple plusminus analysis can be run as long as the Comparison Groups are aligned with their respective Comparison values. Additional preferences including output filename and plot path are required to differentiate between different analyses.
40
40
* The stem and device name cells were removed and replaced by automatically generated condition names in the format of "sample column name = value" for each Comparison Group.
41
41
42
42
### Transfer Curve Analysis
43
43
* "Comparison Group(s)" contains sample column name-value pairs that determine which samples in the "Samples" sheet are analyzed. Each pair should correspond to a value in "Comparisons". The format for Comparison Groups is "Sample Column Name = Value". Multiple name-value pairs can be listed out to further specify the comparison groups (i.e. ColName1 = Value1, ColName2 = Value2). Leave this section blank if all samples should be considered for analysis.
44
-
* "Comparisons" consists of the sample column name with the transfer curve conditions. It is important for the values to be numerical. Additional preferences including stem name and plot path are required to differentiate between different analyses.
44
+
* "Comparisons" consists of the sample column name with the transfer curve conditions. It is important for the values to be numerical. Additional preferences including stem name and plot path are required to differentiate between different analyses.
45
45
* Device name cells were removed. The defaults for stem names are in the format of "column name = value" for each Comparison Group, or they are the experiment name.
46
46
47
47
### Optional Settings
@@ -50,11 +50,13 @@ FCS data. The code needed to run the template is in the newest release of [TASBE
50
50
* Outputted Histogram and Statistic CSV files from batch analysis can be controlled with the "flow.outputHistogramFile" and "flow.outputStatisticsFile" preferences.
51
51
52
52
### Next Steps
53
-
**Before running TASBE Flow Analytics, make sure you have installed TASBE and are not just running it from the directory. Installation instructions are located in the TASBEFlowAnalytics [README](https://github.com/TASBE/TASBEFlowAnalytics/blob/develop/README.md).**
53
+
**Before running TASBE Flow Analytics, make sure you have installed TASBE and are not just running it from the directory. Installation instructions are located in the TASBEFlowAnalytics [README](https://github.com/TASBE/TASBEFlowAnalytics/blob/develop/README.md).**
54
54
55
55
After completing and saving the template spreadsheet, the actual analysis can be run in two ways:
56
+
56
57
1) Run the function ```analyzeFromExcel``` (located in the code directory of TASBEFlowAnalytics) from MATLAB
57
58
with the file path of the spreadsheet as the input and the type ('colormodel', 'batch', 'plusminus', or 'transfercurve'). ```analyzeFromExcel``` will then create a TemplateExtraction object and run the correct analysis. **Don't forget to click the "Update Filenames" button before running any analysis.**
58
-
2) Click the run buttons located in each sheet of the template. From there, ```analyzeFromExcel``` is automatically called with the correct inputs. The TASBESession log would then be outputted near the bottom of the relevant sheet in the form of a progress bar. The template contains some more detailed instructions to set up the buttons. There are also cancel buttons for each analysis. Cooperative multitasking is implemented to allow users to continue modifying the template while an analysis is running. **This feature currently only works with Windows.**
59
59
60
-
**Note**: The code is based on the coordinates of several important variables. You can adjust those coordinates accordingly using the ```setExcelCoordinates``` function within the ```TemplateExtraction``` class.
60
+
2) Click the run buttons located in each sheet of the template. From there, ```analyzeFromExcel``` is automatically called with the correct inputs. The TASBESession log would then be outputted near the bottom of the relevant sheet in the form of a progress bar. The template contains some more detailed instructions to set up the buttons. There are also cancel buttons for each analysis. Cooperative multitasking is implemented to allow users to continue modifying the template while an analysis is running. After the analysis completes, analysis plots (and results from batch analysis) are automatically outputted onto new sheets. **To get this feature working in macOS, reference this [user guide](/Excel_macOS_README.md).**
61
+
62
+
**Note**: The code is based on the coordinates of several important variables. You can adjust those coordinates accordingly using the ```setExcelCoordinates``` function within the ```TemplateExtraction``` class.
## TASBE Flow Analytics Excel Interface macOS User Guide
2
+
This user guide contains information on how to set up the Excel interface in macOS, so analyses can be run using buttons within the interface. Please open up issues [here](https://github.com/TASBE/TASBEFlowAnalytics-Tutorial/issues) if any difficulties arise while following this guide.
3
+
4
+
### Setting up AppleScriptTask
5
+
Many built-in VBA commands don't work in macOS. We can work around this problem by using AppleScript. Microsoft has an "AppleScriptTask" command that accesses and runs an AppleScript file located outside the sandboxed app, which means that we need to have a separate script file that is located in a specified location. You can set this up by executing the following steps
6
+
7
+
1. Download the `RunMatlab.scpt` file from [here](/RunMatlab.scpt)
8
+
2. Open a Finder Window and click **Go** in the Finder menu bar
9
+
3. Hold the **Alt** key and click **Library**
10
+
4. Click **Application Scripts** (if it doesn't exist, create this folder)
11
+
5. Click **com.microsoft.Excel** (if it doesn't exist, create this folder)
12
+
6. Copy `RunMatlab.scpt` to the **com.microsoft.Excel** folder
13
+
14
+
**Note:** You can add the **com.microsoft.Excel** folder to your Favorites in Finder with the shortcut: **cmd Ctrl T**.
15
+
16
+
### Running Analyses
17
+
Now, you are almost ready to use the run buttons in the interface. Just make sure that you have installed TASBE and are not just running it from the directory. It is important to note that the **cancel buttons don't work in macOS**. Lastly, whenever Excel needs to access a particular file or folder, a dialog box will pop up and you will have to manually press the **Grant Access** button. An example of the dialog box is displayed below.
18
+
19
+

20
+
21
+
**Note:** Sometimes, Excel could crash depending on what sorts of tasks you do while the session log is updating. More features will be created in the future to combat this problem.
0 commit comments