Skip to main content

Apply One Gating Template to Many FCS Files

A Cytometry analysis holds one gating strategy and applies it to every file in it. This page covers grouping files into conditions, comparing them, and saving a strategy as a template for the next experiment.

Apply One Gating Strategy to Many Files

An analysis has a single set of gates that applies to every file in it, drawn the way Gate and Analyze Flow Cytometry Data describes. Conspecta matches gates to each file by channel name, so a panel acquired with the detectors in a different order still lines up.

When staining varies enough between tubes that one boundary won't do, you can move a gate on a single file without moving it everywhere. With more than one file loaded, Customize for this file on the gate's ⋮ menu unlinks that gate on the file you're viewing, and dragging it from then on adjusts only that copy.

The boundary and the lock are per file. A customized file starts unlocked, even when the gate is locked on the other files, and Lock gate on it locks that file alone. Renaming the gate, changing its color or editing its note still applies on every file.

That gate then has a dashed outline and its label reads · this file, so you can see which counts came from a gate you moved. Reset to shared puts it back on the shared boundary and discards the tailored one.

To fit a gate to every file at once, choose Tailor per file on its ⋮ menu. Conspecta proposes a position for each file in your sample list.

The dialog shows a large plot for each file with a proposal, in the gate's own color. The faint line is the gate as it is now, the dashed outline is the proposal, and the percent of parent shows before and after.

  • Check the files you want, or Select all, then press Apply.
  • All files lists the files without a proposal as well.
  • The expand button on a card opens that file large, with its event counts and a sentence on what moves. The arrows step through the proposals.

Applied files get their own boundary, as if you had customized them by hand, and one Cmd/Ctrl + Z undoes them all. The shared gate itself never moves.

A file gets no proposal when the gate already fits it, when its parent population has fewer than 500 events, or when the file isn't loaded.

Files exist in three states.

  • Attached to the analysis, so they're part of it
  • Loaded, meaning in memory and ready to plot
  • Not loaded, meaning attached but not in memory

The bar above the plots shows which sample you're looking at and where it sits in the analysis, such as 14 of 96, with the number of files not loaded beside it. Use the arrows, or Shift + ← and Shift + →, to move to the previous or next sample.

Each axis spans the channel's full instrument range, so a value sits in the same place on the plot in every sample and a population that shifts between samples is seen to shift. A Time axis is fitted to the run.

Click the sample's name to see every file, grouped by condition. You can search the list by filename, sample name, or tube name.

At the bottom of the list, Load all loads every file that isn't loaded and shows their total size. While the files load, the button reads Stop loading, and the sample bar shows a stop button beside its progress. Stopping keeps the files that already loaded and puts the rest back in the list, unloaded.

Manage files, at the bottom of the same list, is where you attach files from your datasets, upload new ones, and choose which are loaded. Once an analysis holds more than a handful, Filter files at the top narrows the list by filename, tube name, or the sample a file was acquired from.

From datasets, on the right of Manage files, lists the project's datasets. To add a whole dataset, such as a run's single-stain controls, press Add all 10 on its row and pick a condition, Unassigned, or New condition from this dataset, which makes a condition with the dataset's name and puts its files in it. Files already in the analysis are left out of the count, and the button goes once every file is in.

To add only some of a dataset's files, click the dataset to open its file list. Check the files you want, or use the checkbox beside the dataset's name to select every file not yet in the analysis, then choose where they go from Add 9 to in the bar at the bottom. Files already in the analysis are marked Attached, and All datasets takes you back to the list.

Tip: An analysis can hold more data than your computer's memory. A file that isn't loaded costs no memory, so load the files you're working on and unload the rest. When you reopen a large analysis, it loads up to 200 files or 5 GB and tells you how many it left unloaded.

Review Gates Your AI Assistant Moved

When your AI assistant fits your gating strategy to each sample, it moves a gate only to follow a population that shifted, and the shared gate stays where you drew it. Each move becomes that sample's own boundary, as if you had customized it, marked as your assistant's.

