Sequencer focus quality metrics and focus tracking for periodically patterned surfaces

Intensity-independent focus quality metrics using Fourier transforms address the inconsistency of Brenner scores by providing a robust focus model for patterned surfaces in nucleic acid sequencing, ensuring consistent focus quality and accurate imaging.

JP2024534332APending Publication Date: 2024-09-20ILLUMINA INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024514455
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-09-08
Filing Date
2022-09-09
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Current focus assessment methods for patterned surfaces in nucleic acid sequencing, such as Brenner scores, are intensity-dependent and lack robustness due to spatial and temporal non-uniformity of fluorophore intensity, leading to inconsistent focus quality measurements across different sequencing systems and image tiles.

Method used

The use of intensity-independent focus quality metrics generated through Fourier transforms, such as discrete Fourier transforms, to calculate parameters like radial slope and corner frequency, which are used to create a focus model that is robust to intensity variations, allowing for consistent focus quality assessment and correction.

Benefits of technology

The proposed method provides a robust and consistent measure of focus quality across different sequencing runs and systems, independent of intensity fluctuations, ensuring accurate imaging and sequencing results by maintaining optimal focus throughout the process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024534332000001
    Figure 2024534332000001
Patent Text Reader

Abstract

The generation and use of a focus quality metric that is intensity independent is described. In one example, the focus quality metric is generated by acquiring an image, such as an image of a patterned surface of a flow cell, and processing all or a portion (e.g., a sub-region or sub-image) to generate a Fourier transform of the respective image data. By way of example, in one embodiment, a discrete Fourier transform may be applied to a sub-region of the image of the patterned flow cell surface. The focus quality metric that is intensity independent may be derived from the Fourier transform of the image data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present approach relates generally to an image-based approach for evaluating patterned surfaces, including patterned surfaces on substrates used to sequence or otherwise process nucleic acid sequences. More specifically, the approach relates to assessing focus quality for scanning such patterned surfaces. [Background technology]

[0002] In the context of nucleic acid sequencing, a sequencing device such as a flow cell may contain several individual sites (e.g., sample wells or nanowells) at locations on a surface. Such sites may contain chemical groups or biological molecules, which may be the same or different among many sites, and may interact with other materials of interest, such as biological samples. The sites may be located and / or analyzed by taking an image of the substrate surface, for example, by planar imaging or by line scanning. The image data may be processed to locate and identify at least a portion of the sites and / or to obtain qualitative or quantitative measurements related to the sample being analyzed. In such a context, if a chemical or biological interaction occurs at a particular site, the interaction may be detected at that site and correlated with the location and identity of the site and the particular group or molecule present at the site.

[0003] The features are often arranged in a regular geometric pattern with repeating elements of the pattern, such as a checkerboard or hexagonal grid, to optimize the number of features available on the substrate surface and to facilitate location of the features by automated equipment. The location of the individual features on the surface can be determined and / or corrected using a variety of registration methods. By way of example, local registration techniques may utilize rigid registration fiducials, such as bull's-eye patterns, that are present at various known locations in the image to enable cross-correlation with a known template. An in-plane shift or offset may be determined as a result of this cross-correlation, and the template location and / or image data may be adjusted or corrected based on these offsets.

[0004] With the foregoing context in mind, it will be appreciated that the focus quality associated with the imaging process used in reading sites on a sequencing device, such as a flow cell, is important to both the registration process performed to identify the sites for data readout, and to the data acquisition step itself. Thus, focus quality may be quantified to monitor or perform several steps in a given sequencing operation, including, but not limited to, registration of sample sites on a given surface (e.g., flow cell registration), focus model generation, focal plane mapping, and focus tracking during a sequencing run.

[0005] Current approaches to measuring or otherwise assessing focus quality may be based on the use of a Brenner gradient or function to generate a focus score (i.e., a Brenner score) that can be used as part of an autofocus process. However, such Brenner scores are inherently intensity-dependent. Accordingly, focus techniques based on Brenner scores suffer from robustness issues due to such intensity-dependence. For example, in the context of nucleic acid sequencing, focus metrics based on Brenner scores may not be robust over time or between sequencing systems because the intensity of fluorophores across the flow cell surface is non-uniform or varies over time (e.g., spatial and / or temporal heterogeneity). Thus, focus assessments based on Brenner gradients may mischaracterize intensity variations as focus variations or differences. As a result, it is not robust to compare Brenner scores across instruments (e.g., sequencers) and / or flow cells, or even within acquired image tiles of a flow cell. Summary of the Invention

[0006] The techniques described herein provide for the generation and use of focus quality metrics that are intensity independent. In one context, the focus quality metrics are generated by acquiring an image, such as an image of a patterned surface of a flow cell, and processing all or a portion (e.g., a sub-region or sub-image) to generate a Fourier transform of the respective image data. As an example, in one embodiment, a discrete Fourier transform may be applied to a sub-region of the image of the patterned flow cell surface. An average (or median) radial intensity may be calculated for the resulting Fourier transform and then used to determine a power spectrum for the Fourier transform and the underlying image data. Various examples herein are presented in the context of two-dimensional (2D) Fourier transforms, and such examples may refer to radii, radial intensities, radial averages, etc., in the context of the corresponding 2D Fourier transform. However, such references to radii or derived values ​​for respective radii may be considered a special case in these 2D contexts, and it should be understood that such radius-based terms may be encompassed in other examples and generally in a broader context for k-space (i.e., Fourier or frequency space) and k-values ​​within k-space. Thus, as used herein, references to radius, radial mean, radial intensity, etc. may be more broadly understood to correspond to their generalized counterparts in k-space, and such k-space terminology may be used where appropriate in non-2D (e.g., one-dimensional, 1D) Fourier transform examples herein.

[0007] A piecewise function may be fitted to the power spectrum and one or more parameters may be determined for the fitted piecewise function. Such parameters may include, but are not limited to, radial gradient, corner frequency, noise floor, etc. In one embodiment, the radial gradient constitutes a focus quality metric for the imaging sub-region from which the Fourier transform was derived. The radial gradient, and the corresponding focus quality metric, are intensity independent and thus provide a consistent measure of focus quality despite intensity variations between sequencing runs and / or between sequencing imagers.

[0008] Importantly, some of the approaches for generating focus quality metrics described herein do not assume a Gaussian distribution profile for the point spread function that may be assumed in other conventional approaches. Indeed, a Lorentzian distribution profile may better describe the point spread function in certain embodiments. Because a Gaussian profile is not assumed, the focus quality quantification techniques of the present disclosure are more flexible in their applications than other approaches that rely on such assumptions.

[0009] In practice, focus quality metrics generated according to the techniques described herein may be generated at the beginning of a sequencing run and used to parameterize a focus model that is used later throughout the sequencing run to monitor and correct the focus of the imaging device relative to the patterned surface of the flow cell. As an example, as part of the initial focus model generation, a real-time focus monitoring system, such as an infrared (IR)-based focus measurement system, may be calibrated based on the focus model. The calibrated IR focus measurement system may then be used during sequencing to monitor and correct focus in real time. In some embodiments, the focus quality metrics described herein are calculated only at the beginning of the sequencing run for focus model generation. In other embodiments, the focus quality metrics described herein are calculated at intervals (e.g., every 10, 20, 30, or 40 cycles) to update the focus model and recalibrate the real-time focus measurement system.

[0010] In some systems, image acquisition may be multi-channel, such that images at different frequencies (e.g., red, blue, green, etc.) are obtained for each imaging region. In such systems, the focus quality metrics described herein may be calculated for each channel for the imaging region. The focal plane or height may then be determined by selecting a representative focal height (e.g., a mid-focus height) that provides good focus for each color channel.

[0011] With the above in mind, in one embodiment, a method is provided for calculating a focus quality metric. According to this method, an image of a flow cell containing multiple sample wells is acquired or accessed. A Fourier transform of part or all of the image is calculated. An optical point spread function (PSF) associated with the image does not have a Gaussian profile. Based on the Fourier transform, a power spectrum is calculated. The slope of a linear segment fitted to a portion of the power spectrum is calculated. The slope corresponds to a focus quality metric.

[0012] In a further implementation, a sequencing device is provided. According to this implementation, the sequencing device includes a sample stage configured to support a sample container, an objective lens, a photodetector, and a light source configured to operate in combination to image the sample container when present on the sample stage, a focus component configured to control the positioning of the objective lens relative to the sample container when present on the sample stage, and a controller. The controller is configured to perform operations including: for each image in a stack of acquired images of the sample surface at different z-heights, calculating a respective Fourier transform for a sub-region of the respective image; for each Fourier transform, calculating a respective gradient of a linear segment fitted to a portion of the respective power spectrum calculated from the Fourier transform, where the gradient corresponds to a focus quality metric; parameterizing a focus model based on the focus quality metric; and controlling the operation of the focus component during the sequencing operation based on the focus model.

[0013] In a further embodiment, a method for calculating a focus quality metric is provided. According to the method, an image of a flow cell including a plurality of sample wells is acquired or accessed. A one-dimensional Fourier transform of one or more rows of pixels in the image is calculated. A power spectrum is determined based on the one-dimensional Fourier transform of the pixels of each row. A slope of a linear segment fitted to a portion of the power spectrum is determined, where the slope corresponds to the focus quality metric. A focus model is parameterized or calibrated based on at least the focus quality metric or a score derived from the focus quality metric. Based on the focus model, a relative position of an objective lens and a sample stage on which the flow cell is positioned is adjusted.

[0014] In a further embodiment, a sequencing instrument is provided. According to this implementation, the sequencing instrument includes a sample stage configured to support a flow cell, an objective lens, a photodetector, and a light source configured to operate in combination to image the flow cell when present on the sample stage, a focus component configured to control the positioning of the objective lens relative to the flow cell when present on the sample stage, and a controller. The controller is configured to perform operations, including: for each image in a stack of acquired images of the sample surface at different z-heights, determining a respective one-dimensional Fourier transform for a pixel column in each image; for each one-dimensional Fourier transform, determining a respective slope of a linear segment fitted to a portion of each power spectrum calculated from the one-dimensional Fourier transform, the slope corresponding to a focus quality metric; parameterizing a focus model based on the focus quality metric; and controlling the operation of the focus component during the sequencing operation based on the focus model. [Brief description of the drawings]

[0015] These and other features, aspects, and advantages of the present invention will become better understood when the following detailed description is read in conjunction with the accompanying drawings, in which like features represent like parts throughout the drawings. [Figure 1] 1 illustrates a high level overview of an example image scanning system in accordance with the present disclosure. [Diagram 2] FIG. 1 is an illustration of a block diagram of an imaging and image processing system, such as for a biological sample, in accordance with the present disclosure. [Diagram 3] FIG. 1 is a plan view of an exemplary patterned surface according to the present disclosure. [Figure 4] 11A-11C are further cutaway views illustrating sites on an exemplary patterned flow cell surface according to the present disclosure. [Diagram 5] FIG. 13 is a close-up of two exemplary regions of a patterned flow cell surface illustrating pixilation in the image data for the region being processed. [Figure 6] FIG. 2 is a block diagram illustrating an exemplary focus control system for focus operation according to the present disclosure. [Figure 7] FIG. 2 illustrates an example architecture for a z-stage controller in accordance with the present disclosure. [Figure 8] 1 depicts a process flow illustrating steps in generating a focus quality metric according to the present disclosure. [Figure 9] 1 visually illustrates a Fourier transform derived from an image according to the present disclosure. [Figure 10] 10 visually illustrates a power spectrum derived from a Fourier transform in accordance with the present disclosure. [Figure 11] 10A-10C visually illustrate a piecewise function fit to a power spectrum and a Fourier transform derived from an image, according to the present disclosure. [Figure 12A] 13 visually illustrates the fitting of piecewise functions to the power spectra derived for each image in a z-stack of images, in accordance with the present disclosure. [Figure 12B]13 visually illustrates the fitting of piecewise functions to the power spectra derived for each image in a z-stack of images, in accordance with the present disclosure. [Figure 12C] 13 visually illustrates the fitting of piecewise functions to the power spectra derived for each image in a z-stack of images, in accordance with the present disclosure. [Figure 13A] For the power spectra illustrated in FIGS. 12A-12C, corresponding image data are plotted. [Figure 13B] For the power spectra illustrated in FIGS. 12A-12C, corresponding image data are plotted. [Figure 13C] For the power spectra illustrated in FIGS. 12A-12C, corresponding image data are plotted. [Figure 14] 1 graphically depicts a plot of radial gradient and corner frequency plotted versus z-height for two different color channels in accordance with the present disclosure. [Figure 15] 13 graphically depicts plots of radial gradient and Brenner score determined for a fixed focal height and over a range of intensity values. [Figure 16] 1 graphically depicts a plot of radial gradient over a range of z and y dimension values ​​in accordance with the present disclosure. [Figure 17] 1 graphically depicts plots of radial gradient and corner frequency determined for different flow cells in accordance with the present disclosure. [Figure 18] 1 graphically depicts a visually coded representation of gradients plotted for different sub-regions of an image in accordance with the present disclosure. [Figure 19] 1 depicts a radially asymmetric Fourier transform and corresponding power spectrum in accordance with the present disclosure. [Figure 20] 1 depicts a process flow illustrating steps in generating a focus quality metric using column data in accordance with the present disclosure. [Figure 21] 1 visually illustrates a one-dimensional Fourier transform derived from an image according to the present disclosure. [Figure 22]10A-10C visually illustrate a piecewise function fit to a power spectrum and a Fourier transform derived from an image, according to the present disclosure. [Figure 23] 13A-13D visually illustrate plots of integrated power versus k-space values ​​for varying row length and using a first averaging scheme in accordance with the present disclosure. [Figure 24] 13A-13D visually illustrate plots of integrated power versus k-space values ​​for varying row length and using a second averaging scheme in accordance with the present disclosure. [Diagram 25] 13 visually illustrates a plot depicting a parabolic fit of focus quality metric versus depth of focus to identify an optimal depth of focus, according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] One or more specific embodiments are described below. In order to provide a concise description of these embodiments, not all features of an actual implementation are described herein. It should be understood that the development of any such actual implementation, as with any engineering or design project, will require numerous implementation-specific decisions to be made in order to achieve the developer's specific goals, such as compliance with system-related and enterprise-related constraints that may vary from implementation to implementation. It should be further understood that such a development effort may be complex and time-consuming, but will nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill in the art having the benefit of this disclosure.

[0017] The present disclosure provides for the use of Fourier transforms (e.g., discrete Fourier transforms (DFTs)) in the generation of focus quality metrics, as well as examples of the use of such focus quality metrics, such as generating or otherwise parameterizing focus models used during sequencing or scanning operations to provide real-time focus monitoring or correction. In certain implementations, a regularly patterned surface (e.g., a surface having a periodic or other repeating pattern of sites, such as a sample well) is imaged, and regions or subregions of the image are assessed separately for focus quality, such as by calculating a focus quality metric described herein for each region or subregion of interest. Focus quality metrics generated according to this approach are intensity independent and therefore robust to run-to-run or device-to-device intensity variations across the patterned surface. As a result, the focus quality metrics described may be used to quantify and compare focus quality even on images that exhibit photobleaching or other intensity dynamics that result in intensity variations between devices, samples, processes, runs, etc.

[0018] To provide further context for the terms and concepts discussed below, it may be noted that as used herein, a "flow cell" may be understood to be a sample holding and / or processing structure or device. Such a device includes sites or wells (i.e., sample sites or binding sites) where analytes may be located for processing and analysis. As discussed herein, some or all of the sites may be arranged in a repeating or periodic pattern on one or more surfaces of the flow cell structure.

[0019] Additionally, with regard to the concept of "focus" and its uses and relevance to imaging operations, this concept may relate to, but is not limited to, the following: (1) real-time autofocus, which focuses on the area being imaged in real-time; (2) look-ahead predictive focusing, by analyzing the next area to be imaged; and / or (3) feed-forward focusing, by using previous scan information from a previous scan cycle of the same area for the current scan. Some or all of these are discussed in U.S. Pat. No. 8,422,031 (filed Nov. 16, 2010, issued Apr. 16, 2013, entitled "FOCUSING METHODS AND OPTICAL SYSTEMS AND ASSEMBLIES USING THE SAME"), U.S. Pat. No. 11,054,624 (filed Dec. 22, 2017, issued July 6, 2021, entitled "PREDICTIVE FOCUS TRACKING APPARATUS AND METHODS"), and U.S. Pat. No. 10,834,308 (filed Jan. 10, 2019, issued Nov. 10, 2020, entitled "REAL TIME CONTROLLER SWITCHING"), all of which are incorporated by reference herein in their entirety and for all purposes.

[0020] Furthermore, as discussed herein, in nucleic acid sequencing technology, oligomeric or polymeric chains of nucleic acids that can be spatially separated and identified on a substrate, such as a patterned surface of a flow cell, can be subjected to several cycles of biochemical processing and imaging. Such patterned surfaces can include DNA or RNA probes specific to nucleotide sequences present in plants, animals (e.g., humans), and other organisms. In some applications, individual DNA or RNA probes can be attached to individual features (e.g., sample wells or sites) of the surface of a patterned flow cell. Test samples, such as those from known or unknown humans or organisms, can be exposed to the sites such that target nucleic acids (e.g., gene fragments, mRNA, or amplicons) hybridize to complementary probes at their respective sites in the site pattern. The probes can be labeled for target-specific processes (e.g., due to a label present on the target nucleic acid or due to an enzymatic label of the probe or target present in hybridized form at the feature). The patterned surface can then be examined, such as by scanning specific frequencies of light (e.g., one, two, three, or four frequencies) over the features to identify which target nucleic acids are present in the sample. In practice, multiple (e.g., two) different images can be obtained in a given cycle, with each feature being detected in the combined image. Sequencing involves multiple cycles, and image data from successive cycles is used to determine the sequence of nucleotides at each site based on the sequence of labels detected at each site. As discussed herein, poor focus of the image can adversely affect sequence analysis.

[0021] With regard to the size of features such as reaction or sample binding sites (e.g., sample wells or nanowells) on a patterned surface, the size of such features can be selected to suit a desired application. In some examples, a patterned surface feature can have a size that accommodates only a single nucleic acid molecule. A surface with multiple features in this size range is useful for constructing patterns of molecules for detection with single molecule resolution. Features in this size range are also useful for use with patterned surfaces having features each containing a colony of nucleic acid molecules. Thus, the features of a patterned surface can each be approximately 1 mm 2 Below, approximately 500μm 2 Below, approximately 100μm 2 Below, approximately 10μm 2 Below, approximately 1μm 2 Below, about 500nm 2 Below, about 100nm 2 Below, approximately 10nm 2 Below, approximately 5nm 2 Less than or equal to 1 nm 2 Alternatively or additionally, the patterned surface features may have an area of ​​about 1 mm 2 More than approximately 500μm 2 More than approximately 100μm 2 or more, about 10μm 2 or more, approximately 1μm 2 or more, about 500nm 2 More than 100 nm 2 or more, about 10nm 2 or more, about 5nm 2 More than or about 1 nm 2 And that's it. In fact, features can have a size within a range between upper and lower limits selected from those exemplified above. Although some size ranges of surface features have been exemplified with respect to nucleic acids and nucleic acid scales, it will be understood that features in these size ranges can be used in applications that do not involve nucleic acids. It will be further understood that the size of the features need not necessarily be limited to the scale used in nucleic acid applications.

[0022] In examples involving objects (e.g., flow cell surfaces) with multiple features, the features (e.g., sample sites or wells) may be discrete and separated by spaces between each other. Patterned surfaces useful in this context may have features that are separated by edge-to-edge distances of at most about 100 μm, about 50 μm, about 10 μm, about 5 μm, about 1 μm, about 0.5 μm, or less. Alternatively or additionally, patterned surfaces may have features that are separated by edge-to-edge distances of at least about 0.5 μm, about 1 μm, about 5 μm, about 10 μm, about 50 μm, about 100 μm, or more. These ranges may apply to the average edge-to-edge spacing and edge-to-edge spacing of the features, as well as the minimum or maximum spacing.

[0023] The size of the features and / or the pitch of the features can be varied so that the features on the patterned surface can have a desired density. For example, the average feature pitch in a regular pattern can be up to about 100 μm, about 50 μm, about 10 μm, about 5 μm, about 1 μm, or about 0.5 μm or less. Alternatively or additionally, the average feature pitch in a regular pattern can be at least about 0.5 μm, about 1 μm, about 5 μm, about 10 μm, about 50 μm, about 100 μm or more. These ranges can also apply to the maximum or minimum pitch of a regular pattern. For example, the maximum characteristic pitch in the regular pattern can be at most about 100 μm, about 50 μm, about 10 μm, about 5 μm, about 1 μm, or about 0.5 μm or less, and / or the minimum characteristic pitch in the regular pattern can be at least about 0.5 μm, about 1 μm, about 5 μm, about 10 μm, about 50 μm, or about 100 μm or more.

[0024] The density of features on a patterned surface may also be understood in terms of the number of features present per unit area. For example, the average density of features on a patterned surface may be at least about 1×10 3 Appearance / mm 2 , about 1×10 4 Appearance / mm 2 , about 1×10 5 Appearance / mm 2 , about 1×10 6Appearance / mm 2 , about 1×10 7 Appearance / mm 2 , about 1×10 8 Appearance / mm 2 , or about 1 × 10 9 Appearance / mm 2 Alternatively or additionally, the average density of features on the patterned surface can be at most about 1×10 9 Appearance / mm 2 , about 1×10 8 Appearance / mm 2 , about 1×10 7 Appearance / mm 2 , about 1×10 6 Appearance / mm 2 , about 1×10 5 Appearance / mm 2 , about 1×10 4 Appearance / mm 2 , or about 1 × 10 3 Appearance / mm 2 It can be the following:

[0025] The features provided on the patterned surface can have any of a variety of shapes, cross-sections, and layouts. For example, when viewed in a two-dimensional plane, such as on a surface, the features can have perimeters that are rounded, circular, elliptical, rectangular, square, symmetrical, asymmetrical, triangular, polygonal, etc. The features can be arranged in regular repeating patterns, including, for example, hexagonal or rectilinear patterns. The pattern can be selected to achieve a desired level of packing. For example, circular features are optimally packed in a hexagonal arrangement. Other packing configurations can also be used for circular features, and vice versa.

[0026] In general, a patterned surface can be characterized in terms of the number of features present in a subset that forms the smallest geometric unit of the pattern. A subset may include, for example, at least 2, 3, 4, 5, 6, 10 or more features. Depending on the size and density of the features, a geometric unit may be on the order of 1 mm. 2 , about 500μm 2 , about 100μm 2 , about 50μm 2, about 10μm 2 , about 1μm 2 , about 500nm 2 , about 100 nm 2 , about 50nm 2 , or about 10 nm 2 Alternatively or additionally, the geometric unit may occupy an area of ​​about 10 nm 2 , about 50nm 2 , about 100 nm 2 , about 500nm 2 , about 1μm 2 , about 10μm 2 , about 50μm 2 , about 100μm 2 , about 500μm 2 , or about 1 mm 2 The characteristics of the features in geometric units, such as shape, size, pitch, etc., can be selected from those described herein more generally with respect to features provided on a patterned surface.

