Excel报表(单元格模式)

在本例中,我们会:

创建一个Excel(单元格模式)报表。
导出$FIL关键字。
导出$DATE关键字。
导出统计。
导出图片。
运行批处理。

方便起见,我们将使用上节使用过的版面。来自上一章节的版面,在此章节中,将仍包含图片。用户也可以在已有批操作的版面中加入报表。如果之前的版面您处于打开状态,请直接跳到第5步。

1.选择File(文件)标签, 然后点击Open(打开)
2.请打开Tutorial Sample Data archive(教程样本数据库)中的BatchProcess.fey版面

要执行一个Excel报表批处理操作:

3.请用TCellSample1.fcsTCellSample2.fcs文件创建一个Data List(数据列表)(请参见教程的上一节)。
4.请选择Batch(批)→Batch Processing(批处理)→Batch Actions(批操作)命令(图T9.6)。

此时,Batch Actions(批操作)窗口将打开(图T9.7)。

5.请选择Export to Excel (Cell Mode) (导出到Excel(单元格模式))(letterB 图T9.7),从Add Report(添加报表)项目中。

此时,Excel (Cell Mode)Options ((单元格模式)选项)对话框将出现(图T9.13)。我们将使用这个对话框来设置如何把Data List(数据列表)中的文件以批处理的方式导出到Excel报表中。

 

Figure T9.13  Excel (Cell Mode) Options Dialog

Figure T9.13  Excel (Cell Mode) Options Dialog

 

6.请在Template Document(模板文档)字段点击打开文件图标number1(数码编号见图T9.13)。
7.FCS Express Tutorial Sample Data(FCS Express教程样本数据)文件夹中选择T Cell Analysis Template.xlsx。

T Cell Analysis Template.xlsx是一个包含报表背景的Excel文件。图T9.14显示了我们正在使用的Excel模板。

8.请点击Iteration options(循环选项)部分的Combine all iterations in the same document(把所有循环结果合并到同一文档中)number2
9.请点击Output file options(输出文件选项)部分的Save to a new file(保存到一个新文件)number3
10.Save to a new file (保存到一个新文件)字段中,点击文件夹图标来指定Excel的输出位置number4例如输出到桌面上。
11.点击OKnumber5

 

Figure T9.14  T Cell Analysis Excel Template

Figure T9.14  T Cell Analysis Excel Template

 

Batch Actions(批操作)窗口将展示输出到Excel (Cell Mode(单元格模式))操作列表(图T9.15)。这一图片同样显示了来自最后部分的Save to PowerPoint(保存至PowerPoint文稿)批操作。

 

 

Figure T9.15  Batch Actions Window with the Export To Excel Action

Figure T9.15  Batch Actions Window with the Export To Excel Action

 

12.Add Item to Report(添加项目到报表)项目中选择Keyword Token(关键字标记)(图T9.15中的光标处)。

此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框将出现,来显示Data Source (数据源)列表选项(图T9.16)。这里是我们定义导出到Excel中的"关键字"的地方。

 

Figure T9.16  Excel (Cell Mode) field "Keyword" options Dialog

Figure T9.16  Excel (Cell Mode) field "Keyword" options Dialog

 

13.在Data Source (数据源)项目下,选择4 - Histogram - TCellSample1.fcs compensated (FITC-A)
14.点击Keyword(关键字)项目(图T9.16)。

此时,Keyword(关键字)类别选项页将出现(图T9.17)。

 

Figure T9.17  Excel (Cell Mode) field "Keyword" options Dialog -- Keyword Category

Figure T9.17  Excel (Cell Mode) field "Keyword" options Dialog -- Keyword Category

 

15.请点击Select a keyword(选择一个关键字)字段右方的省略号(…)按钮(图T9.17)。

此时,Please select a keyword(请选择一个关键字)对话框将出现(图T9.18)。这个对话框显示了在FCS文件中可以找到的关键字。

 

