Skip to content

sznistvan/dna_kmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNA string k-mer generator

Example:

def dna_token(dna_string, kmer, step)


dna = "ACTGTCGTACAGTGACCAGTGGTAGT"
    kmerized_dna = dna_token(dna, 5, 1)

ACTGTCGTACAGTGACCAGTGGTAGT
ACTGT CTGTC TGTCG GTCGT TCGTA CGTAC GTACA TACAG ACAGT CAGTG AGTGA GTGAC TGACC GACCA ACCAG CCAGT CAGTG AGTGG GTGGT TGGTA GGTAG GTAGT