Determine The Position Of A Snp In A Multiple Sequence Alignment
1
2
Entering edit mode
11.7 years ago
Whetting ★ 1.6k

Hi BioStars
I have a bunch of pairwise sequence alignments (simple clustal alignments).
One of the sequences is the reference sequence. I would like to extract the position of the SNPs.
I wrote some code in python, allowing me to extract the position of the SNP in the alignment. Given that position I extracted the 10nt upstream of the SNP and used those 10nt to search the reference sequence. Doing that I was able to get the position of the SNP in the reference. This approach seemed to work well, however I was wondering whether anyone had a solution that would be more elegant?
I would be happy to share my code if people are interested

python snp • 3.7k views
ADD COMMENT
1
Entering edit mode
11.7 years ago
Whetting ★ 1.6k

I wrote a couple of python scripts that do the job. They are not annotated (which is why I am not sharing them) but if you are interested in these files, just let me know!!

ADD COMMENT
0
Entering edit mode

Can you send me the python scripts that you mentioned in your post? I am doing the job that you described in your post.

ADD REPLY

Login before adding your answer.

Traffic: 2523 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6