Figure T9.18  Dialog Displaying Keywords Found in the FCS File

Figure T9.18  Dialog Displaying Keywords Found in the FCS File

 

16.请选择关键字“$FIL”(图T9.18),该关键字是存储在FCS文件中的文件名关键字。
17.点击OK
18.请点击Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框中的Field(字段)选项(图T9.19)。

此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框的Field(字段)页将出现。这里是我们选择的“$FIL”关键字数据在批处理过程中,导出到Excel单元格的地址。

19.请在Cell Address(单元格地址)字段处输入“B27”(图T9.19)。这一设置告诉FCS Express我们想要把FCS文件名输入到Excel模板中的B27单元格中(图T9.14)。

 

Figure T9.19  Setting the Excel Report Cell Address

Figure T9.19  Setting the Excel Report Cell Address

 

20.点击OK

Batch Actions(批操作)窗口将显示Keyword: $FIL添加的操作(图9.20A)。

用户也可以通过把选中的绘图拖放到Batch Actions(批操作)对话框中的Batch Process Actions(批处理操作)部分,来把和绘图相关的标记导出到Excel中。

21.请点击底部柱状图来把柱状图选中。当柱状图的边框变成红色,说明它已被选中。
22.请按下鼠标左键,把这个绘图拖到Batch Actions(批操作)对话框里的Batch Process Actions(批处理操作)部分(图T9.20A)。
23.当绘图在Batch Process Actions(批处理操作)Excel (Cell Mode)(Excel(单元格模式))文本的上方时,松开鼠标(图T9.20A)。此时,Paste Special(选择性粘贴)对话框将出现(图T9.20B)。

 

Figure T9.20A  Dragging and Dropping a Histogram onto the Batch Actions Window

Figure T9.20A  Dragging and Dropping a Histogram onto the Batch Actions Window

 

Figure T9.20B  Paste Special Dialog

Figure T9.20B  Paste Special Dialog

 

24.请选择Keyword(关键字) 标记项目,然后点击OK(图T9.20B)。
25.此时,Keyword(关键字)类别选项页将出现(图T9.17)。
26.点击Keyword(关键字)项目。
27.请点击Select a keyword(选择关键字)字段右方的省略号(…)按钮(图T9.17)。

此时,Please select a keyword(请选择一个关键字)对话框会再次出现(图T9.21)。

 

Figure T9.21  Inserting the $DATE Keyword

Figure T9.21  Inserting the $DATE Keyword

 

28.请选择关键字“$DATE”(图T9.21)
29.点击OK(图T9.21)。
30.请点击Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框中的Field(字段)选项(图T9.22)。

此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框的Field(字段)页将出现。

31.请在Cell Address(单元格地址)字段处输入“D27”(图T9.22)。

 

Figure T9.22  Cell Address Field Defined for Batch Export of $DATE Keyword to Excel

Figure T9.22  Cell Address Field Defined for Batch Export of $DATE Keyword to Excel

 

32.点击OK(图T9.22)。

此时,Batch Actions(批操作)窗口将显示Keyword: $DATE添加的操作(图T9.23)。

这就是说,假如现在使用数据列表中的文件进行批处理,文件名(保存在FCS的关键字$FIL中)以及创建日期(保存在FCS的关键字$DATE中)将分别被导出到图T9.13所示的单元格B27和D27中。

 

Figure T9.23  Batch Actions Window with $DATE Keyword Exported

Figure T9.23  Batch Actions Window with $DATE Keyword Exported

 

我们现在将选择一个要通过批量导出到Excel文件中的统计函数。

33.请从Batch Actions(批操作)窗口的Add Item to Report(添加项目到报表)项目中选择Statistic Token(统计关键字)(图T9.23)。

这时会出现一个选项对话框,如前图T9.16所示。

