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

Support IUPAC ambiguity codes in primer sequences #40

Closed
ressy opened this issue Jul 10, 2019 · 1 comment · Fixed by #97
Closed

Support IUPAC ambiguity codes in primer sequences #40

ressy opened this issue Jul 10, 2019 · 1 comment · Fixed by #97

Comments

@ressy
Copy link
Member

ressy commented Jul 10, 2019

CHIIMP should support IUPAC codes for ambiguous nucleotides in primer sequences in order to recognize multiple sets of possible primers for a single locus.

@ressy
Copy link
Member Author

ressy commented Jul 11, 2019

This is probably a good opportunity to move away from character vectors to support these sorts of features. Biostrings supports ambiguous matches via IUPAC codes easily:

> Biostrings::vmatchPattern(
+     "RCTG",
+     Biostrings::DNAStringSet(c("ACTGAAAATCAA", "GCTGAGGCTCAA", "TCTGAAAATCAA")),
+     fixed = FALSE)
MIndex object of length 3
[[1]]
IRanges of length 1
    start end width
[1]     1   4     4

[[2]]
IRanges of length 1
    start end width
[1]     1   4     4

[[3]]
IRanges of length 0

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

Successfully merging a pull request may close this issue.

1 participant