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
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 details)
Built Distribution
fastk-1.0-py3-none-any.whl
(35.0 kB
view details)
File details
Details for the file fastk-1.0.tar.gz
.
File metadata
- Download URL: fastk-1.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe40c5ddc8f756eebfbecddb6381bbc2ceecda8ce2284e964b6994040b4b337 |
|
MD5 | 75cecbbeee3af66c3dca7c332ac8b9c1 |
|
BLAKE2b-256 | e0868f82d5eb3de21f8a2941f906220da0ed8ddb1dc4713f819d44b2fff34395 |
File details
Details for the file fastk-1.0-py3-none-any.whl
.
File metadata
- Download URL: fastk-1.0-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b97d2690c2bd8fdf8a61a023dbea972607437e51da7f5286c1f4c2250e9b316 |
|
MD5 | 24b2d75e152d3cd1af392076a5b9e8d1 |
|
BLAKE2b-256 | c1ef64c58bc1b1ca8b897e88f4ce6e1ff3270ecb0cfc5af2eae3c4b284ef1dcf |