Anyone who opens the analysis afterwards sees a bar above the plots, such as Your assistant moved gates on 6 of 96 samples. 2 need a look.

  • Review on the plate opens Compare all files on the moved gate's plot, laid out the way the plate sat. Samples whose gates moved are ringed, and samples left for you to look at are ringed in amber. Turn on Only samples to check to fade the rest. On a phone it lists those samples instead, and tapping one opens it.
  • Dismiss hides the bar for you until your assistant saves another fit.

A sample your assistant moved shows a sparkle mark in the sample list, in Compare all files, and on the moved gate's label. Hover over it to see when the gate moved and the percentage the shared gate held on that sample. The shared gate stays on the plot as a faint outline behind the moved one.

Reset to shared puts a moved gate back on the shared boundary, and Cmd/Ctrl + Z brings the move back. Dragging or resizing a moved gate makes it your own, and the mark goes.

Conditions

A condition labels what a file is, such as treated or untreated, day 0 or day 7, patient or control. Conditions set the groups Statistics compares, set the default grouping in the compare view, and let Conspecta test for significant differences between groups.

A file belongs to at most one condition, and files with none sit under Unassigned.

Creating Conditions

Click + New condition on the Conditions bar in Manage files, type a name, and press Enter.

When your team's data dictionary has choice fields, + New condition opens a menu headed with the dictionary's name, such as Carter Lab's data dictionary.

PickTo
A field, listed with its choicesMake one condition for each choice. See below
Blank conditionName one yourself
Manage the data dictionaryAdd or change a field

Conditions from the Data Dictionary

Pick a choice field from the same menu, such as Timepoint, to make one condition for each of its choices, such as Day 0, Day 7 and Day 14. You put files in them as usual. Every analysis that uses the field spells its conditions the same way, so their results line up.

The bar then reads the field's name, marked Linked, and the sample list shows the same heading above its conditions. Click Linked to see the field's definition in the dictionary.

  • Add to, then Sheet, on Statistics adds a column named after the field, such as Timepoint, beside Sample. Conditions you named yourself give a Condition column instead.
  • Pick the field again after the dictionary gains a choice, such as Day 21, and only the new choice is added.
  • A condition you already named exactly like a choice becomes the linked condition for that choice and keeps its files. Renaming a linked condition keeps its link.

Choice fields live in the team's data dictionary, which Data dictionary in the ⋯ menu at the top of Cytometry opens.

When your file names already include the groups, such as GF-1, GF-2 and SPF-1, Manage files suggests conditions above Unassigned.

  1. Click Review 4 conditions (the number is how many it found) to see each group with its files.
  2. If it split the names in the wrong place, pick another part of the name under Split by.
  3. Name each group, and uncheck any you don't want.
  4. Click Create 4 conditions. Each group's files move into its new condition. Files in an unchecked group, and files that fit no group, stay where they are.

Moving Files Between Conditions

In Manage files, there are four ways to put a file under a condition.

  • Drag its row onto the condition you want.
  • Open the row's ⋯ menu and pick Move to the condition by name.
  • Select several files and click Move in the bar that replaces the Conditions bar while they're selected.
  • Use the arrows on a row to send it to the condition above or below.

In the sample list above the plots, each row's ⋯ menu has Move to as well, and you can drag rows between conditions there too.

Loading a Condition's Files

Files that aren't loaded stay under their condition, dimmed, in both the sample list and Manage files. To compare two conditions from a large study, load those two and unload the rest. Fewer loaded files also keeps gating quick.

ToDo this
Load or unload a whole conditionPress Load or Unload along the bottom of its card, in the sample list or in Manage files. Load shows the size, such as Load 3.1 GB
Load one fileClick it in the sample list, or press Load on its row in Manage files
Unload one filePick Unload from its row's ⋯ menu
Load or unload severalSelect them in Manage files and press Load or Unload in the bar above the list. The checkbox beside a condition's name selects every file in it

If the file an analysis opens on can't be loaded, the plot area says why, and your gates and plots stay saved with the analysis. Choose another file opens Manage files when the file was permanently deleted or can't be read as FCS. Try again fetches it again when the download stopped partway.

Comparing Across Files

There are two ways to look at more than one file.

