motif.find(motif, sequence)
regexpr
characters are allowed in the motif, see examples.regexpr
, read.fasta
, pdbseq
aa.seq <- pdbseq( read.pdb( get.pdb("4q21", URLonly=TRUE) ) )
motif = c("G....GKS")
motif.find(motif, aa.seq)
Run the code above in your browser using DataLab