[0027] A surface with a regular pattern of features may be ordered with respect to the relative location of the features, but random with respect to one or more other characteristics of each feature. For example, in the case of a nucleic acid sequencing surface, the nucleic acid features may be ordered with respect to their respective relative locations, but random with respect to sequence knowledge regarding the nucleic acid species present at any feature. As a more specific example, a nucleic acid sequencing surface formed by seeding a repeating pattern of features with a template nucleic acid and amplifying the template at each feature (e.g., via cluster amplification or bridge amplification) to form copies of the template at the features will have a regular pattern of nucleic acid analytes, but will be random with respect to the distribution of sequences of the nucleic acids across the pattern. Thus, detection of the presence of nucleic acid material on a surface can result in a repeating pattern of features, whereas sequence-specific detection can result in a non-repeating distribution of signals across the surface.

[0028] As can be appreciated, the descriptions of patterns, orders, randomness, etc. provided herein relate not only to features on objects (e.g., solid substrates having such features, such as features on a solid support or surface), but also to image data, or images generated from such image data, that include or depict such objects having the features described herein. Thus, the patterns, orders, randomness, etc. can be present in any of a variety of formats used to store, manipulate, or communicate image data, including, but not limited to, computer readable media or computer components such as graphical user interfaces or other output devices.

[0029] As used herein, the term "fiducial" is intended to mean a fiducial identifiable region (e.g., point or area) in or on an object (such as a support or substrate having sites for molecular material to be analyzed, such as a flow cell surface) and in the acquired image data of the object. A fiducial can be, for example, a mark, an object, a shape, an edge, an area, an irregularity, a channel, a pit, a post, or, as is often the case, a collection of features at a known location, geometry, and / or configuration that can be used as a fiducial. A fiducial can be present in an image of the object or in another data set derived from detecting (e.g., imaging) the object.

[0030] Fiducials are included on or in the patterned surfaces contemplated in this disclosure, as well as in the image data of sites and molecules, to facilitate identification and localization of individual features on the patterned surface, including sites where molecules are located. Fiducials are useful for registering the spatial location of sites or features, because they provide a reference area or point of reference for the relative location of such sites or features. Fiducials are useful in applications where the support and sites are repeatedly detected to track changes that occur at individual sites over time, and successive cycles of processing. For example, fiducials may allow individual nucleic acid clusters to be tracked through successive images obtained over multiple sequencing cycles, so that the sequences of nucleic acid species present in each cluster can be accurately determined.

[0031] With the above in mind, in certain real-world implementations, the present technology facilitates the generation of a quantitative measure of focus quality of an image of a fluorescent emitter on a patterned flow cell substrate that can be processed using a nucleic acid sequencer or equivalent image-based system. In such a context, focus quality can be quantified using the metrics described herein regardless of the instrument or instrument type, flow cell type, or location on the flow cell. As an example, a fluorescent image of a flow cell can be acquired by a sequencer (i.e., a sequencing system). Sub-regions of the fluorescent image can be defined, and respective discrete Fourier transforms and power spectral densities can be calculated for one or more of the sub-regions. In one such example, the radial mean (or other measure of central tendency, such as the median or mode) of the resulting power spectrum is calculated. A least-squares fit (or other suitable measure of fit) is generated to fit a piecewise function to the power spectrum (e.g., an integrated power versus radius plot), and the fitted function is used to derive one or more of the following values: (1) a radial gradient, which corresponds to focus quality; (2) a corner frequency, which determines the maximum spatial frequency at which focus information is found; and (3) a noise floor, below which no useful information is obtained.

[0032] In the context of such sequencers, as discussed herein, the derived focus quality metric (i.e., radial gradient) is largely insensitive to the intensity of the fluorescent emitters on the patterned surface. As a result, the focus quality metric is robust in the presence of normal variations found in grafting and template hybridization processes and to non-uniformities in excitation intensity. Furthermore, the present approach in the context of such sequencing is insensitive to normal non-uniformities in the acquired fluorescent image, since it relies on periodic information generated from thousands to tens of thousands of fluorescent emitters in the field of view. Additional benefits may also include the generation of additional diagnostic data regarding the point spread function (PSF) (e.g., based on a Lorentzian distribution profile) of the optics generating the image, and information regarding the sample plane tilt (i.e., the tilt of the focal plane associated with the substrate or surface being imaged). Such information may be useful as part of an initial or one-time calibration, as part of a calibration or recalibration performed periodically, or as part of an iterative or run-time recalibration performed during each scanning operation at intervals (e.g., every 10, 20, 30, 40, or 50 cycles) to initialize, update, or calibrate a focus model used to maintain focus quality throughout the scanning process. In addition, in certain implementations of the focus quality quantification techniques described herein, a Gaussian distribution profile of the PSF is not assumed (unlike other conventional approaches). Indeed, a Lorentzian distribution profile may better describe the PSF in certain embodiments. Because a Gaussian profile is not assumed, the focus quality quantification techniques of the present disclosure are more flexible in their respective applications than other approaches that rely on such assumptions.

[0033] With the above in mind, some examples are described herein with respect to the generation and use of focus metrics and / or focus models parameterized or calibrated using such metrics, and their respective use in systems and methods of analysis.It will be understood that systems for implementing methods in an automated or semi-automated manner are also provided, such systems comprising a processor, a data storage device, and a program for image analysis, the program comprising processor-executable instructions for implementing one or more of the methods provided for generating focus metrics using discrete Fourier transform, and processor-executable instructions for using such focus metrics in the context of real-world imaging, such as in the context of nucleic acid sequencing.Thus, the methods discussed herein can be implemented, for example, on a computer having the components and executable routines required for such purposes.

[0034] The methods and systems described herein can be used to analyze any of a variety of materials, such as biological samples and molecules, which may be on or in a variety of objects. Useful objects are solid supports or solid-phase surfaces with attached analytes. The methods and systems described can provide advantages in assessing and correcting the focus quality of an imaging device when used with objects that have repeating patterns of appearance in the x,y plane, such as patterned flow cells with attached collections of molecules, such as DNA, RNA, biological materials from viruses, proteins, antibodies, carbohydrates, small molecules (such as drug candidates), biologically active molecules, or any other analytes of interest.

[0035] While the above provides useful background and context for the terminology and processes, the following provides examples of suitable systems and functional workflows that may utilize or process a sample substrate with the benefit of the focus quality metrics described herein. By way of example, FIG. 1 depicts an example of an optical image scanning system 10, such as a sequencing system that may be used in conjunction with the disclosed focus quality quantification techniques to process biological samples. With respect to such an imaging system 10, it can be understood that such imaging systems typically include a sample stage or support that holds the sample or other object to be imaged (e.g., a flow cell or sequencing cartridge having a patterned surface of spaced apart sample sites), and an optical stage that includes the optical elements used for the imaging operation. Focusing operations of such imaging systems 10 typically involve moving the optical stage relative to the sample stage. As part of those operations, such imaging systems may be operated in one mode to generate a focus model, such as by holding the sample stage in a fixed position relative to the optical stage for a period of time to acquire focus information. As part of focus model generation (or recalibration) as discussed herein, focus quality metrics as described herein may be generated to parameterize or update the focus model. In a separate sequencing mode of operation, fast focus adjustments may be performed using the calibrated focus model to maintain adequate throughput.

[0036] With reference to FIG. 1, an exemplary image scanning system may include a device for acquiring or generating an image of an area, such as a tile, subtile, or line (e.g., a row of sample sites or a row of pixels) of a flow cell. The example illustrated in FIG. 1 shows an exemplary image scanning system configured in a backlight operating configuration. In the depicted example, a target sample is located on a sample container 110, which is positioned on a sample stage 170 below an objective lens 142. A light source 160 and associated optics direct a light beam, such as a laser light or a superluminescent light emitting diode (SLED), to a selected sample location on the sample container 110. The sample fluorescence and resulting light are collected by the objective lens 142 and directed to a photodetector 140 to detect the fluorescence. The sample stage 170 is moved relative to the objective lens 142 to position the next sample location on the sample container 110 at the focal point of the objective lens 142. Movement of the sample stage 170 relative to the objective lens 142 can be accomplished by moving the sample stage itself, the objective lens, the entire optical stage, or any combination of these structures. Further examples may also include moving the entire imaging system over a stationary sample.

[0037] The fluid delivery module or device 100 directs the flow of reagents (e.g., fluorescent nucleotides, buffers, enzymes, cleavage reagents, etc.) to (and through) the sample container 110 and waste valve 120, as discussed in detail below. In some applications, the sample container 110 can be implemented as a flow cell that contains clusters of nucleic acid sequences at multiple sample locations on the sample container 110. The samples to be sequenced may be attached to a substrate of the flow cell along with other optional components. In practice, the multiple sample locations provided on the surface of the flow cell may be arranged as spaced apart sample sites, and the sample sites may be subdivided into tile, subtile, and line regions, each of which contains a corresponding subset of the multiple sample locations.

[0038] The depicted exemplary image scanning system 10 also includes a temperature station actuator 130 and a heater / cooler 135 that can optionally adjust the temperature of the fluid state in the sample container 110. A camera system (e.g., photodetector system 140) can be included to monitor and track the sequencing of the sample container 110. The photodetector system 140 can be implemented, for example, as a CCD camera that can interact with various filters in a filter switching assembly 145, an objective lens 142. The photodetector system 140 is not limited to a CCD camera, and other camera and image sensor technologies can be used. A focusing assembly (e.g., a focused emitter 150 (e.g., a focused laser or SLED) and a focus detector 141) can also be provided that operates in conjunction with a focus model (as discussed herein) to provide rapid or real-time focus measurements based on calibration of the focus assembly to the focus model.

[0039] A light source 160 (e.g., an excitation emitter (e.g., a laser or SLED) in an assembly optionally comprising multiple emitters) can be included to illuminate the fluorescent sequencing reaction in the sample via illumination through a fiber optic interface 161 (which can optionally comprise one or more reimaging lenses, fiber optic mounts, etc.). In the example shown, a low wattage lamp 165 and an inverse dichroic 185 are also presented. In some applications, the focused emitter 150 can be turned off during imaging. In other applications, an alternative focus configuration can include a second focused camera, which can be a quadrant detector, optical position sensor, or similar detector, to measure the location of the scattered beam reflected from the surface simultaneously with data collection. In such an alternative configuration, the focus model can still be used to calibrate the operation of the high-speed focus detection mechanism, as discussed herein.

[0040] Although illustrated as a backlit device, other examples may include light from a laser, SLED, or other light source being directed through the objective lens 142 to the sample on the sample container 110 (i.e., a frontlit configuration). The sample container 110 may be mounted to a sample stage 170 to provide movement and alignment of the sample container 110 relative to the objective lens 142. The sample stage 170 may have one or more actuators that allow it to move in any of three directions. For example, actuators may be provided that allow the stage to move in the X, Y, and Z directions relative to the objective lens 142 in terms of a Cartesian coordinate system. This may allow one or more sample locations on the sample container 110 to be positioned in optical alignment with the objective lens 142.

