# US 9,892,237 B2 · System and method for characterizing biological sequence data through a probabilistic data structure

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,892,237 B2
- Document ID: US9892237B2
- Status: Granted
- Kind: B2
- Application number: 14/615,672
- Filed: 2015-02-06
- Published: 2015-08-06
- Granted: 2018-02-13
- Earliest claimed: 2014-02-06
- Assignees: Reference Genomics, Inc.
- Applicants: Reference Genomics, Inc.
- Inventors: Nicholas Boyd Greenfield
- Web page: https://patentgrep.com/patent/US9892237B2

## CPC

- G16B 30/00: ICT specially adapted for sequence analysis involving nucleotides or amino acids
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G16B 5/20: Probabilistic models
- G16B 50/20: Heterogeneous data integration
- G16B 50/30: Data warehousing; Computing architectures
- G16C 99/00: Subject matter not provided for in other groups of this subclass
- G06F 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/1018: involving hashing techniques, e.g. inverted page tables
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/2255: {Hash tables}
- G06F 16/90: Details of database functions independent of the retrieved data types
- G06F 16/9014: {hash tables}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G16B 40/10: Signal processing, e.g. from mass spectrometry [MS] or from PCR
- G16B 50/10: Ontologies; Annotations
- G16B 50/40: Encryption of genetic data
- G16B 50/50: Compression of genetic data
- G16B: BIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G16C: COMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A system and method for resolving data through a probabilistic data structure can include initializing a B-field data structure, inserting a key-value element into the B-field data structure, selecting at least one key query, and looking up the value of a key lookup request through the B-field data structure.

## Claims

### Claim 1

A method for storing classified biological sequence key-value elements in a data structure and generating a characterization report of a biological sequence query, the method comprising using a processor of a computing platform and the processor thereby:
assigning a size of a primary bit array of a probabilistic data structure, the size being assigned in association with a desired maximum false positive rate and an expected number of key-value elements to be stored in a probabilistic data structure;
assigning a count of hash operators of the probabilistic data structure;
assigning at least one encoding operator of the probabilistic data structure, the encoding operator having a bit mask output with an assigned mask size and a mask weight, wherein the weight is the number of activated bits;
allocating memory of the computing platform such that the allocated memory is sufficient to store the primary bit array according to the assigned size of the primary bit array;
iteratively storing instances of the key-value elements in the primary bit array, wherein each instance of the key-value elements comprises a biological sequence k-mer key and a biological classification value paired to the key, and wherein each iteration of the storing further comprises the following steps with respect to the storing of each instance of the key-value elements:
applying the hash operators to the biological sequence k-mer of an instance thereby obtaining a set of indexes particular to the key,
determining insertion locations in the primary bit array according to the set of indexes,
executing the at least one encoding operator on the value of the instance, thereby converting the value to a particular bit mask having the assigned mask size and the assigned mask weight, and
activating a set of bits in the primary bit array with the bit mask at the insertion locations;
obtaining the biological sequence query comprising a set of overlapping biological sequence k-mers;
iteratively extracting instances of k-mer characterizations for each biological sequence k-mer in the set of overlapping biological sequence k-mers, and wherein each iteration of the extracting further comprises the following steps with respect to the extracting of each instance of the set of overlapping biological sequence k-mers:
applying the hash operators to the biological sequence k-mer of an instance thereby obtaining query indexes,
determining query locations in the primary bit array according to the query indexes,
retrieving stored bit masks from the query locations,
bitwise ANDing the stored bit masks into a combined bit mask, and
decoding the combined bit mask into a k-mer characterization of the instance; and
generating the characterization report of the biological sequence query from the instances of k-mer characterizations.

### Claim 2 (depends on 1)

The method of claim 1,
wherein storing at least one instance of a key-value element when iteratively storing instances of the key-value elements in the primary bit array, further comprises:
detecting an indeterminate error scenario for a key-value mapping; and,
in response to the indeterminate error scenario, storing the at least one instance of a key-value element in a secondary bit array; and
wherein extracting an instance of a k-mer characterization further comprises: in response to detection of an indeterminate error scenario for a biological sequence k-mer in the primary bit array, extracting a k-mer characterization of the biological sequence k-mer in the secondary bit array.

### Claim 3 (depends on 2)

The method of claim 2, wherein the allocated memory is further sufficient to store the primary bit array and the secondary bit array in distinct memory locations of a computing platform.

### Claim 4 (depends on 2)

