![]() That parameter indices are one-based, in order to correspond with the FCS parameter keywords. var sample = workspace.samples = select first sample in workspace = names of all parameter within the sample var fscParam = sample.parameters = the sample's first parameter (here we are presuming it to be FSC). var fil = sampleA1.keywords var withoutExt = fil.substring(0, fil.lastIndexOf('.')) sampleA1.keywords = withoutExt sample.keywords = filename.substring(4, 8) Sample ParametersĪ sample’s parameter info is stored under its parameter property. Any keyword modifications will only be remembered within the context of the current workspace. Note that FlowJo never modifies the original sample. The script editor has the ability to read and write keywords within the sample. To view functions and properties for FlowJo objects within the scripting console, simply access their ‘help’ propertyĮxamples: workspace.help var samples = workspace.samples samples.help var firstSample = samples firstSample.help math.help stats.help Sample Keywords 1 group Inline Help & Object Documentation 1 group var sampleA1 = exp1Group.samples = the sample named A1.fcs in the Exp. 1 var myGroup = ("My Group") myGroup.add((0, 10, 2)) var sample1 = exp1Group.samples = first sample in the Exp. var samples = workspace.samples samples.length = number of samples in the workspace samples.names = names of all samples in workspace = names of all sample groups in workspace var exp1Group = oups = names of all samples in the group Exp. From this you have access to the workspace’s samples and groups. var a = 2 + 2 var name = "NK Cells" var population = name + a console.log("Population name is " + population) Navigating the workspaceĮvery script starts with a workspace object defined at the global scope. Variables are defined just as in standard javascript. Mac OSX provides basic Emacs bindings to text fields, so shortcuts Ctrl-A and Ctrl-E move the cursor to the beginning and end respectively of the input line.įrom here, example javascript commands which can be entered into the console input will be in blueĮxamples: 500/499 = 1.002004008016032 math.sin(math.PI/3) = 0.8660254037844386 Defining Variables ![]() To navigate previously typed commands, use the up and down arrows. To perform simple calculations, simply type them into the console input and press enter. The Script Editor’s console input provides a quick way to test code snippets, perform calculations, and view doc pages for FlowJo objects. The Script Editor Interface Console Input Scripts can be saved, copied, and shared.īelow is a simple tutorial to guide you through the key features of the scripting interface. The editor can be found by default in the Cytometry band on the Workspace Tab. The script editor allows low-level access to FlowJo, and uses JavaScript to execute some powerful operations. The Script Editor is a platform that allows the user to program their own routines into FlowJo using JavaScript without having to worry about compiling a program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |