# US 2009/0270277 A1 · Method for indexing nucleic acid sequences for computer based searching

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

- Number: US 2009/0270277 A1
- Document ID: US20090270277A1
- Status: Published application
- Kind: A1
- Application number: 12/301,547
- Filed: 2007-05-21
- Published: 2009-10-29
- Earliest claimed: 2006-05-19
- Assignees: The University of Chicago; Gsl Biotech LLC
- Inventors: Benjamin Glick; William Stokes
- Web page: https://patentgrep.com/patent/US20090270277A1

## CPC

- G16B 30/00: ICT specially adapted for sequence analysis involving nucleotides or amino acids
- G16B 50/30: Data warehousing; Computing architectures
- G16B 50/00: ICT programming tools or database systems specially adapted for bioinformatics
- G16B: BIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY

## Abstract

The present invention relates to a method for indexing nucleic acid sequences to aid computer based searching of nucleic acid sequences by indexing a nucleotide sequence by the presence of unique Kmers in the sequence. The method of the present invention comprises utilizing an algorithm to automatically index a nucleic acid sequence.

## Claims

### Claim 1

A method of indexing and recording a nucleotide sequence with a computer to create a file, the method comprising having the computer:
a) select a nucleotide sequence to index;
b) scan the nucleotide sequence, identifying each occurrence of a base sequence of a selected base width K;
c) determine all of the unique base sequences of width K in the nucleotide sequence, each unique base sequence of width K being a K-mer, a K-mer being either a non-degenerate K-mer or a partially degenerate K-mer;
d) record in the file the position of each K-mer in the nucleotide sequence.

### Claim 2 (depends on 1)

The method of claim 1 wherein the position of each non-degenerate K-mer recorded in step d) is recorded in a non-degenerate data array in the file.

### Claim 3 (depends on 1)

The method of claim 1 wherein the position of each partially degenerate K-mer recorded in step d) is recorded in a degenerate data array in the file.

### Claim 4 (depends on 1)

The method of claim 1 further comprising the steps of having the computer:
determine the number of times each non-degenerate K-mer appears in the nucleotide sequence; and
record in the file a list of integers representing the total number of times each non-degenerate K-mer appears in the nucleotide sequence.

### Claim 5 (depends on 1)

The method of claim 1 further comprising the steps of having the computer:
determine the total number of partially degenerate K-mers in the nucleotide sequence; and
record in the file the total number of partially degenerate K-mers in the nucleotide sequence.

### Claim 6 (depends on 1)

The method of claim 1 further comprising the steps of having the computer:
determine a number of separate stretches of K or more consecutive base N's in the nucleotide sequence; and
record in the file an integer representing the number of separate stretches of K or more consecutive base N's in the recorded base sequence.

### Claim 7

A method of indexing and recording a nucleotide sequence of base length L with a computer to create a file, the method comprising having the computer:
a) select a nucleotide sequence to index;
b) separate the nucleotide sequence into C separate chunk sections, where C is an integer;
c) scan the nucleotide sequence, identifying each occurrence of a base sequence of a selected base width K;
d) determine all of the unique base sequences of width K in the nucleotide sequence, each unique base sequence of width K being a K-mer, a K-mer being either a non-degenerate sequence or partially degenerate sequence;
e) record in the file the position of each K-mer in the nucleotide sequence.

### Claim 8 (depends on 7)

The method of claim 7 wherein C is an integer equal to L/65,535 or the next integer greater than L/65,535.

### Claim 9 (depends on 7)

The method of claim 7 wherein each chunk section consists of X bases, where C is an integer less than 65,536 and C is an integer equal to L/X or the next integer greater than L/X.

### Claim 10 (depends on 7)

The method of claim 7 wherein the position of each non-degenerate K-mer recorded in step e) is recorded in a non-degenerate data array in the file, the non-degenerate data array being divided into 4K partitions corresponding to all of the possible 4K non-degenerate K-mers, each partition containing a list of integers representing the number of times a particular non-degenerate K-mer is present in each of the chunk sections, followed by a list of integers representing intra-chunk section positions of the particular K-mer in each of the chunk sections.

