Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search_primer_pair finding reverse complement sequences #39

Open
analaca opened this issue Apr 14, 2020 · 1 comment
Open

search_primer_pair finding reverse complement sequences #39

analaca opened this issue Apr 14, 2020 · 1 comment

Comments

@analaca
Copy link

analaca commented Apr 14, 2020

Hi,

I just tried the function search_primer_pair. It is supposed to search for the forward primer by 5’-3’ on plus strand and for the reverse primer by 5’-3’ on minus strand. However, I got results for sequences that were reversed on GenBank, hence the outliers in the tree below.

Tridac16S_insilicoNCBI

search_primer_pair( GTGTTAAACCTTAAAGTAGCG, ATCCAACATCGAGGTCAC, name = NULL, num_aligns = 500, num_permutations = 25, simplify = TRUE, clustal_options = list(exec = "clustalo", quiet = TRUE, original.ordering = TRUE), distance_options = list(model = "N", pairwise.deletion = T), api_key = "xxxxxxxx", .parallel = FALSE, .progress = "none" )

It's actually a good thing that the function was able to find them, but it would be great if it could detect this issue and reverse complement them in order to have them in the right direction in the alignment.

Thanks for this package. It's going to be very useful for my research.
Cheers

@MVesuviusC
Copy link
Owner

Yeah, I've seen this before as well. it also can mess up the calc_rank_dist_ave numbers since the genetic distance between sequences within a species/genera can get overestimated.

I don't know that clustal can fix this automatically, but if we switched to mafft and used "--adjustdirectionaccurately" it would solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants