Closed:hey, can someone help me with python?
0
0
Entering edit mode
6.3 years ago

can someone solve this for me?

Write a function 'kmers' that count the kmers of length 3. It should get a DNA sequence and return a dictionary with the substrings of length 3 as keys and the number of occurrences in the sequence as value. Example:

kmers('CGCTAACGCAC') = {'AAC': 1,

'ACG': 1,

'CAC': 1,

'CGC': 2,

'CTA': 1,

'GCA': 1,

'GCT': 1,

'TAA': 1}

python dna seq help bio • 64 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1621 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6