[0041] In this example, a focus component 175 is shown included to control the positioning of the optical components relative to the sample container 110 in a focus direction (typically referred to as the z-axis or z-direction). The focus component 175 can include one or more actuators physically coupled to the optical stage or the sample stage, or both, to move the sample container 110 on the sample stage 170 relative to the optical components (e.g., the objective lens 142) to provide proper focusing for the imaging operation. For example, the actuators can be physically coupled to the respective stages, e.g., by direct or indirect mechanical, magnetic, fluidic, or other connections or contacts with the stages. The one or more actuators can be configured to move the stage in the z-direction while keeping the sample stage in the same plane (e.g., while maintaining a level or horizontal orientation perpendicular to the optical axis). The one or more actuators can also be configured to tilt the stage. This is done, for example, so that the sample container 110 can be dynamically flattened to compensate for any gradients in its surface.

[0042] Focusing the system generally refers to aligning the focal plane of the objective lens 142 with the sample to be imaged at a selected sample location. However, focusing can also refer to adjusting the system to obtain or enhance a desired characteristic for the representation of the sample, such as a desired level of sharpness or contrast for the image of the test sample. Because the usable depth of field of the focal plane of the objective lens 142 may be very small (sometimes on the order of 1 μm or less), the focusing component 175 closely follows the surface being imaged. Because the sample container may not be perfectly flat as it is fixed to the instrument, the focusing component 175 may be set to follow this profile while moving along the scan direction (typically referred to as the y-axis).

[0043] Light emanating from the test sample at the sample location may be directed to one or more photodetectors 140. The photodetectors may include, for example, a CCD camera. An aperture may be included and positioned to allow only light emanating from the focal region to pass to the photodetectors. The aperture may be included to improve image quality by filtering components of the light emanating from regions outside the focal region. An emission filter may be included in the filter switching assembly 145 and may be selected to record the determined emission wavelength and to block any stray light.

[0044] In various examples, the sample vessel 110 (e.g., a flow cell) can include one or more substrates on which the sample is provided. For example, in the case of a system that analyzes a large number of different nucleic acid sequences, the sample vessel 110 can include one or more substrates on which the nucleic acids to be sequenced are bound, attached, or associated. In various examples, the substrates can include any inert substrate or substrate to which nucleic acids can be attached, such as, for example, glass surfaces, plastic surfaces, latex, dextran, polystyrene surfaces, polypropylene surfaces, polyacrylamide gels, gold surfaces, and silicon wafers. In some applications, the substrates are within channels or other areas in multiple locations formed in a matrix or pattern across the sample vessel 110.

[0045] One or more controllers 190 (e.g., processor or ASIC-based controllers) can be provided for controlling the operation of a scanning system, such as the exemplary image scanning system 10 described with reference to FIG. 1. The controller 190 can be implemented to control aspects of the system operation, such as, for example, scanning, focusing (e.g., measuring or quantifying focus quality, adjusting focus, etc.), stage movement and adjustment, and imaging operations. In various applications, the controller can be implemented using hardware, software, or a combination of the above. For example, in some implementations, the controller can include one or more CPUs or processors with associated memory. As another example, the controller can comprise hardware or other circuitry for controlling operations. For example, the circuitry may include one or more of the following: a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a programmable logic device (PLD), a complex programmable logic device (CPLD), a programmable logic array (PLA), a programmable array logic (PAL), or other similar processing device or circuitry. As yet another example, a controller may comprise a combination of this circuitry with one or more processors.

[0046] The generation and / or use of focus quality metrics, and focus models that utilize or are based on such metrics, may be described and discussed herein in the context of this exemplary system, which is but one example in which these techniques may be implemented. After reading this description, one of ordinary skill in the art will understand how the systems and methods described herein may be implemented with this and other scanners, microscopes, and other imaging systems.

[0047] While the foregoing description covers the components and features of an optical image scanning system 10, such as a sequencing system, Figure 2 considers the use of such a system 10 in the context of a functional workflow. This discussion is provided to provide a useful real-world context for the subsequent discussion of the generation and use of focus quality metrics. In this manner, it is hoped that the use and importance of focus quality metrics will be more fully understood, as described hereinafter.

[0048] With this in mind, and referring to Figure 2, a block diagram illustrating an exemplary workflow along with system components is provided. In this example, the workflow and corresponding system components may be suitable for processing a patterned flow cell (such as for biological applications), imaging the patterned flow cell surface, and analyzing data derived from the imaging.

[0049] In the illustrated example, molecules (such as nucleotides, oligonucleotides, and other bioactive reagents) can be introduced into respective sample containers 110, which can be prepared in advance. As described herein, such sample containers 110 can comprise flow cells, sequencing cartridges, or other suitable structures having a substrate that contains a sample site for imaging. The depicted workflow with the system components can be utilized to synthesize biopolymers, such as DNA strands, or to sequence biopolymers. However, it should be understood that the present technology is not limited to sequencing operations, gene expression operations, diagnostic applications, and the like, but can be used more generally to process collected image data to derive focus quality metrics, such as detected swaths or regions from imaging of a sample or sample holder, as described below. Other substrates containing patterned or otherwise detectable features can be used with the disclosed technology and systems as well.

[0050] In the present context, exemplary biopolymers may include, but are not limited to, nucleic acids such as DNA, RNA, or analogs of DNA or RNA. Other exemplary biopolymers may include proteins (also referred to as polypeptides), polysaccharides, or analogs thereof. Any of a variety of biopolymers may be processed according to the described techniques, but for ease and simplicity of explanation, the systems and methods used for processing and imaging in the exemplary context are described with respect to processing of nucleic acids. In general, the described workflow processes sample containers 110, each of which may include a patterned surface of reaction sites. As used herein, "patterned surface" refers to a surface of a support or substrate having a population of different discrete and spaced apart reaction sites such that the different reaction sites may be distinguished from one another according to their respective relative locations. A single species of biopolymer may be attached to each individual reaction site. However, multiple copies of a biopolymer species may be attached to a reaction site. The pattern, viewed as a whole, may include multiple different biopolymers attached to multiple different sites. The reaction sites may be located at different addressable locations on the same substrate. Alternatively, a patterned surface can include separate substrates, each forming a different reaction site. The sites can include pieces of DNA attached to specific, known locations, or can be wells or nanowells into which target products are synthesized. In some applications, the system can be designed to sequentially synthesize or sequence molecules (such as polymeric molecules based on a common nucleotide).

[0051] In the diagrammatic representation of FIG. 2, the analysis system may include a processing system 224 (e.g., a sequencing system or station) designed to process a sample provided in a sample container 110 (which may include, e.g., a patterned surface) and generate image data representative of individual sites on the patterned surface and spaces between sites, as well as representations of fiducials provided in or on the patterned surface. A data analysis system 226 receives the image data and processes the image data to extract meaningful values ​​from the imaging data as described herein in accordance with the present disclosure. A downstream processing / storage system 228 may then receive this information and, if desired, store the information with the imaging data. The downstream processing / storage system 228 may further analyze the image data, or processed data derived from the image data, for example, to diagnose a physiological condition, compile a sequencing list, analyze gene expression, etc.

[0052] With respect to the data analysis system 226 and / or downstream processing / storage system 228 as may be relevant in the present context, the image data may be analyzed using real-time analysis (RTA) protocols commercially available for Illumina sequencers. Dark areas (no signal producing areas or pixels) and light areas (signal producing areas or pixels) may be assigned intensity levels of 0 and 255, respectively, or any other desired levels therebetween.

[0053] The processing system 224 may use a biomolecular reagent delivery system (shown in the example of FIG. 2 as a nucleotide delivery system 230) to deliver various reagents to the sample container 110 as processing progresses. The biomolecular reagent delivery system may correspond to the fluid delivery module or device 100 of FIG. 1. The processing system 224 may perform a number of operations in which the sample container 110 and corresponding sample progress. This progression can be accomplished in several ways, including, for example, physical movement of the sample container 110 to different stations, or loading of the sample container 110 (such as a flow cell) in a system in which the sample container 110 is moved or the optics are moved, or both, or delivery of fluids performed via valve actuation. The system may be designed for cyclic operation in which a reaction is prompted with a single nucleotide or oligonucleotide, followed by flushing, imaging, and deblocking in preparation for the subsequent cycle. In a practical system, the sample container 110 and corresponding sample are disposed in a processing system 224, and a sequence of automated or semi-automated operations for reaction, flushing, imaging, deblocking, etc. are performed in several successive cycles before any useful information is extracted from the test sample. Again, it is noted that the workflow illustrated in FIG. 2 is not limiting, and the present technique may operate on image data acquired from any suitable system for any application. It is noted that while this disclosure refers to "imaging" or "image data", in many practical systems this entails actual optical imaging and extraction of data from electronic detection circuitry (e.g., a camera or imaging electronics or chip), but other detection techniques may also be used, and the resulting electronic or digital detection data that characterizes the molecule of interest should also be considered an "image" or "image data".

[0054] 2, a nucleotide delivery system 230 provides a process stream 232 to the sample vessel 110. An effluent stream 234 from the sample vessel 110 (e.g., a flow cell) can be recaptured and recirculated, for example, in the nucleotide delivery system 230. In the illustrated example, the patterned surface of the flow cell can be flushed at a flush station 236 (or often by flushing via actuation of an appropriate valve, such as the waste valve 120 of FIG. 1) to remove additional reagents and clear the sample in the sample vessel 110 for imaging. The sample container 110 is then imaged, such as using line imaging or area imaging techniques, by an imaging system 10 (which may be in the same device). The image data generated thereby may be analyzed to determine the sequence of the progressively building nucleotide strand, for example based on a template. In one possible embodiment, the imaging system 10 may use confocal line scanning to generate progressive pixelated image data that may be analyzed to locate individual sites on the patterned surface and to determine the type of nucleotide most recently attached or bound to each site. Other imaging techniques, such as techniques using "step-and-shoot" or other area-based imaging approaches, may also be suitably used.

[0055] As discussed above, the imaging components of the imaging system 10 may be more generally considered to be "detection devices," and any detection device capable of high resolution imaging of a surface may be used. In some examples, the detection device will have sufficient resolution to distinguish features at the densities, pitches, and / or feature sizes described herein. An example of a detection device is one configured to obtain an area image while maintaining the object and detector in a known geometric relationship. As discussed above, line scanning devices (e.g., time delay and integration (TDI) scanning devices) and systems that obtain a series or successive area images (e.g., "step-and-shoot" detectors) may be used. A line scanning detector may be configured to scan a line within a cross sample on a flow cell (or other sample holding substrate) (conventionally designated the x-dimension) while the flow cell is moved incrementally in a scanning or scanning direction (conventionally designated the y-dimension). It will be appreciated that the detection device, the object, or both may be moved to achieve scanning detection. For example, detection devices useful in nucleic acid sequencing applications are described in U.S. Patent Application Publication Nos. 2012 / 0270305(A1), 2013 / 0023422(A1), and 2013 / 0260372(A1), as well as U.S. Patent Nos. 5,528,050, 5,719,391, 8,158,926, and 8,241,573, all of which are incorporated by reference herein in their respective entireties and for all purposes.

[0056] In one example, as discussed in more detail herein, the imaging system 10 used in the methods or systems described herein can scan along the y dimension of the patterned surface, scanning parallel swaths or lines of sites on the patterned surface in the process. The patterned surface can include coarse alignment markers that distinguish the relative locations of the swaths of sites along the x dimension. When used, the coarse alignment markers can cooperate with a detection device, such as to determine the location of at least one of the swaths of sites. Optionally, the relative position of the detection device and / or the sample container 110 with the patterned surface can be adjusted based on the determined location relative to the swath. In some examples, the determination of the location of the swath can be performed by a processor or computer-based algorithm, such as a computer used to perform registration or feature identification. Thus, the system can function to execute algorithms in a computer to determine the location of features in the image data as well as to characterize the molecules at each site.

