<< btd_CpG BTD btd_UpA >>

BTD >> BTD > btd_DNAword

btd_DNAword

Number and positions of a DNA pattern in a DNA sequence

Calling Function

y = btd_DNAword(x1, x2)

Arguments

x1

String of single-letter codes specifying a DNA sequence

x2

DNA pattern (string)

y

Number and positions of given DNA word (2x1 column of strings)

Description

y = btd_DNAword(x1, x2) counts the number of DNA pattern x2, and locates its position in the given DNA sequence x1.

Examples

y = btd_DNAword("ACTCTAGCTACT","ACT")
--> y = btd_DNAword("ACTCTAGCTACT","ACT")
 y  = 
!No of DNA words        :  2    !
!Positions of DNA words :  1 1  !

See Also


Report an issue
<< btd_CpG BTD btd_UpA >>