-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
CC @camilogarciabotero, ref. #297
How would a user go about findings ORFs with BioSequences? To do this, they need to be able to do several fundamental operations that BioSequences currently doesn't support:
BioRegexdoesn't support mostfind*functions, likefindnextandfindall.- There is no way to search for an amino acid in a nucseq, given a translation table.
- There is no way to search only in-frame.
It's possible this needs to be added in Kmers.jl, since Kmers contain the RNACodon type, the CodonSet type, and reverse translation. Kmers.jl is currently in an incomplete state, but I'm slowly working rewriting it.
So, my current proposal is:
- Implement the
find*functions forBioRegex. - In Kmers, allow searching for a CodonSet in a nucseq.
Maybe we should include a convenience function in Kmers that is something like this:
function find_next(s::BioSequence, codons::CodonSet, from::Index)
v = view(s, from:lastindex(s))
for (step, kmer) in enumerate(SpacedKmers{RNAAlphabet{2}, 3, 3}(v))
kmer ∈codons && return 3 * (step-1) + from
end
nothing
endMetadata
Metadata
Assignees
Labels
No labels