34.点击Data Source (数据源)列表选项(图T9.16)。
35.请从Select a plot(选择一个绘图)选择4 - Histogram - TCellSample1.fcs compensated (FITC-A)(图T9.16)。
36.点击Statistic(统计)项目类别(位于左边)。此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框的Statistic(统计)页将出现(图T9.24)。在这里我们要选择批量导出到Excel中的一个柱状图统计。

 

Figure T9.24  Selecting a Statistic to Export

Figure T9.24  Selecting a Statistic to Export

 

37.请从Plot Information(绘图信息)下拉列表中选择“M1”number1
38.请从Gate(门)下拉列表中选择“Lymphs”number2
39.请从Statistic(统计)列表框中选择% of gated cells(门中细胞百分比)number3
40.点击Field(字段)项目类别(位于左边)。此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框中的Field(字段)项目将出现(图T9.25)。这里我们将选择统计数据在批处理过程中,导出到Excel中的单元格的地址。

请在Cell Address(单元格地址)字段处输入“F27”(图T9.25)。这一设置告诉FCS Express我们想要把统计放到Excel模板中的F27单元格中(图T9.14)。

 

Figure T9.25  Setting the Excel Cell Address

Figure T9.25  Setting the Excel Cell Address

 

41.点击OK来接受这些设置。

Batch Actions(批处理)窗口将显示Statistic: % of Gated Cells(统计:门中细胞百分比)添加的操作(图T9.26)。

 

Figure T9.26  Batch Actions with Statistic % of Gated Cells to be Exported to Excel

Figure T9.26  Batch Actions with Statistic % of Gated Cells to be Exported to Excel

 

我们现在将把一张图片通过批处理导出到Excel文件中。

42.请从Add Item to Report(添加项目到报表)部分选择Picture(图片)(图T9.26)。

此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框将出现(图T9.27)。这里是我们定义将要被导出到Excel中的图片的地方。

 

Figure T9.27  Excel (Cell Mode) field "Picture" options Dialog 

Figure T9.27  Excel (Cell Mode) field "Picture" options Dialog 

 

43.请在Select a plot(选择一个绘图)域中选择4 - Histogram ? TCellSample1.fcs compensated (FITC-A)(图T9.27)。
44.点击Field(字段)选项(图T9.28)。

此时,Excel (Cell Mode) field "Keyword" options(Excel(单元格模式)"关键字"字段选项)对话框中的Field(字段)项目将出现(图T9.28)。这里是我们选择图片在批处理过程中导出到Excel单元格中的地方。

 

Figure T9.28  Setting the Excel Cell Address for the Picture Field

Figure T9.28  Setting the Excel Cell Address for the Picture Field

 

45.请在Cell Address(单元格地址)输入“A8”(图 28)。
46.点击OK

我们已经告诉FCS Express把4 - Histogram - TCellSample1.fcs compensated (FITC-A)图片导出到Excel报表模板中的A8单元格,如图T9.14所示。

Batch Actions(批操作)窗口将显示Picture(图片)添加的操作(图T9.29)。

 

Figure T9.29  Batch Actions with Picture to be Exported to Excel

Figure T9.29  Batch Actions with Picture to be Exported to Excel

 

47.点击关闭按钮 (红色X) 来关闭批操作窗口(图T9.29)。

我们将返回到版面页中来运行批处理。

48.选择Batch(批)→Batch Processing(批处理)→Run or Replay(运行或者重播)→Run(运行)命名(图T9.10)。

FCS Express将执行这个批处理。批处理完成后会在用户指定的位置创建一个Excel文件(图T9.30)。该文件有两个工作表,一个工作表针对TCellSample1.fcs文件,一个针对TCellSample2.fcs文件。

 

Figure T9.30  First Sheet of the Final Excel Report from the Batch Processing

Figure T9.30  First Sheet of the Final Excel Report from the Batch Processing

 

在下面的练习中,我们将使用同一个版面。

下一章节,我们将通过批处理生成一个列模式的Excel报表