The method of claim 2, wherein storing the first key-value element into the secondary bit array further comprises: applying a secondary set of hash operators to the reference biological sequence k-mer and thereby obtaining a second set of indexes; determining secondary insertion locations in the secondary bit array according to the second set of indexes; and bitwise ORing the bit mask at secondary insertion locations of the secondary bit array; and wherein the secondary bit array overlaps the primary bit array in memory.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
identifying a minimizing bioinformatics m-mer for biological sequence k-mers in the key-value elements;
wherein applying the hash operators to the biological sequence k-mer of an instance when storing further comprises applying a first subset of hash operators to the biological sequence k-mer of the instance and thereby obtaining a first subset of indexes for the set of indexes and applying a second subset of hash operators to the minimizing bioinformatics m-mer and thereby obtaining a second subset of indexes for the set of indexes;
identifying a minimizing bioinformatics m-mer in a biological sequence k-mer of the set of overlapping biological sequence k-mers; and
wherein applying the hash operators to the biological sequence k-mer of an instance when extracting instances of k-mer characterizations further comprises applying the first subset of hash operators to the biological sequence k-mer of the instance thereby obtaining a first subset of the query indexes and applying the second subset of hash operators to the minimizing bioinformatics m-mer of the biological sequence k-mer thereby obtaining a second subset of the query indexes.

### Claim 6 (depends on 1)

The method of claim 1, wherein allocating memory of the computing platform comprises allocating memory in an internet-accessible distributed computing environment.

### Claim 7 (depends on 1)

The method of claim 1, wherein the biological sequence k-mers are nucleotide sequence k-mers.

### Claim 8 (depends on 1)

The method of claim 1, wherein the biological sequence k-mers are protein sequence k-mers.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the characterization report comprises generating a summary of biological classifications identified in the instances of k-mer characterizations.

### Claim 10 (depends on 1)

The method of claim 1, wherein the allocated memory is at least a gigabyte of memory.

### Claim 11

A method for storing reference key-value elements in a data structure and then retrieving a result value using a query key, the method comprising using a processor of a computing platform and the processor thereby:
assigning a size of a primary bit array of a probabilistic data structure, the size being assigned in association with a desired maximum false positive rate and an expected number of reference key-value elements to be stored in a probabilistic data structure;
assigning a maximum value of the possible values within the reference key-value elements to be stored in the probabilistic data structure;
assigning a count of hash operators of the probabilistic data structure;
assigning at least one encoding operator of the probabilistic data structure, the encoding operator having a bit mask output with an assigned mask size and a mask weight, wherein the weight is the number of activated bits;
allocating memory of the computing platform such that the allocated memory is sufficient to store the primary bit array according to the assigned size of the primary bit array;
iteratively storing instances of the reference key-value elements in the primary bit array, wherein each instance of the reference key-value elements comprises a key that is a biological sequence fragment and a value paired to the key, and the value being a biological characterization value within the maximum value range, and wherein each iteration of the storing further comprises the following steps with respect to the storing of each instance of the reference key-value elements:
applying the hash operators to the key of an instance thereby obtaining a set of indexes particular to the key,
determining insertion locations in the primary bit array according to the set of indexes,
executing the encoding operator on the value of the instance, thereby converting the value to a particular bit mask having the assigned mask size and the assigned mask weight, and
activating a set of bits in the primary bit array through bitwise ORing the bit mask at the insertion locations;
obtaining a query key, the query key being a biological sequence fragment; and
extracting a result value for the query key from the primary bit array, by:
applying the hash operators to the query key and thereby obtaining query indexes;
determining query locations in the primary bit array according to the query indexes;
retrieving stored bit masks from the query locations;
bitwise ANDing the stored bit masks into a combined bit mask; and
applying a decoding operation to the combined bit mask and thereby obtaining the result value.

### Claim 12 (depends on 11)

The method of claim 11, further comprising: detecting an indeterminate error scenario of the primary bit array in response to storing an instance of a reference key-value element in the primary bit array; and, in response to detecting an indeterminate error scenario, storing the reference key-value element into a secondary bit array.

### Claim 13 (depends on 12)

The method of claim 12, wherein the allocated memory is further sufficient to store the primary bit array and the secondary bit array in distinct memory locations of the computing platform.

### Claim 14 (depends on 12)