[0057] Following imaging (e.g., in imaging system 10), the sample container 110 can proceed to a deblocking station 240 for deblocking, during which a blocking molecule or protecting group is cleaved from the last added nucleotide along with the marking dye. When processing system 224 is used for sequencing, by way of example, image data from imaging system 10 is stored and transferred to data analysis system 226.

[0058] The data analysis system 226 may include a general-purpose or application-specific programmed computer that provides a user interface and automated or semi-automated analysis of the image data to determine which of the four common DNA nucleotides may have been last added to each of the sites on the patterned surface, as described below. As will be appreciated by those skilled in the art, such analysis may be performed based on the color of the unique tagging dye for each of the four common DNA nucleotides, and thus multiple images at one or more light frequencies or combinations of light frequencies may be obtained for each imaged area of ​​the patterned surface. This image data may be further analyzed by downstream processing / storage system 228, which may store data derived from the image data, and the image data itself, as appropriate, as described below. Again, sequencing applications are intended to be an example, and other operations may be performed, such as diagnostic applications, clinical applications, gene expression experiments, etc., that generate similar imaging data that is manipulated by the present technology.

[0059] As noted above, in some implementations, the sample container 110 (e.g., flow cell) with the patterned surface can remain in a fixed position, and the "stations" referred to can include integrated subsystems (e.g., for introducing and reacting with desired chemicals, flushing, imaging, image data collection, etc.) that act on the sample container 110 as described. Data analysis can be performed simultaneously with other processing operations (i.e., "real-time"), or can be performed post-processing by accessing the image data, or data derived from the image data, from an appropriate memory (in the same system or elsewhere). In many applications, the patterned surface "container" comprises a cartridge or flow cell in which the patterned surface resides and in which the desired chemicals are circulated. In such applications, imaging can be performed through and via the flow cell. The flow cell can be appropriately positioned (e.g., in the xy plane) and moved (e.g., in the x, y, and z directions) as needed for imaging. Connections for the desired chemicals can be made directly to the flow cell when the flow cell is mounted on the device. Furthermore, depending on the device design and imaging technique used, the patterned surface encased in the flow cell may be initially located in the xy plane and moved in this plane during imaging, or the imaging components may be moved parallel to this plane during imaging. In general, it is reiterated that the "xy plane" is the plane of the patterned surface supporting the site, or a plane parallel to it. Thus, the flow cell may be said to extend in the xy plane, with the x direction being the direction across the sample, and the y direction corresponding to the scanning direction in which the flow cell undergoes relative motion during the scanning operation. However, it should be understood that this orientation may be reversed or otherwise altered. The flow cell and corresponding patterned surface may also be moved in the z direction, which is the focus direction, typically perpendicular to the plane defined by the x and y dimensions. Such movement may be useful for fixing the flow cell in place, for making fluidic connections to the flow cell, and for imaging (e.g., focusing optics to image sites at precise z depths).In some applications, the optical element can be moved in the x-direction for precise imaging.

[0060] With the above in mind, FIG. 3 illustrates an example of a patterned surface 288 that may be present as part of or within a sample container 110. As shown in FIG. 3, multiple grids or swaths 290 (depicted here as vertical swaths in the y dimension) may be provided, each including a number of individual tiles 294 to be imaged. Each image tile 294 then includes a number of sample sites (e.g., capture or reaction sites) that may display activity of interest in different cycles of a processing operation (e.g., a sequencing operation). As discussed herein, a wide range of layouts for the patterned surface 288 are possible, and the technology is not intended to be limited to any desired or particular layout. In the context of progressive line scanning, as imaging progresses, the sample container 110 (or the patterned surface 288 therein) will undergo relative motion in indexed directions such that each of the swaths 290 may be imaged. Note that in the context of FIG. 3, the surrounding flow cell in which the patterned surface 288 may be located is not shown.

[0061] FIG. 4 illustrates in somewhat more detail a scan line 310 across multiple sample sites 340 (e.g., wells or nanowells) within a swath 290. By way of example, in the context of a flow cell, the sites 340 may be gel-filled wells, with each well being occupied by a nucleic acid (e.g., DNA) colony. As noted above, in some implementations, the sites 340 may be laid out in any suitable grid pattern. In the illustrated example, the sites 340 are laid out in a hexagonal pattern, although rectangular patterns (e.g., rectilinear patterns) and other patterns may be used. The location of each site 340 is known with reference to one or more fiducials or fiducial features, such as edges 342 of a grid or portion of a patterned surface.

[0062] 5 illustrates a portion of an exemplary image of a type that may be generated based on image data collected by progressive scanning of an area of ​​interest of a patterned surface. The actual image 350 is composed of a number of pixels 352, each of which is assigned a digital value by the imaging system 10. In the contemplated context, the pixel data representing the image 350 may encode values ​​corresponding to bright or light pixels 354 and darker pixels 356. By way of example, dark areas (i.e., no signal producing areas or pixels) and light areas (i.e., signal producing areas or pixels) may be assigned intensity levels of 0 and 255, respectively, or any other desired levels therebetween. In fact, various grayscale or even color encodings may be used such that individual sites 340 may be identified by detecting contrast or color value differences between pixels, as indicated by their respective individual digital values. Notably, in the context of the sequencing described herein, and in contrast to other conventional imaging operations, the image 350 at issue is not fully resolved and may be undersampled accordingly due to the size of the feature of interest (e.g., sample well or site 340), the dimensions of the pixels 352, and aliasing that may occur in forming the image 350. Because the image 350 is not fully resolved, assessment of focus quality may be more complicated using conventional approaches, however, as discussed herein, derived focus quality metrics are suitable for use with such images 350.

[0063] As can be understood from the background discussion and context above, a focusing operation can be an important part of an imaging process used to generate image data of a patterned surface of a flow cell or other substrate as part of a sequencing or other analytical or diagnostic operation. As mentioned above and discussed herein, a focus model can be prepared for an imaging operation (e.g., a sequencing run to process a flow cell), and then the focus model can be used to initially position, monitor, and correct the position of the objective lens 142 relative to a sample on a patterned surface during the imaging operation. The focus model can be used during operation in conjunction with a focused beam generated by a focused emitter 150 that is reflected from a sample location to measure the required focus, and the sample stage is moved relative to the optical stage to focus the optical stage onto the current sample location. By way of example, the focus beam is calibrated against the focus model so that a given measurement of the focus beam during operation can be used to verify the focus at a sample site or provide an indication of the required correction to the focus height. As discussed herein, for a given sequencing run, the focus quality metric may be calculated initially or periodically and used to parameterize or recalibrate the focus model.

[0064] Movement of the sample stage 170 relative to the optical stage for focus adjustment during imaging is generally described as movement along the z-axis or in the z-direction. The terms "z-axis" and "z-direction" are intended to be used consistent with their respective usage in the art of microscopy and imaging systems, generally, where the z-axis refers to the focal axis. Thus, z-axis translation results in an increase or decrease in the length of the focal axis. Z-axis translation can be performed, for example, by moving the sample stage 170 relative to the optical stage (e.g., by moving the sample stage or the optical elements or both). Thus, z-axis translation can be performed by driving the objective lens 142, the optical stage, or the sample stage 170, or a combination of the above, any of which can be driven by actuating one or more servos or motors or other actuators in functional communication with the objective lens 142 or the sample stage 170, or both. In practice, the sample stage can be tilted relative to the optical stage, for example, to effectively level a sample container (e.g., a flow cell) in a plane perpendicular to the optical imaging axis. While this disclosure employs the term z-axis and direction, it should be understood that this is done for clarity of description and consistency with conventional terminology. The principles disclosed herein do not rely on these mnemonics, and other terms may be used to describe movement in the x, y, and z directions.

[0065] 6 is a block diagram illustrating an example focus control system for focus operation that may use a focus model as an input or baseline as discussed herein. Such an example focus control system includes a focus tracking circuit 380 configured to determine a current focus setting that is used to generate a drive signal that drives a focus tracking feedback loop in a z-stage 384. As illustrated in the example of FIG. 6, commands 396 are provided to the z-stage 384 to control movement of the z-stage 384 based on a focus setting difference.

[0066] In this example, the z-stage 384 is configured to move the objective lens 142. The actuator 394 moves the optical stage, and in particular the objective lens 142, in response to a drive signal provided by the z-stage amplifier 390. As discussed above, the actuator 394 may include a piezoelectric actuator, a voice coil actuator, a motor, or other similar actuator. The position encoder 392 provides information regarding the position of the actuator and its movement. This encoder information 400 may be fed back to the focus tracking circuit 380 through the z-stage controller 388 and may be used in determining an error signal.

[0067] The controllers used to control the movement can be implemented using proportional, integral and derivative (PID) controllers with feedforward, including both position and velocity controllers. They can include proportional, integral and derivative control on both the error signal and a feedforward control branch. Some examples also include additional filters and trajectory generation that can be used to improve the stability of the system depending on the use case.

[0068] FIG. 7 is a diagram illustrating an example architecture for a z-stage controller according to one example of the systems and methods described herein. This example controller incorporates both feedforward and feedback control to generate a drive signal for controlling the stage actuator 394. In some examples, this can be implemented as a PID control for either or both of the error signal and the feedforward control branch of the control system. As illustrated in this example, the difference between the target z position (i.e., focus setting) 420 and the actual z position 424 is calculated and provided to a control block 432. Position information is also sent via a feedforward path 428 and added to the output signal of the control block 432. This output signal from the drive circuitry in the control block 432 provides a control output signal that is used to drive the actuator 394. As shown, the magnitude of the difference between the target focus position and the actual position is provided via the feedforward path 428 to adjust the control output signal.

[0069] The above discussion relates to various aspects of the implementation of optical image scanning systems, such as sequencing systems, as well as examples of focusing control systems and logic that may be used in such systems. As discussed herein, focus assessment, adjustment, and control are related to multiple steps in image-based nucleic acid sequencing operations, such as flow cell registration, focus model generation, focal plane mapping, and focus tracking during a sequencing run. Conventional approaches rely on Brenner image processing to assess focus. However, as described herein, approaches based on the Brenner score suffer from a lack of robustness when the intensity of the fluorophore across the flow cell surface is non-uniform and / or changes over time (i.e., when spatial and / or temporal intensity heterogeneity exists). Accordingly, the Brenner score is not robust in that it does not allow for comparison across instruments or flow cells, or even comparison across image subtiles (due to being intensity-dependent).

[0070] With this context in mind, various techniques are described herein for deriving focus quality metrics that are intensity independent and can be used to establish, verify, and maintain focus quality as part of an imaging operation, including imaging operations performed on flow cells used in nucleic acid sequencing. As described in detail below, the disclosed approach provides an intensity independent technique for quantifying the focus quality of fluorescent emitters on a flow cell surface, utilizing a discrete Fourier transform (DFT) or other suitable transform. This technique is robust to intensity fluctuations and can therefore be used with images that exhibit photobleaching or other intensity change dynamics.

