Count kmers in regions or at SNVs or at indel breakpoints.
Project description
kmer_counter
Count kmers in regions or at SNVs or at indel breakpoints.
Requirements
kmer_counter requires Python 3.7 or above.
Installation
With pip
:
pip install kmer_counter
With pipx
:
pipx install --python python3.7 kmer_counter
Usage
Counting k-mers at SNVs
To count the 3-mers at SNVs do:
kmer_counter snv {genome}.2bit {snv_file}
Where the {snv_file}
should be a vcf-like text file where the first four columns are: Chromosome, Position, Ref_Allele, Alt_Allele. Fx:
chr1 1000000 A G
chr1 1000200 G C
chr1 1000300 A T
chr1 1000500 C G
Comments or headers lines starting with "#" are allowed and will be ignored and any additional columns are also allowed but ignored. So a vcf file is also a valid input file.
The Ref_Allele column should match the reference genome provided by the 2bit file. 2bit files can be downloaded from:
https://hgdownload.cse.ucsc.edu/goldenpath/{genome}/bigZips/{genome}.2bit
where {genome}
is a valid UCSC genome assembly name (fx. "hg38").
Counting k-mers in genomic regions
Counting k-mers at indels
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
Built Distribution
Hashes for kmer_counter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee942a58237b0fc82962f11aaeaffe0218438093a21473a9610876a107741568 |
|
MD5 | 8b063dcd85fb33ce1707bc346c854a9d |
|
BLAKE2b-256 | ec2db2eee0718e9c4aeeecdb378f3b9392bf711436debf1fc9ddd0138141d479 |