System and method for characterizing biological sequence data through a probabilistic data structure
AssigneeReference Genomics, Inc.
InventorNicholas Boyd Greenfield
Life of this patent
Estimating the term…
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.
Claims25
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.
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.
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.
Dependencies are inferred from the claim text.