[0071] As discussed below, the techniques described herein leverage a regularly patterned (e.g., periodically patterned) surface associated with a patterned flow cell in combination with a discrete Fourier transform to generate an intensity-independent measurement corresponding to focus. This methodology allows for quantification of focus quality regardless of instrument, flow cell type, or location on the flow cell (e.g., image tile or subtile). The quantified focus quality so obtained (i.e., focus quality metric) can then be used to parameterize or calibrate a focus model for use during sequencing operations to monitor and adjust focus during sequencing operations.

[0072] Referring to the figures, FIGS. 8-11 illustrate aspects of the generation of a focus quality metric according to the disclosed technology. Specifically, FIG. 8 is a generalized process flow of steps that may be used in the generation of a focus quality metric according to one possible implementation, and FIGS. 9-11 graphically illustrate aspects of this process flow. With reference to FIG. 8, the depicted process begins with the acquisition of an image (step 450), such as an image of a flow cell or other sample binding or containing surface. By way of example, the image may correspond, in whole or in part, to an image of a patterned surface 288, a grid or swath 290 of such a surface, an image tile 294 within such a swath 290, a selected subtile from a larger tile 294, a pixel column 352, or a column of sample sites 340 within the image. Furthermore, the image may be constructed from a single shot or acquisition of an imaged region, or may be constructed as a time-delayed integration performed line-by-line, or may be constructed via a combinatorial process, such as via averaging over the multi-phase acquisitions to generate an image, or to integrate the multi-phase acquisitions into a single image for processing.

[0073] As mentioned above, in the context of nucleic acid sequencing operations, each region of the patterned surface may be imaged more than once (i.e., once for each color channel, such as blue and green) with different sample sites being "on" or "off" in a given imaging cycle based on the light frequency used to generate the respective images. As a result, there may be more than one image of each region, each image corresponding to a different color or intensity channel, with different sample sites active or inactive. In practice, each color channel may have a separate optimal focus. With this in mind, for the present technology, a focus quality metric may be generated for an image derived for only one color channel (e.g., the blue channel or the green channel), such as the color channel determined to be sufficient to maintain focus of the system. Alternatively, a focus quality metric may be generated separately for two or more of the color channels (e.g., a blue channel focus metric and a green channel focus metric), and an intermediate focus height that is acceptable for imaging using each color channel may be determined. In this manner, a single focus height may be determined, which in this example may be used to acquire images using both the blue and green channels.

[0074] In the depicted process flow, a sub-region of the image may be selected (step 458) or identified for use in a subsequent processing step to generate a focus quality metric for the processed sub-region. By way of example, a pixel row or column, or a pixel region or window of 256×256 pixels, 512×512 pixels, 1024×1024 pixels, etc. may be selected for processing. It will also be appreciated that depending on the dimensions of the image, the image itself may be processed instead of a sub-region. In practice, images (e.g., images that are not fully resolved) and image sub-regions include individual pixels, each pixel having a spatial location and an associated grayscale or color intensity value (e.g., a red, green, or blue intensity value depending on the color channel associated with the image). In the depicted process flow, the image sub-region is provided as an input to a Fourier transform (e.g., a discrete Fourier transform (DFT)) in step 466, which outputs a corresponding Fourier transform of the image sub-region.

