> For the complete documentation index, see [llms.txt](https://edu.abi.am/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edu.abi.am/bioinformatics-algorithms/indexing-before-alignment.md).

# Indexing before alignment

Indexing is an essential step in many bioinformatics applications, as it can greatly reduce the computational time and resources required for sequence alignment. It allows the alignment algorithm to quickly locate the query sequences in the reference genome, without having to search the entire genome for matches. In this section you will learn how indexing works.<br>

### Preprocessing

{% embed url="<https://www.youtube.com/watch?v=HGVQi5xX44M&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=23>" %}

### Indexing and k-mer indexes

{% embed url="<https://www.youtube.com/watch?v=2UsmUgJtwAI&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=24>" %}

### Ordered structures for indexing

{% embed url="<https://www.youtube.com/watch?v=CA0_CxKe_SY&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=25>" %}

### Hash tables for indexing

{% embed url="<https://www.youtube.com/watch?v=X2OTyGTi82M&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=26>" %}

### Practical: Implementing a k-mer index

{% embed url="<https://www.youtube.com/watch?v=LUcAXi2TijM&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=27>" %}

### Variations on k-mer indexes

{% embed url="<https://www.youtube.com/watch?v=My_sw_Rf_4U&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=28>" %}

### Genome indexes used in research

{% embed url="<https://www.youtube.com/watch?v=bfnFgcB_Nlw&list=PL2mpR0RYFQsBiCWVJSvVAO3OJ2t7DzoHA&index=29>" %}

## Problem to solve

Try to solve this problem after completing the section.

1. [Finding a Spliced Motif](https://rosalind.info/problems/sseq/)

## Congratulations!

If you made it here, then congratulations! You have successfully completed this section. Move to the next portion of the guide with the arrow buttons below.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://edu.abi.am/bioinformatics-algorithms/indexing-before-alignment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
