This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.2 instead.
gwseq_io
Python library for processing bigWig, bigBed, BAM and HiC files. Backed by a C++17 core via nanobind.
Installation
pip install gwseq-io
Requires numpy, installed automatically as a dependency.
Usage
Open bigWig, bigBed, BAM and HiC files for reading
reader = gwseq_io.open(path, mode, parallel, zoom_correction, file_buffer_size, max_file_buffer_count, index_path)
reader = gwseq_io.open("path/to/file.bigwig")
reader = gwseq_io.open("path/to/file.bam")
reader = gwseq_io.open("path/to/file.hic")
Parameters:
modeOpening mode. May be omitted as "r" (read) by default.parallelNumber of parallel file handles and processing threads. Use -1 for recommended (24 for reading). -1 by default.zoom_correctionScaling factor for automatic zoom level selection based on bin size. Only for bigWig files. 1/3 by default.file_buffer_sizeSize in bytes of each file buffer for caching file reads. Use -1 for recommended (32768 or 1048576 for URLs). -1 by default.max_file_buffer_countMaximum number of file buffers to keep in cache. Use -1 for recommended (128). -1 by default.index_pathPath of the index. Only for BAM files, where it defaults to the path of the file with ".bai" appended. An index is optional, but reading entries needs one.
Attributes for bigWig and bigBed files:
main_headerGeneral file formatting info.zoom_headersZooms levels info (reduction level and location).auto_sqlBED entries declaration (only in bigBed).total_summaryStatistical summary of entire file values (coverage, sums and extremes).chr_sizesMap of chromosome IDs and their sizes.typeEither "bigwig" or "bigbed".
Attributes for BAM files:
headerHeader lines, each a dict of its "type" (the two letters after the @) and its "fields".chr_sizesMap of reference IDs and their sizes.is_indexedWhether the index was found and read. Reading entries needs it.index_errorWhy the index is absent, when it is. Empty when it loaded, and empty as well when the file simply has none.
Attributes for HiC files:
headerfooterGeneral file info.chr_sizesMap of chromosome IDs and their sizes.normalizationsAvailable normalizations.unitsAvailable units.bin_sizesAvailable bin sizes.
Read bigWig and bigBed values
values = reader.read_values(chr_ids, starts, ends, centers, span, ...)
values = reader.read_values(chr_ids=["chr1", "chr1"], starts=[1000, 1100], ends=[1100, 1200])
values = reader.read_values(chr_ids=["chr1", "chr1"], starts=[1000, 1100], span=100)
values = reader.read_values(chr_ids=["chr1", "chr1"], ends=[1100, 1200], span=100)
values = reader.read_values(chr_ids=["chr1", "chr1"], centers=[1050, 1150], span=100)
values = reader.read_values(chr_ids=["chr1", "chr1"], centers=[1050, 1150], span=100, strands=["+", "-"])
Parameters:
chr_idsstartsendscentersChromosome IDs, starts, ends and centers of the locations. Bothstartsends, or one ofstartsendscenterswithspan, may be specified.spanReading window in bp relative tostarts,endsorcenters. Only one of the three may be given with it. Not by default.strandsStrand of each location, as "+" or "-" ("." and "" count as "+"). The values of a "-" location are reversed, so that every location reads from its own start. All "+" by default.bin_sizeReading bin size in bp. May vary in output if locations have variable spans orbin_countis specified. 1 by default.bin_countOutput bin count. Inferred as max location span / bin size by default.bin_modeMethod to aggregate bin values. Either "mean", "sum" or "count". "mean" by default.full_binExtend locations ends to overlapping bins if true. Not by default.def_valueDefault value to use when no data overlap a bin. 0 by default.zoomBigWig zoom level to use. Use full data if -1, or auto-detect if -2 by taking the coarsest level whose bin size is underbin_sizetimeszoom_correction(may be the full data). Full data by default.progressFunction called during extraction with the extracted and the total coverage in bp. Use the default callback if true. None by default.
Returns a numpy float32 array of shape (locations, bin count).
Quantify bigWig and bigBed values
values = reader.quantify(chr_ids, starts, ends, centers, span, ...)
Parameters:
chr_idsstartsendscentersspanbin_sizefull_bindef_valuezoomprogressIdentical toread_valuesmethod.reduceMethod to aggregate values over span. Either "mean", "sd", "sem", "sum", "count", "min", "max", "l1norm" or "l2norm". "mean" by default.
Returns a numpy float32 array of shape (locations).
Profile bigWig and bigBed values
values = reader.profile(chr_ids, starts, ends, centers, span, ...)
Parameters:
chr_idsstartsendscentersspanstrandsbin_sizebin_countbin_modefull_bindef_valuezoomprogressIdentical toread_valuesmethod. A "-" location takes part in the profile reversed, as it would come out ofread_values.reduceMethod to aggregate values over locations. Either "mean", "sd", "sem", "sum", "count", "min", "max", "l1norm" or "l2norm". "mean" by default.
Returns a numpy float32 array of shape (bin count).
Iterate over all bigWig and bigBed values
iterator = reader.iter_all_values(...)
iterator = reader.iter_all_values(bin_size=10)
for values in iterator:
...
for (chr_id, start, end), values in zip(iterator.locs, iterator):
...
Parameters:
chr_idsOnly walk these chromosomes. All by default.bin_modefull_bindef_valuezoomprogressIdentical toread_valuesmethod.full_bindecides whether the partial bin a chromosome ends on is walked at all.spanWindow in bp for each step, rounded up to a whole number of bins. 1 000 000 by default, a million values at the default bin size.bin_sizeIdentical toread_valuesmethod, but must be a whole number of bp: the windows tile the genome on this grid. 1 by default.
Returns an iterator over successive windows, each one a numpy float32 array of shape (bins), in chromosome then coordinate order. len(iterator) gives the number of windows, and iterator.locs the region of each, so the nth array covers locs[n]:
Notes:
- A window never spans two chromosomes and no bin straddles a window boundary, so concatenating the windows of a chromosome gives exactly what
read_valuesgives for the whole of it at the same bin size. For a bigBed the values are the pileup of its entries.
Read bigBed entries
entries = reader.read_entries(chr_ids, starts, ends, centers, span, ...)
Parameters:
chr_idsstartsendscentersspanprogressIdentical toread_valuesmethod.col_countOnly read this number of columns (eg, 3 for chr, start and end). Must be 0 (all) or at least 3. The columns left out are never parsed, so a narrower read is a cheaper one. All by default.
Returns a list (locations) of list of entries (dict with at least "chr", "start" and "end" keys).
Read all bigBed entries
entries = reader.read_all_entries(...)
Parameters:
chr_idsOnly extract data from these chromosomes. All by default.col_countIdentical toread_entriesmethod.
Returns a list of entries (as in read_entries).
Iterate over all bigBed entries
iterator = reader.iter_all_entries(...)
iterator = reader.iter_all_entries()
for entries in iterator:
...
for (chr_id, start, end), entries in zip(iterator.locs, iterator):
...
Parameters:
chr_idscol_countprogressIdentical toread_all_entriesmethod.spanIdentical toiter_all_valuesmethod, but a window is measured in bp alone, there being no bins to round it to.
Returns an iterator over successive windows, each one a list of entries (as in read_entries), in chromosome then coordinate order. len(iterator) gives the number of windows, and iterator.locs the region of each.
Notes:
- A window never spans two chromosomes, and an entry reaching over a window boundary is reported by the window it starts in. Concatenating the windows gives exactly what
read_all_entriesreturns, in the same order.
Convert bigWig to bedGraph or WIG
reader.to_bedgraph(output_path, ...)
reader.to_wig(output_path, ...)
Parameters:
output_pathPath to output file.chr_idsOnly extract data from these chromosomes. All by default.bin_sizezoomprogressIdentical toread_valuesmethod.
Convert bigBed to BED
reader.to_bed(output_path, ...)
Parameters:
output_pathchr_idsprogressIdentical toto_bedgraphandto_wigmethods.col_countOnly write this number of columns (eg, 3 for chr, start and end). All by default.
Read BAM entries
entries = reader.read_entries(chr_ids, starts, ends, centers, span, ...)
Parameters:
chr_idsstartsendscentersspanprogressIdentical to bigWigread_valuesmethod.filterDrop unmapped alignments, improperly paired reads, secondary and supplementary records, and anything marked as failing quality control or as a duplicate. True by default.parse_tagsKeep the optional fields of every alignment. They are only decoded when read, so this costs one small copy per alignment. True by default.
Returns a list (locations) of list of BamEntry, in the order the locations were given. Each location gets its own full list, so two overlapping locations both report the alignments they share.
Notes:
- Needs an index, as
is_indexedreports. Reading without one raises, naming either the index that was not found or the error it gave.
Read all BAM entries
entries = reader.read_all_entries(...)
Parameters:
chr_idsOnly extract data from these references. All by default.filterparse_tagsprogressIdentical toread_entriesmethod.
Returns a list of BamEntry (as in read_entries). Unplaced alignments are left out, the index reaching an alignment only through the reference it sits on.
Iterate over BAM entries
iterator = reader.iter_entries(chr_ids, starts, ends, centers, span, ...)
iterator = reader.iter_entries(chr_ids=["chr1", "chr1"], starts=[1000, 1100], ends=[1100, 1200])
for entries in iterator:
...
for loc_index, entries in zip(iterator.order, iterator):
...
Parameters:
chr_idsstartsendscentersspanfilterparse_tagsprogressIdentical toread_entriesmethod.sort_locationsRead the locations in reference and position order, and report them in that order. Locations close together then share the blocks a read decompressed, 4 to 7 times faster on a scattered request. False by default.
Returns an iterator over locations, each one a list of BamEntry. len(iterator) gives the number of locations, and iterator.order the request index of each, so the nth list belongs to location order[n]:
Iterate over all BAM entries
iterator = reader.iter_all_entries(...)
for entries in reader.iter_all_entries():
...
Parameters:
chr_idsfilterparse_tagsprogressIdentical toread_all_entriesmethod.spanWindow in bp for each step. 1000000 by default.
Returns an iterator over successive windows, each one a list of BamEntry, in reference then coordinate order. len(iterator) gives the number of windows.
Notes:
- A window never spans two references, and an alignment reaching over a window boundary is reported by the window it starts in. Concatenating the windows gives exactly what
read_all_entriesreturns, in the same order.
BAM entries
A BamEntry is one alignment.
Attributes:
chr(str) Reference the alignment sits on.startend(int) 0-based half-open span, the end derived from the cigar. Equal for an alignment covering no reference.read_name(str) QNAME.flag(int) FLAG, as the raw bitfield.mapping_quality(int) MAPQ.cigar(str) CIGAR, eg "10S80M10S".sequence(str) SEQ, unpacked from its 4-bit encoding.qualities(str) QUAL as phred+33, "*" for a missing score.next_chr(str) RNEXT, "*" when the mate sits on no reference.next_start(int) PNEXT.template_length(int) TLEN.bai_bin(int) Index bin the record declares itself in.reference_lengthquery_length(int) Bases of the reference the alignment covers, and of the read its cigar consumes.tags(dict) Optional fields by two-letter tag, in the order the record stores them. Typed as the file types them: character, integer, float, string, or list of integers or floats. Empty whenparse_tagsis off.is_pairedis_proper_pairis_mappedis_next_mappedis_reverseis_next_reverseis_first_in_pairis_last_in_pairis_secondary_or_supplementaryis_failed_qc_or_duplicate(bool) Theflagbits, decoded. Finer ones are yours to mask offflag.
Notes:
cigar,sequence,qualitiesandtagsare decoded the first time they are read and kept afterwards, so an alignment read for its coordinates never pays for the rest of it. The optional fields are only walked whentagsis read, so a record with malformed ones reads fine and raises there.to_dict()returns every field as a plain dict under the same names, for pandas, for serialising, or for sending to another process, an alignment itself not being picklable. It holds a "tags" key only whenparse_tagswas on.
Read HiC values
values = reader.read_values(chr_ids, starts, ends, ...)
Parameters:
chr_idsstartsendsChromosome IDs, starts and ends of the two locations.bin_sizeInput bin size or -1 to use the smallest. Must be available in the file. Smallest by default.bin_countApproximate output bin count. Takes precedence overbin_sizeif specified by selecting the closest bin size resulting inbin_count. Not specified by default.exact_bin_countResize output to matchbin_count(if specified). Not by default.full_binExtend locations ends to overlapping bins if true. Not by default.def_valueDefault value to use when no data overlap a bin. 0 by default.triangleSkip symmetrical data if true. Not by default.min_distancemax_distanceMin and max distance in bp from diagonal for contacts to be reported. All by default.normalizationEither "none" or any normalization available in the file, such as "kr", "vc" or "vc_sqrt". "none" by default.modeEither "observed" or "oe" (observed/expected). "observed" by default.unitEither "bp" or "frag". "bp" by default.save_toSave output to this .npz path (under "values" key) and return nothing. Not by default.
Returns a numpy float32 array of shape (loc 1 bins, loc 2 bins).
Read HiC sparse values
values = reader.read_sparse_values(chr_ids, starts, ends, ...)
Parameters:
chr_idsstartsendsbin_sizebin_countexact_bin_countfull_bindef_valuetrianglemin_distancemax_distancenormalizationmodeunitsave_toIdentical toread_valuesmethod.
Returns a COO sparse matrix as a dict with keys:
valuesValues as a numpy float32 array.rowValues rows indices as a numpy uint32 array.colValues columns indices as a numpy uint32 array.shapeShape of the dense array as a tuple.
Convert in python using scipy.sparse.csr_array((x["values"], (x["row"], x["col"])), shape=x["shape"]).
Open bigWig and bigBed files for writing
writer = gwseq_io.open(path, mode, type, chr_sizes, genome, fields, items_per_slot, compression_level)
with gwseq_io.open("path/to/file.bigwig", "w", genome="mm10") as writer:
...
Parameters:
modeOpening mode. Must be set to "w" (write).typeType of file to write. Either "bigwig" or "bigbed". "bigwig" by default.chr_sizesMap of chromosome IDs and their sizes. Every written coordinate is checked against it, and a written ID is resolved against its keys the way a read one is, so "1" and "chr1" reach the same entry. Inferred from what is written if omitted, a chromosome then ending where its last value or entry does. None by default.genomeGenome ID to get the chromosome IDs and their sizes, asget_chr_sizesreturns them. May not be set withchr_sizes. None by default.fieldsEntries keys and their types. Only for bigBed files. The first three are the coordinates whatever they are called, and go out as the standardchrom,chromStartandchromEnd. Types may be "string", "int", "uint" or "float". {"chr": "string", "start": "uint", "end": "uint", "name": "string"} by default.items_per_slotValues or entries one block holds, and records one zoom block holds. Use -1 for recommended (1024 for bigWig, 512 for bigBed, as the UCSC writers use). -1 by default.compression_levelzlib level for the data and zoom blocks, or 0 to leave them uncompressed. 6 by default.parallelNumber of threads compressing blocks. Deflate is nearly all of what writing a block costs, and blocks are compressed independently, so this is where the writing time goes. 1 compresses on the calling thread and starts no threads at all. Use -1 for recommended (one per core). -1 by default.
Attributes:
pathtypeclosedPath being written, "bigwig" or "bigbed", and whetherclosehas run.chr_sizesChromosome sizes as they will be written, in the order the chromosomes were written.section_countsection_countsSections, or blocks of entries, written so far — in total and, for a bigWig, by encoding ("bedgraph", "varstep", "fixedstep"). Each section takes whichever of the three costs the fewest bytes.entry_countfieldsEntries written so far, and the columns they are written with (bigBed only).skipped_countValues dropped for not being finite.clipped_countValues cut back to the end of a declared chromosome they hung over.
Notes:
- Only chromosomes that were actually written go into the file, so
chr_sizesandgenomeare a bounds check and a spelling of the names rather than a list of what the file will contain. - A bigWig value that starts inside a declared chromosome and ends past it is written up to that end rather than refused, since a chromosome is rarely a whole number of bins long. One that starts at or past the end raises, as does any bigBed entry running past it.
Write bigWig values
writer.write_value(chr_id, start, end, value)
writer.write_values(chr_id, start, span, values)
writer.write_value("chr1", start=1000, end=1010, value=0.1)
writer.write_values("chr1", start=1000, span=10, values=[0.1, 0.3, 0.2, 0.1])
Parameters (write_value):
chr_idstartendChromosome ID, start and end of value.valueLocation value.
Parameters (write_values):
chr_idstartChromosome ID and start of first value.spanWindow in bp of each successive locations relative to their starts, sovalues[n]covers[start + n * span, start + (n + 1) * span).valuesLocations values, as a list or a numpy array. A C-contiguous float32 array is read where it stands; anything else is converted, which copies.
Notes:
- Values must be pooled by chromosome, added in order and without overlap.
- For better performances, sequential calls should be successive locations with identical spans. A run handed over in one
write_valuescall is a fixedStep section, four bytes a value against twelve for the same values written one at a time. - A NaN or infinite value is not written. It leaves a gap, which is what a bigWig means by a base carrying no data, and a reader fills it with the
def_valueit was asked for.skipped_countcounts them. - A value hanging over the end of a declared chromosome is written up to that end, which is what makes a span that does not divide a chromosome ordinary rather than an error.
clipped_countcounts them. A value starting at or past the end raises, and in awrite_valuesrun only the last value can hang over, so a run reaching whole values past the end raises too.
Write bigBed entries
writer.write_entry(chr_id, start, end, ...)
writer.write_entry("chr1", start=1000, end=1010, fields={"name": "read#1"})
Parameters:
chr_idstartendChromosome ID, start and end of entry.fieldsMap of additional fields as specified in filefields. The first three declared fields are the coordinates and are written fromstartandend, so naming one here is an error. A declared field left out is written empty for a string and 0 for a number.
Notes:
- Entries must be pooled by chromosome and added in order of their start. Unlike bigWig values, they may overlap and nest freely.
- The summary statistics a bigBed carries, and its zoom levels, describe the depth of coverage its entries make, as the format asks: a base under three entries counts once towards the bases covered and three towards the sum.
Convert bedGraph or WIG to bigWig
gwseq_io.convert_to_bigwig(input_path, output_path, ...)
gwseq_io.convert_to_bigwig("track.bedgraph.gz", "track.bigwig", genome="mm10")
Parameters:
input_pathPath to input bedGraph or WIG file. May be gzipped.output_pathPath to output file.bin_sizeForce a specified bin size in the output. A bin holds the base-weighted mean of what falls in it, so a 500 bp interval counts for five hundred times what a 1 bp one does, and a bin nothing covers is left as a gap. Takes bins as is by default.chr_sizesgenomeitems_per_slotcompression_levelparallelIdentical toopenin write mode.progressFunction called during conversion. Takes the bytes read and the total size of the input as parameters. Use default callback function if true. None by default.
Returns a map of format ("bedgraph" or "wig", as it was sniffed), line_count, item_count, skipped_count, clipped_count (values cut back to the end of their chromosome) and chr_sizes as written.
Notes:
- Which of the two formats the input is comes from its content, not from its name: the first line that is neither blank, a comment, nor a
trackorbrowserdeclaration decides. AfixedSteporvariableStepline makes it a WIG, four columns of chromosome, start, end and value a bedGraph, and anything else is refused. The format is settled once, so a file holding both is refused as well. - WIG coordinates are 1-based and bedGraph ones 0-based half-open.
stepandspanboth default to 1; a declaration with nochrom, or afixedStepwith nostart, is an error rather than a guess. - Values must be pooled by chromosome, in order and without overlap, as
write_valueasks — whatsort -k1,1 -k2,2ngives. Input that is not raises, naming the line. Nothing is sorted or spooled, so a conversion of any size holds a megabyte of input and one open section. - Nothing on disk is a bigWig until the call returns, exactly as for a writer.
Convert BED to bigBed
gwseq_io.convert_to_bigbed(input_path, output_path, ...)
gwseq_io.convert_to_bigbed("peaks.bed.gz", "peaks.bigbed", genome="mm10")
Parameters:
input_pathPath to input BED file. May be gzipped.output_pathPath to output file.chr_sizesgenomeitems_per_slotcompression_levelprogressIdentical toconvert_to_bigwig.fieldsEntries keys and their types, as inopenin write mode. Taken from the standard BED columns —chrom,chromStart,chromEnd,name,score,strand,thickStart,thickEnd,itemRgb,blockCount,blockSizes,blockStarts, thenfield13and up — for however many columns the first record has, by default.
Returns a map as convert_to_bigwig does, with format always "bed".
Notes:
- Lines are split on tabs, a BED being tab-delimited and its
namecolumn being allowed to hold spaces. Every record must carry the same number of columns as the first one, a bigBed storing one shape of record. - A BED carries no column names of its own, so a file whose columns are named otherwise needs
fieldsto keep them. - Entries must be pooled by chromosome and in order of their start, but may overlap and nest freely, as
write_entryallows.
Convert SAM to BAM
Not implemented yet.
gwseq_io.convert_to_bam(input_path, output_path)
Parameters:
input_pathPath to input SAM file. May be gzipped.output_pathPath to output file.
Get genome chromosome sizes
gwseq_io.get_chr_sizes(genome, ...)
Parameters:
genomeGenome name (eg, "mm10").fullInclude unplaced chromosomes if true. Not by default.
Returns a map of chromosome IDs and their sizes, sorted by chromosome ID. Genomes that are not bundled, and any call with full, are fetched from api.genome.ucsc.edu and cached for the process lifetime.
Dev notes
Project layout
gwseq_io/
├── CMakeLists.txt # CMake build (nanobind module)
├── pyproject.toml # PEP 517 build config (scikit-build-core)
├── docs/ # Files formats specifications
└── src/
├── cpp/
│ ├── binding/ # nanobind bindings, one module per format
│ ├── genomes.cpp # Built-in genome chromosome sizes
│ ├── bbi/ # bigWig / bigBed reader, writer and text converters
│ ├── hic/ # HiC reader
│ ├── bam/ # BAM reader (header, BAI index, records)
│ └── util/ # C++17 utility library (see util/README.md)
└── gwseq_io/
└── __init__.py # Python package entry-point
Every module under src/cpp is a self-contained .cpp guarded by #pragma once and #included by binding/binding.cpp, so only binding/binding.cpp is compiled — see src/cpp/util/README.md.
binding/ holds one module per format — bbi.cpp, bam.cpp and hic.cpp, each registering its own types through a bind_*(m) function — plus util.cpp for the conversions they share and binding.cpp for the module itself, open() and the other free functions.
Build from source
| Dependency | Version | Notes |
|---|---|---|
| Python | ≥ 3.9 | with the development headers (Python.h) |
| C++ compiler | C++17 | clang / gcc / MSVC |
| CMake | ≥ 3.15 | pulled from PyPI by scikit-build-core if missing |
| Ninja | any | same, on non-MSVC platforms |
| git | any | needed to fetch zlib-ng, and curl or zlib when those have to be built |
| nanobind | ≥ 2.11 | installed automatically as a build requirement |
| scikit-build-core | ≥ 1.0 | same |
| curl | any | fetched and built from source if not found |
| zlib-ng | 2.2.2 | fetched and built from source; use zlib as fallback |
nanobind and scikit-build-core are resolved by pip from pyproject.toml, so they never need to be installed by hand, and CMake and Ninja are added the same way when the system does not already provide a suitable version. What has to come from the OS is the compiler toolchain, the Python headers, and — to avoid a from-source build of the dependencies — the curl and zlib development packages.
A curl built from source uses the platform's native TLS backend on Windows (Schannel) and macOS (Secure Transport), but OpenSSL on Linux, which is why the OpenSSL headers are listed in the Linux commands below.
Prerequisites — Windows
Install Visual Studio Build Tools 2019 or newer and tick the Desktop development with C++ workload — it brings MSVC, the Windows SDK, CMake and Ninja. Then install Python (the official installer ships the headers and libs) and Git for Windows.
With winget:
winget install Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"
winget install Python.Python.3.12
winget install Git.Git
Windows has no system curl or zlib to link against, so both are cloned and built on the first configure — expect a noticeably longer initial build. Run the build from a Developer Command Prompt (or Developer PowerShell) so that MSVC is on the path.
Prerequisites — macOS
The Command Line Tools provide clang, git, and the system curl and zlib:
xcode-select --install
That is enough on its own, since pip fetches CMake and Ninja. To use the system CMake and a Python other than the one shipped with macOS:
brew install cmake ninja python
Prerequisites — Linux
# Fedora / RHEL
sudo dnf install gcc-c++ cmake ninja-build git \
python3-devel libcurl-devel zlib-devel openssl-devel
# Debian / Ubuntu
sudo apt install build-essential cmake ninja-build git \
python3-dev python3-venv libcurl4-openssl-dev zlib1g-dev libssl-dev
# Arch
sudo pacman -S --needed base-devel cmake ninja git python curl zlib openssl
Arch ships headers with the runtime packages, so curl, zlib and openssl cover both.
Build
# 1. Create and activate a virtual environment (recommended)
python -m venv .env
source .env/bin/activate # Windows: .env\Scripts\activate
# 2. Build and install the package in editable mode, with the dev extras
pip install -e ".[dev]"
To build a wheel instead of installing in place:
pip install build
python -m build --wheel
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file gwseq_io-0.1.13.tar.gz.
File metadata
- Download URL: gwseq_io-0.1.13.tar.gz
- Upload date:
- Size: 261.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dee4d688845eb5122fa19c3f34f8631dac33b114c881ef93e5fb6246803a36c
|
|
| MD5 |
4f2fc528fc25f107c0dd8c3b20b73db8
|
|
| BLAKE2b-256 |
758e9902e85c5a25b86cb273566a9f9d5682912389267ac80f843ffa82f9ed71
|