wigtools
A set of tools for wiggle file
Installation
pip install wigtools
Usage
> wigtools
Description:
A set of tools for wiggle file
Usage:
wigtools <command> [OPTIONS]
Global optional options:
-h, -H, --help - Show help message and exit.
Available commands:
switch-base - Switch the coordinate base of a wiggle file.
sort - Sort the blocks in a wiggle file by chrom and start. Chromosomes will be \
sorted the way sort -V does.
stats - Statistics for data in a wiggle file for each block
reshape - Generate a new wiggle file and reshape the blocks to the query regions
query - Find the blocks that intersect with the query regions
help [COMMAND] - Print help message for the command and exit.
Switch coordinate base for a wiggle file
> cat test.wig
variableStep chrom=chr
1 1.0
2 2.0
> cat test.wig | wigtools switch-base --to 0
variableStep chrom=chr span=1
0 1.0
1 2.0
Sort a wiggle file
> cat test-unsorted.wig
variableStep chrom=chr
5 1.0
6 2.0
variableStep chrom=chr
1 1.0
2 2.0
> cat test.wig-unsorted.wig | wigtools sort
variableStep chrom=chr span=1
1 1.0
2 2.0
variableStep chrom=chr span=1
5 1.0
6 2.0
Calculate the statistics of each block
> cat test-unsorted.wig | wigtools sort | wigtools stats
Chrom Start End min max mean median sum count bp
chr 1 2 1.0 2.0 1.5 1.5 3.0 2 2
chr 5 6 1.0 2.0 1.5 1.5 3.0 2 2
> cat test-unsorted.wig | wigtools sort | wigtools stats --stats mean count --nohead
chr 1 2 1.5 2
chr 5 6 1.5 2
Query a wiggle file to find blocks
> cat query.bed
chr 2 3
> wigtools query -i test-unsorted.wig --qfile query.bed
variableStep chrom=chr span=1
1 1.0
2 2.0
> wigtools query -i test-unsorted.wig --qfile query.bed --qbase 0
# No overlapping blocks
Reshape the blocks in query regions
> cat reshape.bed
chr 1 8
> cat test-unsorted.wig | wigtools sort | wigtools reshape --qfile reshape.bed
variableStep chrom=chr span=1
1 1.0
2 2.0
5 1.0
6 2.0
Metadata
Release files for wigtools 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wigtools-0.0.1.tar.gz | 8.8 kB | Without provenance | Details for wigtools-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wigtools-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for wigtools-0.0.1-py3-none-any.whl |
Total release size: 18.0 kB
Release files / wigtools-0.0.1.tar.gz
| Download URL | wigtools-0.0.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d30248864d10a94d4b9d690a9dffa2180fc1c7d30d04b6c31a291487af45331
|
|
BLAKE2b-256 checksum How to use checksums |
87e2ade0ee502d93d814041ec8fd5ea53f4d81f7747063c8f7f8b2c787acb949
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
|
Release files / wigtools-0.0.1-py3-none-any.whl
| Download URL | wigtools-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a47159228cdc81758d908a959413871b5d05b2c7c4803eba0f313f819872b8fc
|
|
BLAKE2b-256 checksum How to use checksums |
63b5b12c2becf5e5e70abb1442a5f0c056bc4f6c45a43fb8fd8993f8fe182675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
|
Security for wigtools 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.