[0075] 9, in which an image 454 (e.g., a fluorescent image) of a portion of a flow cell (e.g., an image tile 294 or pixel row) is depicted from which a sub-region 462 of the image 454 is selected for processing. In the depicted example, the sub-region 462 may be identified or otherwise identified using one or more criteria 468 (e.g., a bull's eye criteria) such that the same sub-region 462 may be selected for processing in a sequence of imaging runs or a series of imaging runs.

[0076] A discrete Fourier transform operation is performed on the data in image sub-region 462 (i.e., the spatial location and intensity data corresponding to image sub-region 462) (step 466). The resulting Fourier transform 470 (and corresponding power spectral density) is output at this step. As discussed herein, a given image 454 and sub-region 462 may be for a given grayscale intensity or a given color channel (e.g., red, green, or blue) in the context of multi-channel imaging, and thus the corresponding transform may relate to a given color or overall grayscale image and the corresponding pattern of active / inactive sample wells for each excitation frequency.

[0077] Returning to Figure 8, the average (or median) radial intensity (measured from the centre of the Fourier transform 470) may be calculated (step 474), which provides a measure of how quickly the magnitude decreases with distance. A power spectrum may be determined from the radial average (or median) intensity (step 480). This is illustrated graphically in Figure 10, where the output of the Fourier transform is illustrated, from which the radial average intensity is determined (step 480) and used in the calculation of a power spectrum 482, in which the integrated power is plotted for each r.

[0078] Several parameters of the power spectrum 482 are then calculated, with each parameter providing useful information including a quantitative metric corresponding to focus quality. By way of example, referring to FIG. 8, one or more of the radial gradient, corner frequency, and / or noise floor are derived from the power spectrum 482 (step 484). By way of example, in one implementation, a piecewise function (e.g., comprising two or more separately fitted segments) may be fitted to the power spectrum 482, as illustrated in FIG. 11. Various metrics of the piecewise function corresponding to the radial gradient, corner frequency, and / or noise floor may then be determined.

[0079] As an example, a piecewise function can be fitted to the power spectrum 482 using a least squares fitting approach or other suitable fitting approach, as shown in Figure 11. In the depicted example, the piecewise function includes two linear segments. The fitted horizontal segment 500 corresponds to the noise floor, below which no information is available and the measured signal corresponds to electronic or other noise. The y-intercept of segment 500 gives the value of the noise floor.

[0080] Another segment 502 diagonally intersects with the noise floor segment 500 and corresponds to a non-noise useful signal. The gradient of segment 502 is a radial gradient and depends on the quality of focus, so that a measure of the radial gradient provides a quantitative metric of focus quality. That is, in the present context, the gradient of segment 502 comprises a focus quality metric by which the focus of the input image sub-region 462 corresponding to the power spectrum 482 may be evaluated and / or compared to other sub-regions 462. As mentioned above, other approaches assume a Gaussian profile for the point spread function since the point spread function is related to the radial gradient. However, in the approach of the present disclosure, no such assumption is made. Indeed, in certain embodiments, a Lorentzian profile for the point spread function and the corresponding effect on the radial gradient may be preferred instead.

[0081] The intersection 504 of segments 500 and 502 occurs at a corner frequency, which corresponds to the maximum spatial frequency at which focus information can be determined and provide useful diagnostic information. Other metrics that may be of interest and may be calculated include the highest frequency at which a value is above the observed noise floor, which provides information about the observed signal strength range observed, and the goodness of fit of one or both of segments 500 and 502, which may provide information about the quality or reliability of the respective metric in question by quantifying the extent to which the variability of the measured data is accounted for by the model fitting function.

[0082] In the context of nucleic acid sequencing, the use of gradients as focus quality metrics is substantially insensitive to signal intensity variations (e.g., fluorophore intensity variations) on a patterned surface, such as between image tiles at different locations on the patterned surface. Accordingly, the use of gradients as focus quality metrics is robust to the usual variations observed in the context of grafting and template hybridization processes associated with nucleic acid sequencing operations, as well as to the non-uniformity associated with excitation intensity in such operations. Furthermore, because the approach of the present disclosure relies on periodic information generated from thousands to tens of thousands of fluorescent emitters in a field of view, the focus quality metrics are also insensitive to the usual non-uniformity observed in images acquired in sequencing operations. In addition, the generation and use of focus quality metrics as described herein also provides additional diagnostic data regarding the point spread function (PSF) of the optical imaging system used to generate the image data. As described herein, the approach to focus quality metrics described herein does not assume a Gaussian profile for the optical PSF, which makes the approach more flexible than conventional approaches that require such assumptions. Finally, detailed information regarding the sample surface tilt can also be derived, since the values ​​of the focus quality metric at different locations on the patterned surface can be used to determine the actual focal plane at different locations and thus identify the tilt of the sample surface.

[0083] With the above in mind, experiments were performed to evaluate the focus quality metrics described herein. In a first experimental setup, a stack of images was acquired at various heights along the z dimension of the flow cell surface. In this setup, a stack of images of the z dimension of an auto-centering cross fiducial provided on the flow cell surface was acquired using two color channels (blue and green). Images were acquired in the z dimension at 0.1 μm increments. In an additional embodiment, once the focal plane height at which focus was optimized was determined, the height in the z dimension was fixed and images were also acquired at this optimal focus height while the excitation laser power and exposure were titrated across the fiducial. All images were cropped with a 256 pixel x 256 pixel region centered on the auto-centering cross fiducial and analyzed for focus quality.

[0084] 12A-12C and 13A-13C, a series of piecewise functions obtained for images acquired at different heights in the z-stack of images are depicted along with respective plots of radial gradient (top plot 520) and corner frequency (bottom plot 524). For corresponding image sub-region images 462 at different heights in the z dimension, the Fourier transform and respective power spectrum 482 were calculated and respective radial gradients and corner frequencies were determined. In the depicted example, FIGS. 12A, 12B, and 12C depict representative plots of respective power spectrum, radial gradient (with respect to line segment 502), and corner frequency 504 for six different sub-region images 462 acquired at different heights in the z dimension, while FIGS. 13A, 13B, and 13C depict the corresponding image sub-regions 462 for which radial gradients and corner frequencies were calculated. The depicted power spectra and plots 520 and 524 were for a single color channel (the blue color channel) in the depicted example.

[0085] As shown in Figures 12A, 12B, and 12C, image data acquired at higher and lower elevations in the z-stack have steeper gradients, which correspond to lower gradient values ​​(due to the negativity of the gradient) and poorer focus quality. Conversely, higher gradient values ​​are associated with better focus quality, as observed here for image data acquired toward the center of the z-stack of images. Figures 13A, 13B, and 13C depict sub-region image data corresponding to the power spectrum 482 and radial gradients of Figures 12A-12C, respectively. As noted above, the corner frequency (shown in the plot below across the range of heights in the z-stack of images) corresponds to the maximum spatial frequency at which focus information can be determined and provide useful diagnostic information.

[0086] 12A-12C and 13A-13C illustrate results for images acquired on a single color channel (e.g., a blue color channel), in practice it may be desirable to calculate a focus quality metric for each color channel (e.g., blue, green, red, etc.) used in an imaging operation. An intermediate or "compromise" focus height that provides adequate focus for each color channel may then be determined, allowing the same focus height to be used when imaging both color channels. Such an approach may save computational and system time and resources by allowing a single focus height to be used for multiple color channels.

[0087] As an example, referring to FIG. 14, radial gradient and corner frequency results for z-stacks of images acquired in the described experimental setup are shown plotted together for both blue and green channels. The radial gradients of z-stacks of blue and green channel images are shown plotted in top plot 530, while the corner frequencies of z-stacks of blue and green channel images are shown plotted in bottom plot 534. As shown in this example, for the blue and green channels, both radial gradients and corner frequencies tend to be the same as height (e.g., may be correlated or otherwise associated with height in the z dimension), as described above. With respect to radial gradients, both the blue and green channels appear to have local optima for focus quality at similar heights in the z dimension (i.e., approximately −0.02 to −0.03). Thus, based on time or computational constraints, a focus height for an imaging operation can be established or verified by evaluating focus quality metrics for two or more color channels and determining a focus height that provides sufficient focus quality for all color channels. Conversely, if there are no time or computational constraints and / or it is determined that a separately optimized focus for each color channel is required, a focus quality metric (i.e., radial gradient) can be calculated separately and independently for each color channel to determine an optimal focus height for each channel.

[0088] Regarding the performance of the focus quality metric (i.e., radial gradient) of the present disclosure versus conventional approaches, FIG. 15 depicts plots of a focus quality measure in the form of a Brenner score (lower plot 560) versus image data, where the radial gradient as discussed herein is also calculated as a gradient quality metric (upper plot 564). For these plots, the image data acquired for which focus quality was assessed was acquired at a constant height in the z dimension determined to be the optimal focus height for both the green and blue channels. The excitation laser power and exposure were titrated to acquire images at different values ​​of "laser power x exposure". Thus, in this experimental setup, pixel intensities vary from image to image, despite the same fixed z value and the same sub-region within each image.

[0089] As discussed herein, the Brenner score is intensity dependent and therefore varies based on the intensity, or variation in intensity, in the underlying image. Accordingly, as shown in plot 560 below, the Brenner scores observed in both the blue and green channels are significantly different, even though the respective images were all acquired at the same height in the z dimension (i.e., at the same focus).

[0090] Conversely, as shown in top plot 564, the radial gradients derived from and plotted for both the green and blue channels demonstrate substantial intensity independence, with little variation over the range of sampled "laser power x exposure" values. That is, focus gradient as a focus quality metric demonstrates relatively little variation as pixel intensity changes for image data acquired at a fixed height in the z dimension.

[0091] Similarly, referring to FIG. 16, experimental results are illustrated showing that the radial gradient varies with height in the z dimension, confirming that the radial gradient corresponds to focus quality. As shown, no non-maxima are evident. Furthermore, for the imaged flow cell, the gradient profile remains similar at different y coordinates, i.e., the focus height identified by this approach appears to be suitable for other locations on the patterned surface. As a result, a calibration curve based on the type of plot shown can be used to determine how far different locations on the image are from optimal focus.

[0092] In a similar vein, as further experimental data, multiple flow cells were imaged using the respective sequencer systems. For each sub-region image area, the radial gradient and corner frequency were calculated. Referring to FIG. 17, the respective radial gradient and corner frequency values ​​were plotted for each flow cell (upper plot 580 and lower plot 584, respectively) with the flow cell identifier (FCID) along the bottom of the plot. As shown, for each sequencer device, the radial gradient is approximately constant across the flow cell, which is expected since the radial gradient and focus quality may be instrument dependent, such that the same instrument should have the same focus characteristics between sequencing runs. It may be noted that one outlier corresponding to the flow cell identifier 12VA1COMC is depicted. In the sequencing run corresponding to this outlier, the flow cell was imaged out of focus to demonstrate the corresponding effect on the radial gradient.

[0093] As noted earlier herein, among other information that may be derived using focus quality metrics as discussed herein is the variation or consistency of focus height across a surface (e.g., a patterned surface of a flow cell) or for a region or portion of such a surface. In practice, this may be the same as the presence or absence of a "tilt" or other irregularity relative to the surface or stage that corresponds to a misalignment between the focal plane and the sample plane. By way of example, with reference to FIG. 18, a representation corresponding to image 454 is depicted. In this example, image 454 was divided into sub-regions 462 (i.e., sub-tiles here having dimensions of 128 pixels by 128 pixels), each of which was processed as discussed herein to calculate the radial gradient of sub-region 462. FIG. 18 depicts a representation of sub-regions 462 arranged according to their respective positions in the x and y dimensions and visually coded to correspond to their respective calculated radial gradient values. As shown, the calculated radial gradient may vary systematically across the imaged surface, which may indicate a tilt relative to the slide or stage. Such tilt can be addressed during subsequent sequencing runs by appropriate changes in focal height.

[0094] It may be noted that the assessment of focus quality as discussed above can be further generalized. In particular, the preceding discussion generally assumes radial symmetry of the Fourier transform 470. Such radial symmetry, if present or assumed, allows the Fourier transform 470 to be fitted in one dimension (e.g., the z dimension) as discussed above. However, such radial symmetry may be a special case scenario or may be assumed when the Fourier transform is substantially close to radial symmetry.

[0095] In a more generalized context, the Fourier transform 470 may be elongated along a diagonal (e.g., may not exhibit radial symmetry) and may be characterized as "astigmatic." An example of this is illustrated in FIG. 19, where a radially asymmetric Fourier transform 470A is depicted along with a corresponding power spectrum 482. Such radial asymmetry may indicate that the focus in one dimension (e.g., the x dimension) differs from the focus in a different dimension (e.g., the y dimension). In such a scenario, it may be useful to analyze or quantify the focus in two dimensions to obtain additional focus information. That is, the Fourier transform 470 may be fitted in two dimensions to more fully characterize the focus in the absence of radial symmetry of the Fourier transform 470.

[0096] While the foregoing discussion relates to aspects of calculating a focus quality metric based on a sub-region of an acquired image based on a Fourier transform of the sub-region image data, the following example relates to a further aspect of this approach, where the sub-region is a linear sub-region (e.g., a pixel column) within the image. The following examples and embodiments fall within the scope of the foregoing discussion, but certain aspects may be omitted or modified for the benefit of performing a one-dimensional (1D) Fourier transform (e.g., a fast Fourier transform (FFT)) on the line data as opposed to a two-dimensional (2D) Fourier transform on the area of ​​the image data. By way of example, in the context of calculating a focus quality metric based on an area sub-region of an image, as described herein, the steps performed may include selecting a sub-region of the image for processing, performing a 2D FFT on the sub-region of the image data, determining a radial average based on the Fourier transform, determining a power spectrum based on the radial average, fitting a piecewise function to the power spectrum, and determining a gradient of a relevant segment of the piecewise function, where the gradient corresponds to the focus quality metric of interest. Conversely, in the examples discussed below, the sub-region of the image over which the Fourier transform is performed is a linear segment, e.g., a pixel column, such that the Fourier transform may be a 1D Fourier transform (e.g., FFT). Such a 1D Fourier transform may be implemented in firmware or hardware (such as using a field programmable gate array (FPGA), application specific integrated circuit (ASIC), programmable logic device (PLD), complex programmable logic device (CPLD), programmable logic array (PLA), programmable array logic (PAL), or other similar processing device or circuit configuration) for improved computational efficiency and system performance.

[0097] By way of example, referring to FIG. 20, a generalized process flow of steps that may be used in the generation of a focus quality metric based on one or more columns of pixels is depicted. Referring to FIG. 20, the depicted process begins with the acquisition of an image (step 450), such as an image of a flow cell or other sample binding or containing surface. By way of example, the image may correspond, in whole or in part, to an image of a patterned surface 288, a grid or swath 290 of such a surface, an image tile 294 within such a swath 290, or a selected subtile from a larger tile 294 within the image. Furthermore, the image may be constructed from a single shot or acquisition of an imaged area, or may be constructed as a time-delayed integration performed line-by-line, or may be constructed via a combination process, such as via averaging over the multi-phase acquisitions to generate an image, or to combine the multi-phase acquisitions into a single image for processing.

[0098] As mentioned above, in the context of nucleic acid sequencing operations, each region of the patterned surface may be imaged more than once (i.e., once for each color channel, such as blue and green) with different sample sites being "on" or "off" in a given imaging cycle based on the light frequency used to generate the respective images. As a result, there may be more than one image of each region, each image corresponding to a different color or intensity channel, with different sample sites active or inactive. In practice, each color channel may have a separate optimal focus. With this in mind, for the present technology, a focus quality metric may be generated for an image derived for only one color channel (e.g., the blue channel or the green channel), such as the color channel determined to be sufficient to maintain focus of the system. Alternatively, a focus quality metric may be generated separately for two or more of the color channels (e.g., a blue channel focus metric and a green channel focus metric), and an intermediate focus height that is acceptable for imaging using each color channel may be determined. In this manner, a single focus height may be determined, which in this example may be used to acquire images using both the blue and green channels.

[0099] In the depicted process flow, a pixel column (or a portion of such a column) of an image may be selected (step 600) or otherwise identified for use in a subsequent processing step to generate a focus quality metric associated with that column or in combination with other columns with which the column is averaged or otherwise combined. By way of example, a pixel row or column of a given width (e.g., 128 pixels, 256 pixels, 512 pixels, 1024 pixels, 2048 pixels, etc.) may be selected or identified for processing. In practice, each pixel column so selected or identified includes individual pixels, each pixel having a spatial location and an associated grayscale or color intensity value (e.g., a red, green, or blue intensity value depending on the color channel associated with the image). In the depicted process flow, the selected pixel column is provided as an input to a one-dimensional (1D) Fourier transform (e.g., a 1D fast Fourier transform (FFT)) in step 602, which outputs a corresponding Fourier transform of the pixel column.

[0100] 21, where an image 454 (e.g., a fluorescence image) of a portion of a flow cell is rendered and from which pixel columns 604 of the image 454 are selected for processing (step 600). The selection of each pixel column 604 may be facilitated by the presence of one or more criteria 468 (e.g., a bull's eye criteria).

[0101] A 1D Fourier transform operation (e.g., a 1D FFT) is performed on the data in pixel column 604 (i.e., the spatial location and intensity data corresponding to pixel column 604) (step 602). The resulting 1D Fourier transform 470A is output at this step. As discussed herein, a given image 454 and pixel column 604 may be for a given grayscale intensity or a given color channel (e.g., red, green, or blue) in the context of multi-channel imaging, and thus the corresponding 1D Fourier transform 470A may relate to a given color or overall grayscale image and the corresponding pattern of active / inactive sample wells for each excitation frequency.

[0102] Returning to FIG. 20, a power spectrum 482, in which the integrated power is plotted for each k value, may be calculated using the 1D Fourier transform 470A, as shown in FIG. 22. In one embodiment, the power spectrum 482 may be derived by performing a log-squared normalization of the 1D Fourier transform 470A over the column 604 (step 608). The k-value average of the power spectrum is calculated (step 612). This allows one to extract or otherwise determine the width of the associated point spread function (PSF) by fitting the power spectrum 482 of the log-squared normalization of the Fourier transform 470A as a function of the k value or the k value squared, as discussed herein. As discussed herein, the average (or median) k value intensity provides a measure of how quickly the magnitude decreases with distance.

[0103] As discussed herein, and with further reference to FIG. 22, parameters of the power spectrum 482 are calculated, some of which provide useful information including quantitative metrics corresponding to focus quality as discussed herein. By way of example, and with reference to FIG. 22, one or more of a k-value slope, a corner frequency, and / or a noise floor are derived using the power spectrum 482. By way of example, in one implementation, and as illustrated in FIG. 22, a piecewise function (e.g., comprising two or more separately fitted segments) may be fitted to the power spectrum 482. Various metrics of the piecewise function may then be determined, corresponding to the noise floor, the k-value slope (e.g., the slope of the power spectrum in the region above the noise floor), the corner frequency, etc.

[0104] In certain embodiments, the fitting of the piecewise function is accomplished via generating a least squares fit of the integrated power versus k-space plot (step 616). Various implementations may improve hardware or firmware-based performance by limiting or specifying parameters of the fitting operation, such as by setting a fixed k-value range over which the linear fit is performed. By way of example, the lower limit (LL) of the k-value range may be 0, 10, 15, 20, 25, 30, etc. Conversely, the upper limit (UL) of the k-value range may be 50, 75, 100, 150, 200, etc. In this way, in hardware or firmware-based implementations, the computational space may be limited to improve computational efficiency and performance. In some embodiments, the linear fit range may be allowed to vary within a specified tolerance (e.g., LL ±10 or ±20, or UL LL ±10 or ±20) to obtain useful focus metrics in a computationally efficient manner. As discussed elsewhere herein, the slope of the linear fit may be determined (step 620) and used as a focus metric that may be used in parameterizing or generating a focus model for use during a scanning operation. In certain implementations, the goodness of fit of the fitted line (i.e., R 2) may also be determined and used to determine whether a given fit line (and corresponding focus quality metric) is to be retained or excluded from subsequent operations and calculations. By way of example, a goodness of fit measure above a particular threshold (e.g., 0.3, 0.5, 0.7, 0.9, etc.) may be considered a good fit and designated for the fit line to be retained.

[0105] In certain implementations, it may be beneficial to average the power spectrum data before or after fitting the piecewise function to improve the quality of the derived focus quality metric. As an example, see Fig. 23 and Fig. 24, in each of which plots of integrated power vs. k value for both blue (shown as open circles) and green (shown as filled circles) signals are illustrated with varying pixel column 604 length and averaging of the Fourier transform signal to illustrate the effect of both averaging across multiple columns and images, as well as the effect of column length. See Fig. 23, which illustrates three plots that vary from left to right with the length of pixel column 604 being processed for focus quality metric generation. The leftmost plot is for a 256 pixel column, the middle plot is for a 512 pixel column, and the rightmost plot is for a 1024 pixel column. The K values ​​along the x-axis are also varied in the depicted plots, as might be expected, ranging from 0 to 130 in the leftmost plot, 0 to 250 in the middle plot, and 0 to 500 in the rightmost plot. As noted above, upper and lower limits for the k values ​​may be constrained for analysis and fitting purposes to facilitate hardware or firmware based implementations, and such constraints may improve computational efficiency. Each of the plots in FIG. 23 depicts integrated power versus k values ​​for an implementation that averages one column of five images. As can be seen, data points and trends are more easily discerned as the length of the columns increases.

[0106] Referring to FIG. 24, a corresponding plot is depicted, but averaging is performed over 20 columns of each of the five images. As can be observed, averaging over multiple columns within each image reduces the spread of the data, thereby improving signal quality. As also observed in the previous figure, increasing the length of the pixel columns also improves signal quality, but beyond a certain column length the benefit may be less valuable from a computational standpoint. As an example, for a practical implementation, there may be little benefit in going beyond 512 pixels, but the data still improves for longer column lengths.

[0107] As can be seen, in a real world implementation, a focus model is generated using the value of the focus quality metric corresponding to the slope of the fitted line in the piecewise function as discussed herein, and this focus model is then used in a scanning or sequencing operation to adjust the focal length or height as the flow cell progresses through the scan. For practical purposes, this may correspond to providing a height (depth or focal depth) in the z dimension that is changed or altered as different columns are reached in the scan, either row by row, or at incremental or periodic row checkpoints or milestones (e.g., every 10th row, 20th row, 50th row, 100th row, 200th row, 500th row, etc.). Figure 25 graphically illustrates how this can be accomplished in a particular implementation for both blue and green fluorescent scans when imaged at different focal heights for each pixel column used in determining the focus metric (i.e., using a stack of images acquired at different focal heights).

[0108] In the depicted examples, the focus quality metric in the form of the gradient of the fitted line of the piecewise function as discussed herein is converted to an IQS score by multiplying it by a coefficient suitable for converting the gradient from Fourier space to pixels. This IQS value is plotted along the y-axis of the illustrated plot against the height of the z-dimension (i.e., focal depth or depth) plotted along the x-axis of the plot. In these examples, it can be observed that the plot of the IQS score as a function of the height of the z-dimension (as determined through processing images acquired at different focal depths) generally forms a parabolic plot. In these plots, the observed minimum or lowest point corresponds to the optimal focal depth for each frequency.

[0109] With reference to FIG. 25, the IQS scores are calculated based on averages over 20 column increments, and line fits to piecewise functions are performed with k values ​​at lower limit 25 and upper limit 200. As can be observed, clear minima are observed for each color channel, each minimum corresponding to the focal depth along the x-axis that can be optimally used for that respective color channel for each column for which a plot is generated. In practice, an optimal focal depth can be determined for each color channel (for each set of columns), or alternatively, an acceptable focal depth can be determined for all color channels or different subsets of color channels based on the respective minima. That is, if the respective optimal focal depths for two or more color channels are within a given tolerance, a single intermediate focal depth can be used to image those color channels for the column in question.

[0110] As described above and discussed herein, in practice, it may be useful to implement the techniques described herein in firmware or hardware. In such implementations, and as discussed herein, it may be useful to apply constraints and / or specify or otherwise set certain parameters to optimize such hardware or firmware implementations. By way of example, such parameters that may be specified or constrained in such implementations include, but are not limited to, the following: pixel column width (e.g., 128 pixels, 256 pixels, 512 pixels, 1024 pixels, etc.), lower limit (LL) of k-values ​​for line fitting of piecewise functions (e.g., 0, 25, 50), upper limit (UL) of k-values ​​for line fitting of piecewise functions (e.g., 75, 100, 150, 200, 250, 500), R of line fitting of piecewise functions, and the like. 2 (i.e., goodness of fit) (e.g., 0.75, 0.8, 0.9), the goodness of fit cutoff for the parabolic fit of the focus quality metric (or transformed equivalent) with respect to focus height, the number of columns (or column segments) to analyze in a given image to obtain the parabolic fit (e.g., every other column, etc.), the pitch between columns to analyze, and / or the number of columns to average for each focus depth.

[0111] While only certain features of the invention have been illustrated and described herein, many modifications and changes will occur to those skilled in the art, and it is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.

Claims

1. 1. A method for determining a focus quality metric, comprising: acquiring an image of or accessing a flow cell comprising a plurality of sample wells; determining a Fourier transform of a portion or all of the image, wherein an optical point spread function (PSF) associated with the image does not have a Gaussian profile; determining a power spectrum based on the Fourier transform; determining a slope of a linear segment fitted to a portion of the power spectrum, the slope corresponding to the focus quality metric; parameterizing or calibrating a focus model based on at least said focus quality metric; and adjusting a relative position of an objective lens and a sample stage on which the flow cell is positioned based on the focus model.

2. 2. The method of claim 1, wherein determining the Fourier transform comprises determining the Fourier transform of a sub-region of the image at a known location on the flow cell determined based on one or more criteria provided on the flow cell.

3. Determining the power spectrum determining the mean or median k value or radial intensity of the Fourier transform; and generating the power spectrum based on the mean or median k value or radial intensity of the Fourier transform.

4. The method of claim 1 , wherein the optical point spread function (PSF) associated with the image has a Lorentzian profile.

5. The method of claim 1 , wherein adjusting the relative position of the objective lens and the sample stage comprises selecting a focus height for a sequencing operation based on the focus model.

6. 6. The method of claim 5, comprising imaging all or a portion of the flow cell using the focal height during the sequencing operation.

7. The method of claim 1 , wherein the focus quality metric is intensity independent.

8. 1. A sequencing device comprising: a sample stage configured to support a sample container; an objective lens, a photodetector, and a light source configured to operate in combination to image the sample container when present on the sample stage; a focusing component configured to control a positioning of the objective lens relative to the sample container when present on the sample stage; and A controller configured to perform operations, the operations including: determining, for each image in the stack of acquired images of the sample surface at different z-heights, a respective Fourier transform for a sub-region of said respective image; determining, for each Fourier transform, a respective slope of a linear segment fitted to a portion of a respective power spectrum calculated from the Fourier transform, the slope corresponding to a focus quality metric; parameterizing a focus model based on the focus quality metric; and and controlling operation of the focus component during a sequencing operation based on the focus model.

9. 9. The sequencing instrument of claim 8, wherein the stack of images includes a first set of images acquired using a first color channel and a second set of images acquired using a second color channel.

10. 10. The sequencing apparatus of claim 9, wherein parameterizing the focus model comprises determining an intermediate focus height based on a difference between a focus quality metric derived for the first color channel and a focus quality metric derived for the second color channel.

11. The sequencing apparatus of claim 10 , wherein controlling operation of the focus component comprises acquiring image data during at least a portion of the sequencing operation at the intermediate focus height.

12. The sequencing instrument of claim 8 , wherein the sample surface comprises a patterned surface of a flow cell.

13. The sequencing instrument of claim 11 , wherein the focus quality metric is intensity independent.

14. 1. A method for determining a focus quality metric, comprising: acquiring an image of or accessing a flow cell comprising a plurality of sample wells; calculating a one-dimensional Fourier transform of one or more rows of pixels in the image; determining a power spectrum based on the one-dimensional Fourier transform of each row of pixels; determining a slope of a linear segment fitted to a portion of the power spectrum, the slope corresponding to the focus quality metric; parameterizing or calibrating a focus model based on at least the focus quality metric or a score derived from the focus quality metric; and adjusting a relative position of an objective lens and a sample stage on which the flow cell is positioned based on the focus model.

15. Determining the power spectrum The method of claim 14 comprising performing a log-squared normalization of the one-dimensional Fourier transform.

16. 15. The method of claim 14, wherein parameterizing or calibrating the focus model comprises determining a focus height for a location in the focus model corresponding to a pixel of the one or more columns by determining a local minimum of a parabolic plot of the focus quality metric or the score derived from the focus quality metric at pixels of the one or more columns.

17. The method of claim 14 , wherein adjusting the relative position of the objective lens and the sample stage comprises selecting a focus height for a sequencing operation based on the focus model.

18. 20. The method of claim 17, comprising imaging all or a portion of the flow cell using the focal height during the sequencing operation.

19. 1. A sequencing device comprising: a sample stage configured to support the flow cell; and an objective lens, a photodetector, and a light source configured to operate in combination to image the flow cell when present on the sample stage; a focusing component configured to control a positioning of the objective lens relative to the flow cell when present on the sample stage; and A controller configured to perform operations, the operations including: determining, for each image in the stack of acquired images of the sample surface at different z-heights, a respective one-dimensional Fourier transform for a column of pixels in said respective image; determining, for each one-dimensional Fourier transform, a respective gradient of a linear segment fitted to a portion of a respective power spectrum calculated from the one-dimensional Fourier transform, the gradient corresponding to a focus quality metric; parameterizing a focus model based on the focus quality metric; and and controlling operation of the focus component during a sequencing operation based on the focus model.

20. 20. The sequencing apparatus of claim 19, wherein parameterizing the focus model comprises determining an intermediate focus height based on a difference between a focus quality metric derived for a first color channel and a focus quality metric derived for a second color channel.

21. 21. The sequencing apparatus of claim 20, wherein controlling operation of the focus component comprises acquiring image data during at least a portion of the sequencing operation at the intermediate focus height.

22. 20. The sequencing instrument of claim 19, wherein each power spectrum is determined by performing a log-squared normalization of the one-dimensional Fourier transform.

23. 20. The sequencing apparatus of claim 19, wherein parameterizing the focus model comprises determining a focus height for a location in the focus model corresponding to the pixel column by determining a local minimum of a parabolic plot of the focus quality metric or a score derived from the focus quality metric at the pixel column.

24. 20. The sequencing instrument of claim 19, wherein controlling operation of the focus components during the sequencing operation comprises adjusting the relative position of the objective lens and the sample stage by selecting a focus height for a sequencing operation based on the focus model.

25. 25. The method of claim 24, comprising imaging all or a portion of the flow cell using the focal height during the sequencing operation.

Citation Information

Patent Citations

  • Quantitative digital phase contrast imaging method based on non-equal sampling image sequence

    CN102313983A

  • Focus error estimation in images

    JP2014511508A

  • Method and apparatus for automated image analysis of biological specimens

    US20040136581A1

  • Systems and methods for assessing images

    US20100246977A1

  • autofocusing

    WO2002039059A1