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


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.1.tar.gz (86.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastk-1.1-py3-none-any.whl (86.5 kB view details)

Uploaded Python 3

File details

Details for the file fastk-1.1.tar.gz.

File metadata

  • Download URL: fastk-1.1.tar.gz
  • Upload date:
  • Size: 86.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fastk-1.1.tar.gz
Algorithm Hash digest
SHA256 f386d3ab5fe285f2e6967e240db70b8d48a621ba6c61a14e2a35e88d15fab07f
MD5 69514bb6aa84a34d27263b2d801baf61
BLAKE2b-256 82f124b99a300fc009f7bbc6560db439fcbb55d98c287fc292cc071da8fcd1ce

See more details on using hashes here.

File details

Details for the file fastk-1.1-py3-none-any.whl.

File metadata

  • Download URL: fastk-1.1-py3-none-any.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fastk-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6986faa374e786585db2372e8ff51bb1edea84f2eb930e1320d8310e95580e91
MD5 6fa1e23c84a7b83d08eac83334018c19
BLAKE2b-256 39bd25be4339926e681bc24656c746dd6a87553d791504e9eade650fa54de6df

See more details on using hashes here.

Supported by

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