I am looking for code in Rstudio that will search for Recombination signal sequences (RSS) within a DNA sequence and give me the position. I used count function however it does not give me position and I cannot input multiple RSSs into it at the same time which makes it very tedious. For instance:
cd247<-read.fasta("sequence.fasta")
#store DNA sequence for cd247 into cd247seq
cd247seq<-cd247[[1]]
cd247seq[1:50]
#change cd247seq from vector of characters to string
c2s(cd247seq)
#create table of all the 7 character sequences in cd247 gene
count(cd247seq,7)
cd247table<-count(cd247seq,7)
cd247table[["tactgtg"]]
outputs
cd247table[["tactgtg"]]
[1] 1
but not position within cd247seq
I have posted my files to github https://github.com/opheelorraine/Map-RSS