This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Genome DNA sequence pattern matching

I have a genome sequence in fasta format.As well as I have a DNA pattern.I want to search this patern in the genome.I want just the matching gene header.How to code it in python?can anyone please suggest me?

genome

Blastn, or blastn <options> -outfmt 6

1 answer

With literally ANY mapper you will be able to map your pattern sequence against the genome sequence, and it will show in the output the name of the target sequence (i.e. the name of the gene, or scaffold, or transcript depending on what your reference is).

No need to code it yourself!

I meant that you can use any mapping program you find to do this. It's not the name of a program.

Log in to answer this question.