The method of claim 12, wherein storing the reference key-value element into the secondary bit array further comprises: applying secondary hash operators to the reference key thereby obtaining a second set of indexes; determining secondary insertion locations according to the second set of indexes; and activating a set of bits in the primary bit array through bitwise ORing the bit mask at secondary insertion locations of the secondary bit array; and wherein the secondary bit array overlaps the primary bit array in memory.

### Claim 15 (depends on 12)

The method of claim 12, further comprising: detecting a second indeterminate error scenario of the secondary bit array in response to storing the reference key-value element into the secondary bit array; and, in response to detecting the second indeterminate error scenario, storing the reference key-value element into a second secondary bit array.

### Claim 16 (depends on 11)

The method of claim 11, further comprising identifying a minimized key for a set of keys in reference key-value elements; and wherein obtaining the set of indexes further comprises obtaining a first subset of indexes for the set of indexes by applying a first subset of hash operators to the key and obtaining a second subset of indexes for the set of indexes by applying a second subset of hash operators to the minimized key.

### Claim 17 (depends on 16)

The method of claim 16, wherein obtaining the query indexes further comprises obtaining a first subset of the query indexes by applying a first subset of hash operators to the key and obtaining a second subset of the query indexes by applying a second subset of hash operators to the minimized key of the query key.

### Claim 18 (depends on 11)

The method of claim 11, wherein storing instances of the reference key-value elements in the primary bit array further comprises storing a first set of reference key-value elements in the primary bit array at a first time instance; and further comprising storing a second set of reference key-value elements in the primary bit array at a second time instance succeeding the first time instance.

### Claim 19 (depends on 11)

The method of claim 11, wherein allocating memory of the computing platform comprises allocating memory within an internet-accessible distributed computing environment.

### Claim 20 (depends on 19)

The method of claim 19, wherein allocating memory within the internet-accessible distributed computing environment comprises sharding the primary bit array across a set of computing resources in the distributed computing environment.

### Claim 21 (depends on 11)

The method of claim 11, wherein the allocated memory is at least a gigabyte of memory.

### Claim 22

A method for storing classified biological sequence k-mer data as key-value elements in a data structure and then retrieving a classification result using a k-mer query, the method comprising using a processor of a computing platform and the processor thereby:
assigning a size of a primary bit array of a probabilistic data structure, the size being assigned in association with a desired maximum false positive rate and an expected number of key-value elements to be stored in a probabilistic data structure;
assigning a maximum value of the possible values within the key-value elements to be stored in the probabilistic data structure;
assigning a count of hash operators of the probabilistic data structure;
assigning at least one encoding operator of the probabilistic data structure, the encoding operator having a bit mask output with an assigned mask size and a mask weight, wherein the weight is the number of activated bits;
allocating memory of the computing platform such that the allocated memory is sufficient to store the primary bit array according to the assigned size of the primary bit array, wherein the allocated memory is at least a gigabyte of memory;
iteratively storing instances of the key-value elements in the primary bit array, wherein each instance of the key-value elements comprises a biological sequence k-mer key and a biological classification value paired to the key, and the biological classification value being an identifier within the maximum value range, and wherein each iteration of the storing further comprises the following steps with respect to the storing of each instance of the key-value elements:
applying the hash operators to the biological sequence k-mer of an instance thereby obtaining a set of indexes particular to the key,
determining insertion locations in the primary bit array according to the set of indexes,
executing the encoding operator on the value of the instance, thereby converting the value to a particular bit mask having the assigned mask size and the assigned mask weight, and
activating a set of bits in the primary bit array through bitwise ORing the bit mask at the insertion locations;
obtaining a query key that is a biological sequence k-mer; and
extracting a biological characterization result value for the query key from the primary bit array, by:
applying the hash operators to the query key and thereby obtaining a set of query indexes,
determining query locations in the primary bit array according to the set of query indexes,
retrieving stored bit masks from the query locations,
bitwise ANDing the stored bit masks into a combined bit mask, and
applying a decoding operation to the combined bit mask and thereby obtaining the result value.

### Claim 23 (depends on 22)

The method of claim 22, further comprising: detecting an indeterminate error scenario of the primary bit array in response to inserting a key-value element into the primary bit array; and, in response to detecting an indeterminate error scenario, storing the key-value element into a secondary bit array.

### Claim 24 (depends on 22)

The method of claim 22, allocating memory of the computing platform comprises allocating memory within an internet-accessible distributed computing environment.

### Claim 25 (depends on 24)

The method of claim 24, allocating memory within the internet-accessible distributed computing environment comprises sharding the primary bit array across a set of computing resources in the distributed computing environment.
