# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
