Crates.io | cribtools |
lib.rs | cribtools |
version | 0.2.0 |
created_at | 2025-02-16 18:19:48.555837+00 |
updated_at | 2025-04-26 12:11:39.316686+00 |
description | CLI for reading genome track files. |
homepage | |
repository | https://github.com/cribtools/crib |
max_upload_size | |
id | 1558034 |
size | 113,060 |
Crib reads multiple bigWig files concurrently, whether local or remote (via http or S3).
Genomic track files come in many varieties. One of the most common binary file formats for quantitative measurements across the genome is bigWig. Crib makes it possible to access a specific genomic region of multiple bigWig files concurrently and in bulk.
crib view
reads a single genomic region from multiple files, and outputs the results as a bedGraph to stdout
.
crib view <chrom>:<start>-<end> <files>
crib view 3:40000-60000 s3://bucket/path/file.bw
crib view 13:4000-245000 local/path/*.bw second.bw s3://bucket/path/another.bw
crib view X:4000-245000 s3://bucket/path/ > output.bg
crib view 5:16000-18000 https://example.org/bw/file.bw > output.bg
The associated library's API is not stable. It is likely that it will change substantially.
1. Currently, the library used for accessing BigWig files (bigtools) breaks up large queries into smaller queries (blocks) suitable for caching (10 KB). It then queries using attohttpc, which is sync. This means that:
2. Querying is limited to a genomic range from a single chromosome or contig e.g. 3:15000-50000
.