### Claim 11 (depends on 7)

The method of claim 7 wherein each partially degenerate K-mer recorded in step e) is recorded in a degenerate data array in the file, wherein each particular partially degenerate K-mer is represented as an integer that marks the absolute position of the particular K-mer, followed by a string that encodes the sequence of the particular K-mer.

### Claim 12 (depends on 7)

The method of claim 7 further comprising the steps of having the computer record an integer S representing the number of separate stretches of K or more consecutive N's in the nucleotide sequence and record S pairs of integers that represent the starting positions and lengths of the separate stretches of consecutive N's in the nucleotide sequence.

### Claim 13 (depends on 7)

The method of claim 7 further comprising the steps of having the computer:
determine the number of times each non-degenerate K-mer appears in the nucleotide sequence; and
record in the file a list of integers representing the total number of times each non-degenerate K-mer appears in the nucleotide sequence.

### Claim 14 (depends on 7)

The method of claim 7 further comprising the steps of having the computer:
determine the total number of partially degenerate K-mers in the nucleotide sequence; and
record in the file the total number of partially degenerate K-mers in the nucleotide sequence.

### Claim 15 (depends on 7)

The method of claim 7 further comprising the steps of having the computer:
record in the file whether the nucleotide sequence is linear or circular.

### Claim 16 (depends on 7)

The method of claim 7 further comprising the steps of having the computer:
record in the file whether the nucleotide sequence is single or double stranded.

### Claim 17 (depends on 7)

The method of claim 7 further comprising the steps of having the computer record in the file the nucleotide sequence in ASCII format.

### Claim at position 18

18-33. (canceled)

### Claim 34

A method of searching for a specific base sequence in a nucleotide sequence using a computer comprising:
a) using a computer to access a computer file having:
(i) a data structure, the data structure containing information regarding the nucleotide sequence, the nucleotide sequence having a length L with a selected indexing window of K bases wide, the data structure containing data on K-mers of the nucleotide sequence, a K-mer being either a non-degenerate K-mer or a partially degenerate K-mer;
(ii) a non-degenerate data array containing the position of each particular non-degenerate K-mer of a nucleotide sequence; and
(iii) a degenerate data array containing the position of each particular partially degenerate K-mer and a string encoding the sequence of each particular partially degenerate K-mer;
b) having the computer search the file for the specific base sequence and determining the locations of the specific base sequence; and
c) displaying the locations of the specific base sequence.

### Claim 35

(canceled)

### Claim 36

A method of searching for a specific base sequence in a nucleotide sequence using a computer having permanent storage and main memory, the method comprising;
a) having the computer access a data structure being stored in a computer file, the data structure containing information regarding the nucleotide sequence, the data structure containing data on K-mers of the nucleotide sequence, the data structure comprising: a non-degenerate data array containing the position of each particular non-degenerate K-mer of a nucleotide sequence; a degenerate data array containing the position of each particular partially degenerate K-mer and a string encoding the sequence of each particular partially degenerate K-mer; an N-stretch count field containing an integer S representing the number of separate stretches of K or more consecutive N's in the nucleotide sequence; an N-stretch data array containing S pairs of integers that represent the starting positions and lengths of the separate stretches of consecutive N's in the nucleotide sequence; an index properties field containing an integer representing the byte order of the index; a chunk counts summary field containing a list of integers representing the total number of times a particular non-degenerate K-mer appears in the nucleotide sequence; a degenerate K-mer count field containing an integer representing the total number of partially degenerate K-mers in the nucleotide sequence;
b) having the computer load the index properties field, the chunk counts summary field, the degenerate K-mer count field and the N-stretch Count field into main memory;
c) having the computer divide the specific base sequence into unique K-mers;
d) having the computer locate K-mer position data for the unique K-mers by accessing information in the fields loaded into main memory in step b) and the information in the degenerate data array, the non-degenerate data array, and the N-stretch data array; and
e) having the computer use the K-mer position data to determine the location of the specific base sequence in the nucleotide sequence if present.
