I am new to python and I am having a hard time to figure out how to do this. I have fasta sequences and a few oligo sequences. I would like to align the oligos with the fasta sequences and find percentage similarity of each oligo to each fasta sequence. can any one help me with this
e.g.
fasta sequences
>seq1
cttatatggtaaccgaagcacttcgcccgtataaaaatcatctaaatatgcactttgttt
caaatgtcgatggt
>seq2
tgtttactggcgaaaaaatcaatcgtacagaaaatcgtgccgtgctacatactgcacttc
gcaa
oligos
>x1
ttaacatctgcagcaaaatc
>x2
aaattggggggataccttaa
Thank you for the prompt reply. I understand that blast, fasta and many other tools are available for this purpose. Since i wanted to learn how to do this in python , and stuck i posted this question
It's not a trivial problem. If you want to do it yourself as a programming exercise, your best bet is to re-implement Needleman-Wunsch or a similar string alignment algorithm.