Skip to content

Python bindings

Anuradha Wickramarachchi edited this page Aug 27, 2024 · 1 revision

Kmertools Python Bindings

Overview

When you install kmertools from BioConda or PyPI now python bindings are available in the installed python environment. The package name inside python is pykmertools and you can use it as follows.

>>> import pykmertools as kt
>>> print(kt.__doc__)
Pykmertools: kmertools python wrapper
Modules:
    OligoComputer      - computing oligonucleotide frequency vectors
                         from DNA sequences
    CgrComputer        - computing chaos game representations
                          for DNA sequences
    KmerGenerator      - an iterator object to generate k-mers
                         as (forward, reverse) numeric kmer tuples
    MinimiserGenerator - an iterator object to iterate minimisers
                         as (kmer, start, end) numeric minimiser tuples

Notes

Example application

TBD

# TODO

Load from python as follows (script).

# TODO

The scatter plot would be as follows.