Skip to main content

Python wrappers for FastK tools

Project description

FASTK_python

Python interface for FASTK (currently Histex and Profex). Python >= 3 is required.

How to install

$ git clone https://github.com/yoshihikosuzuki/FASTK_python
$ cd FASTK_python
$ make
$ pip3 install .

How to use

Quick usage

import fastk

# Histex
hist = fastk.histex("/path/to/source[.hist]")

# Profex
prof = fastk.profex("/path/to/source[.prof]", read_id=1)

histex()

Signature: fastk.histex(fastk_prefix: str, min_count: int = 1, max_count: int = 100) -> bits.util._counter.RelCounter
Docstring:
Run Histex and return a histogram of k-mer count frequencies.

positional arguments:
  @ fastk_prefix : Prefix of the output files of FastK.

optional arguments:
  @ [min|max]_count : Specify the range of the k-mer count.

profex()

fastk.profex(
    fastk_prefix: str,
    read_id: int,
    zero_padding: bool = False,
    return_k: bool = False,
) -> Union[List[int], Tuple[List[int], int]]
Docstring:
Run Profex and return the k-mer count profile of a single read.

positional arguments:
  @ fastk_prefix : Prefix of the output files of FastK.
  @ read_id      : Read ID (1, 2, ...)
  @ zero_padding : If True, add (K - 1) zero counts to the prefix.
  @ return_k     : If True, return the value of K as well.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastk-1.0.tar.gz (33.9 kB view hashes)

Uploaded Source

Built Distribution

fastk-1.0-py3-none-any.whl (35.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page