在哪里可以找到精确的高棉python API文档?

时间:2019-07-16 05:07:36

标签: python

我正在进行K-mer计数,我查看了khmer,但找不到有关python API的任何信息

我看着khmer examples,我看着代码,但是什么都没有

我能够测试该代码,但是我想要有关传递给函数/类和可用方法的参数的文档


import khmer
ksize = 6
nkmers = 4**ksize
tablesize = nkmers + 10

# Initialize countgraph
cg = khmer.Countgraph(ksize, tablesize, 1)
print('Created a countgraph with', cg.hashsizes(), 'buckets')

# Increment the count of some k-mers
cg.count('ATGGCA')
cg.count('ATGGCA')
cg.count('ACATGG')
cg.count('AAAAAA')
cg.count('TTTTTT')  # this will be counted towards AAAAAA

# Show all >0 k-mer abundances from the table
for i in range(nkmers):
    if cg.get(i):
        print(cg.reverse_hash(i), cg.get(i))

0 个答案:

没有答案