Skip to main content

Utility for computing k-mer-based statistics

Project description

kmer2stats

PyPI versionBioconda

A tool for creating data files for statistic based on kmers. Kmer2stat create all form of diversity metrics like shannon,chao1 or inv_simpson. Also normal statistic are calculated by kmer2stats like total_count,unique_kmers or percent_singletons. The output can be used for creating plots with scrips or other tools.

Installation

install with pip

Use the package manager pip to install kmer2stats.

pip install kmer2stats

Or use the source with pip to install kmer2stats.

git clone https://github.com/SantaMcCloud/kmer2stats.git
cd kmer2stats
pip install -r requirements.txt

install with Bioconda

Use Bioconda to install kmer2stats.

conda install kmer2stats

Dependencies

  • pandas>=2.2.2
  • numpy>=1.26.4
  • scikit-bio>=0.6.3
  • argparse>=1.4.0

Usage

kmer2stats count_file

Check input for a example file if you want to make the count_file yourself or use the tool Jellyfish to create a count_file.

Input

As Input you can use either the output from the tool jellyfish or you can use your own file in followed format:

AAAAAC 6870
AAAAAG 6312
AAAAAT 7966
AAAACA 5133
AAAACC 5600
AAAACG 5870
AAAACT 3911
AAAAGA 4173
AAAAGC 5078
AAAAGG 3047
AAAAGT 3067
AAAATA 5726
AAAATC 6167
AAAATG 5731
AAAATT 4987
AAACAA 3719
AAACAC 2817
AAACAG 5565
AAACAT 3342
AAACCA 5011
AAACCC 2469

Output

This tool output a .csv with the followed metrics:

shannon
simpson_d
pielou_e
berger_parker_d
doubles
chao1
ace
margalef
menhinick
observed_features
singles
brillouin_d
enspie
fisher_alpha
hill
inv_simpson
kempton_taylor_q
renyi
tsallis
heip_e
mcintosh_e
simpson_e
dominance
gini_index
mcintosh_d
strong
goods_coverage
robbins
total_count
unique_kmers
mean_count
median_count
max_count
min_count
std_count
count_range
num_singletons
num_doubletons
percent_singletons

License

GPL-3.0

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

kmer2stats-1.0.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

kmer2stats-1.0.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file kmer2stats-1.0.2.tar.gz.

File metadata

  • Download URL: kmer2stats-1.0.2.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kmer2stats-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7931335035d1ea756bce7b5a497bafea69f0662ace4011cf9631b3f5b456cf92
MD5 62894fc2ce3534cfca2480816468bfe7
BLAKE2b-256 1359f397db12ba450ab7491c4a84a71842e70d83a15c546917988667e3816007

See more details on using hashes here.

File details

Details for the file kmer2stats-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: kmer2stats-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kmer2stats-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f341ac6511ff3b2e94fe5d402750606fa11e34a1be36f0be3eeb42bdf729a7
MD5 bff7ba5879c8f28520f24b628404a8f6
BLAKE2b-256 9ca16f5f7cfcf42b156edbe7371fb88393092ccf3468bef0e8d7078eb10be731

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