A utility tool to compute shared data statistics for given combinations of data samples
Project description
CombosStat: A utility tool designed to compute shared data statistics for given combinations of data samples
Installation
python3 -m pip install combos_stat
Usage
combos_stat -h
1. stat
Usage: python -m combos_stat.bin.main stat [OPTIONS]
Calculate statistics for shared data counts based on combinations of samples.
Options:
-i, --input-file PATH Path to the input data file [required]
-o, --output-file PATH Path where the results will be saved [default: output_stat.txt]
-n, --num-samples INTEGER Number of samples to compute [required]
-t, --share_type [intersection|union]
Type of share to compute
--header INTEGER Row number to use as the column names [default: 0]
--sep TEXT Delimiter to use for reading the input file (e.g., "\t" for tab)
--start-col INTEGER Column index to start reading sample data from [default: 1]
--show-progress BOOLEAN Show progress
--chunksize INTEGER The chunksize lines to read
--chunk INTEGER The index of chunk
-h, -?, --help Show this message and exit.
examples:
combos_stat stat -h
combos_stat stat -i input.txt -o output.txt -n 13 -t intersection
combos_stat stat -i input.txt -o output.txt -n 13 -t intersection --chunksize 100 --chunk 2 [read 101-200 lines]
2. plot
Usage: python -m combos_stat.bin.main plot [OPTIONS] RESULT_DIR
Generate Boxplot with statistics results
Options:
-R, --Rscript TEXT Path to the executable Rscript [default: Rscript]
-w, --write TEXT Write the R code to a file
--option TEXT Options in the format key=value for boxplot, eg. title="Demo Stats", x_lab="Shared_Numbers",
y_lab="Data"
-h, -?, --help Show this message and exit.
examples:
combos_stat plot -h
combos_stat plot out/result
combos_stat plot out/result --write boxplot.R
combos_stat plot out/result --write boxplot.R --option x_lab=XXX --option width=30 --option dpi=500
default options:
infile = 'processed_stats.tsv'
output = 'boxplot'
x_lab = 'Genomes'
y_lab = 'Families'
title = 'BoxPlot'
dpi = 300
width = 14
height = 7
3. batch
Usage: python -m combos_stat.bin.main batch [OPTIONS]
Generate batch shells and SJM job
Options:
-i, --input-file PATH Path to the input data file
-sep, --sep TEXT Delimiter to use for reading the input file (e.g., "\t" for tab)
-s, --start-col INTEGER Column index to start reading sample data from [default: 1]
-t, --threshold INTEGER The threshold to divide the combinations [default: 200000]
-O, --output-dir PATH Path to the output directory [default: .]
--job TEXT Generate SJM Job
--no-check Do not check queues for SJM
-h, -?, --help Show this message and exit.
examples:
combos_stat batch -h
combos_stat batch -i input.txt -t 200000 -O out
combos_stat batch -i input.txt -t 200000 --job run.job
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
combos_stat-1.0.0.tar.gz
(11.5 kB
view details)
Built Distribution
File details
Details for the file combos_stat-1.0.0.tar.gz
.
File metadata
- Download URL: combos_stat-1.0.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ff0225d59e6732c5b7c47e0bc417ed74290956913acea6e3aa6a88c2379f93 |
|
MD5 | 3b71c867d1aa0f17db7303d1afa1140b |
|
BLAKE2b-256 | 0c618e0a658890d2a8374c8d5b03ec35252130ffdc12c3179575639e074ff3af |
File details
Details for the file combos_stat-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: combos_stat-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396f38101f7edf543a4aafebd090a38f879acf40684f54b881d6527918af5483 |
|
MD5 | c278d7fc4e9cd12798a4eb0bf50eca51 |
|
BLAKE2b-256 | 7d67b7c2a765d8ae66d092262d25838c09cedeef2e6f1833b96eebb76b9011e9 |