Compare all files (C, or On all N samples under View in a plot's ⋯ menu) takes one plot and draws it for every loaded file at once, which is how you check that the gate sits right on every file. Each panel draws that file's own gate. Where the file has its own boundary, the gate is dashed and the panel is marked Gate adjusted. On a plot with nothing to its right in the gating tree, → opens it too, and ← closes it again.

Group the grid by condition, tube name, experiment, cytometer, acquisition date, plate, well row, well column, or a segment of the filename, then group again within that. Files acquired on a plate loader include their well, so grouping by well column and then well row lays the panels out the way the plate sat, with rows down, columns across, and an empty square wherever a well was skipped.

On a phone, the grouping, Show and Sort sit under View. Tap the line under the title, which reads back the current view, to change them. Export image and Display are beside the close button, and the plot-size controls float in the grid's bottom corner.

Show picks one of the populations the plot's gates make, and every panel shows that population's percentage of its parent in the corner, or beside the sample's name on a phone. It starts on the population you last selected on the plot. Click a sample's name above its panel to open that sample.

Each plot's grid opens the way you last left it, with the same grouping, population, order, and scroll. To get back to it after opening a sample, click the sample's name in the bar and choose the first row, such as CD4 vs CD8 on all 12 samples.

Grouped by one field, each heading gives the group's sample count and the mean ± SD of that percentage, such as Germ-free · 5 samples · CD4+ CD8− 49.2 ± 0.3%. Sort keeps the samples in order or puts the highest percentage first. A grid grouped by two fields keeps every sample in its square, so it has no Sort. A sample at least 2 SD and one percentage point away from the rest of its group is ringed in amber, the same samples Statistics marks as outliers.

Display turns gates, percentages, axis labels, and sample names on and off. When the grouping already shows which sample each panel is, sample names are hidden. Turn Sample names on under Display to show them, or open a sample from the arrow in its panel's corner. On a phone, the axis names appear once above the grid.

A grid has room for one file per square, so replicate files, and files missing either value, are left out. A note next to the grouping controls says how many were left out and why. Open it to see which files, or switch to grouping by one field to show them all.

Make the panels bigger to read one closely, or choose Fit to see them all again.

Export image opens the grid with two tabs. Export sets the format, size, and file name and downloads or copies it, and Annotate marks it up first.

All samples, in the sidebar's Statistics section, opens Statistics, which compares the loaded files in two views.

By group compares two conditions population by population. It's where Statistics opens when two named conditions each have at least two files.

  • Compare picks the pair of conditions, and Order keeps the rows in Gating tree order or puts the Biggest difference or the Smallest p first.
  • Each row gives each condition's mean ± SD of the percentage of parent, the difference in percentage points, and the p-value from a Welch's t-test, corrected for multiple comparisons. A significant one is green and starred.
  • Click a population to see every file as a dot on a scale fitted to the values, with each condition's mean ± SD drawn as a bar. When a plot draws that population, Open CD4 vs CD8 on all 12 samples under the dots opens that plot for every file, showing that population. Click a file's name there to close Statistics and open that file on the plot.
  • Populations from clustering sit under one row per method, such as SOM clustering · 7 populations. Click that row to open it.

By sample has a row per file, with a count and a percentage for every population. % of parent and % of total switch which percentage it shows. A quadrant gets a column for itself and one for each of its four corners, so you can compare a double-positive frequency across files. When any file records its sample volume, each population also gets a Cells/µL column. With conditions assigned, the table adds the following.

  • Each condition's band ends with a mean ± standard deviation row
  • A cell more than two standard deviations and at least one percentage point from the rest of its band is flagged
  • For each pair of named conditions with at least two files, a Welch's t-test row appears, with p-values corrected for multiple comparisons and significance marked

Samples picks which loaded files both views count, and reads Samples: 8 of 10 when some are left out. Export CSV downloads the view on screen, and Add to sends the files shown to a figure, a note or a sheet.

The Samples list can be searched by sample or condition name. All or None beside a condition includes or leaves out its files together.

Dose-Response Curves

Name each condition for the dose it received, with its unit, and a Dose-response section appears under the By sample table with one card per population. Each card plots every file against dose on a log axis, draws the fitted four-parameter logistic curve through them, and reports EC50 with the Hill slope, the top and bottom plateaus, and R². A response that falls with dose reads as IC50 instead. The grid button on a card puts that chart on a figure, curve included.

A condition counts as a dose only when it has a unit, so "10 nM" fits a curve and "10" on its own does not. A curve needs at least four dose levels, and every condition has to use the same unit. The zero-dose arm is plotted a decade below the lowest nonzero dose, because a log axis has no position for zero. Files left in Unassigned sit out of the fit.

The population with the best fit comes first. A poor fit shows the R² and leaves the EC50 blank, and an EC50 that falls outside the doses you ran is marked as a projection. If a condition's name can't be read as a dose, the section names it so you know which one to rename.

Gating Templates

A template is a gating strategy you save so you can use it again on other files. It holds the gates, the plots they're drawn on, and the compensation matrix they were drawn with.

Open Your Templates

Every template in the project is in one list, and you can open it from two places.

  • In an analysis, click Templates in the sidebar. This is where you save, apply, and import templates.
  • On the Flow Cytometry page, open the Analysis tab and click Templates at the top. Use this to manage templates, or to import one before you have any data.

Search the list by name, or pick one from Recent at the top.

Save Your Gating as a Template

Once you've drawn at least one gate, open Templates in the sidebar and click Save current gating as a template at the top of the list. Give it a name and, if you like, a description. Conspecta shows what the template will include before you save it.

Import Gating from FlowJo

Conspecta reads the gating in a FlowJo 10 workspace (.wsp) or a Gating-ML 2.0 file (.xml or .gml), the format Cytobank and the R CytoML package write. Drag the file onto any of these places.

  • An open analysis, once a file is loaded in it
  • The FCS Datasets or Analysis tab of the Flow Cytometry page
  • The list in Templates, which also has an Import gating button if you'd rather pick the file

Conspecta reads the file in your browser and shows you the gates it found before saving anything. Any gate it couldn't rebuild is listed with the reason. The cell counts on this screen are the ones recorded in the original file.

Click Import as template to save it, or Import 3 templates for a file with three samples. Each sample in the file becomes its own template. In an analysis, open it and click Apply template to use it.

A workspace from FlowJo 9 or earlier won't open. Save it again in FlowJo 10 and import that copy. A Gating-ML 1.5 file needs exporting again as Gating-ML 2.0.

To check the gating against your own FCS files before you keep it, open the dataset that holds those files and use Import gating in its ⋮ menu. That import runs the gates on your data and compares the counts with the ones in the file, population by population. Checking a workspace against your data covers it.

Find a Template That Fits Your Files

In an analysis, a template that uses a channel your files don't have shows a warning on its row, such as Missing CD4. No gates fit means none of its gates can be placed on your files. A row with no warning will apply cleanly.

To narrow the list, click the filter icon next to the search box. You can show only templates that fit your files, approved templates, or templates you created, and combine them.

What's in a Template

Click a template to open it. It has three tabs.

  • Details shows the gates, the plots, and whether the template fits the files you have open. You can add or change the description at the top whenever you like.
  • Connections shows every analysis built from the template. The line to each one shows the template version it used, such as applied to · v2, and the map groups them by that version. A line to an analysis built from an earlier version is amber, and hovering it says which version the template is at now. Click any item on the map to see what that item connects to, such as the files an analysis used, or open it from its ⋯ menu.
  • Activity has comments and sign-offs alongside the template's history of changes. Use it to agree on a standard panel with your lab.

Export Templates

To send a template to someone who uses FlowJo or another tool, open it and use Export in the ⋮ menu. It saves one of two formats.

  • FlowJo (.wsp) saves a FlowJo 10 workspace.
  • Gating-ML (.xml) saves an .xml file that FlowJo, Cytobank, and the R CytoML package can open.

If a gate can't be written in the format you chose, it's left out and listed with the reason.

To export several templates at once, click Export on the Analysis tab and choose The gating templates. It starts with the templates each analysis you're exporting uses. Set Scope to Every template to include the rest. The same dialog box can export The gating strategy of each analysis too.

To export every template in the project, go to Settings → Export, check Gating templates, and choose Gating-ML. You get a zip with one file per template and a spreadsheet of versions and sign-offs. Check Flow Analysis to do the same for every analysis.

Apply a Template

When you open a template in an analysis, Conspecta checks it against every file in the analysis before you apply it. You see which gates will be placed, which can't be because a channel is missing, and which are skipped because the gate above them can't be placed. Missing channels are listed for each file. Gates that can't be placed are left out when you apply.

Then choose how to apply it.

  • Keep both adds the template's gates next to the ones you already have. This is the default.
  • Replace existing gates deletes your current gates, and everything gated under them, before adding the template's.

Replace existing gates deletes your current gating. A template that includes a compensation matrix also replaces the analysis's compensation, whichever option you choose, and one undo takes back the gates, plots and matrix together. Undo brings them back while the flow analysis is open. If you're unsure, choose Keep both and delete what you don't need.

Templates belong to the project, so everyone on it sees the same list. Members with view-only access can open templates, read the discussion, and export them. Saving, applying, importing, and editing templates need edit access.

Re-Apply a Newer Template Version

Conspecta records which version of a template an analysis used. If someone updates the template later, the analysis details show that the analysis uses an older version and offer to re-apply the latest. Your gates don't change until you re-apply.

Share a Template With Another Team

A core that keeps the standard gating for a panel can share that template with the labs it serves. Each lab applies it to its own files, and can make a copy to keep a version of its own.

Other teams can be added once your team has joined an organization. The template's creator and the project lead can share it.

  1. Open the template and choose Share from its ⋮ menu.
  2. Under Other teams, press Add beside a team to share with that team, or beside a unit of your organization to share with every team under it.
  3. Press Done. Changes save as you make them.

Each team you add gets Can view, which lets its members open the template, apply it and make their own copy. Your template changes only when your project changes it.

A template you share reads Shared outside on its row in the list. Removing a team from the dialog box ends its access.

A share also ends when the template moves to another project, when its project moves to another team, when a team leaves the organization, and when the organization unit is deleted. The template's Activity then shows a line that gives the reason.

Templates From Other Teams

Templates other teams share with yours are in the same list under From other teams, below your own under This project. Each shared row names the owning team and the unit it was shared with. Search covers both, and the fit warnings work on shared rows too.

A shared template opens read-only, under a View only banner that names the owning team. You get its description, its gates and plots, and whether it fits your files, and the ⋮ menu exports it. Its history, comments, sign-offs and connections stay with the owning team.

In an analysis, Apply template works as it does for one of your own, with the same choice between Keep both and Replace existing gates. The gates it adds are your analysis's own. When the owning team changes the template later, your analysis and its statistics stay as they are.

Make a copy, in the open template's header, puts the template in your project as your own, with the gates, plots and compensation it had when you copied it. The copy is yours to rename, update and share, and its activity names the team it was copied from. Editors are offered Apply template and Make a copy, and a view-only member can open and export the template.

Quality Control

Quality control, under Analysis → Cell analysis, looks for instability during acquisition, such as a clog, a bubble, or a pressure drift. It bins the run by time and flags bins that sit outside your threshold, defaulting to 100 bins and 3 standard deviations.

A channel is counted as affected, and its time profile drawn in red, only where its own signal moved. A stretch where the event rate changed, as with a clog or a bubble, is drawn in gray on every profile and listed under Event rate in the exclusion regions.

Review the flagged regions, deselect any you're happy with, and press Apply time gate. A green dot marks the filter as active.

Applying a time gate re-parents your whole tree. Conspecta creates a gate named "QC Time" covering the good time windows, draws it on a Time histogram at the top of the tree, and moves every top-level gate and plot underneath it, so all your existing populations are now filtered by it. Applying again replaces the earlier "QC Time" gate. One undo takes the whole apply back. Removing the filter later clears the result without deleting the gates it made.

Quality control needs a TIME channel in the file.