Newmap
A manuscript discussing this software by Eric Roberts, and Michael M Hoffman is in preparation. A preprint of the paper with an updated citation will be updated here when available.
Introduction
Newmap is a software package that efficiently identifies uniquely mappable regions of any genome. It accomplishes this task by outputting read lengths at every position that are unique to that genome. From the range of unique read lengths produced, the single-read mappability and the multi-read mappability for a specific read length can be generated.
Newmap can search for unique k-mer/read lengths on specific values, or entire continuous ranges using a binary search method allowing for finding the minimum possible unique k-mer/read length.
Prerequisites
Newmap requires a CPU that supports the AVX2 instruction set.
Newmap requires Python 3.9 or later. It also requires numpy and the AvxWindowFMIndex library both of which are installed automatically when using the methods below.
Currently only Linux is supported, but it may be possible to build and run on other operating systems. Notably a compiler with OpenMP support is required for parallel processing. See the documentation for more details on building from source.
Documentation
The latest documentation for Newmap is available on Read the Docs.
All commands have a --help option to provide additional usage information.
Quick start
Installation
Python Package Index (PyPI)
pip install newmap
Bioconda
conda install bioconda::newmap
Usage
0. (Optional) Follow along with an example test genome
You can download a test genome from the Newmap repository to follow along with the usage example below.
curl -sL https://raw.githubusercontent.com/hoffmangroup/newmap/refs/heads/master/tests/data/genome.fa > genome.fa
To speed up creating the index in the following step, it is recommended to use
options --seed-length=1 and --compression-ratio=1 specifically for the very
small test genome. Otherwise it would be recommended to use the default values.
1. Create an index for a genome
newmap index genome.fa
By default this will create a genome.awfmi file in the current directory.
2. Find the minimum unique k-mer lengths for the genome using the index
Searching the entire genome, using 20 threads, printing status information, and searching lengths ranging from 20 to 200 bp:
newmap search --verbose --num-threads=20 --search-range=20:200 --output-directory=unique_lengths genome.fa
This will create *.unique.uint8 files (one for each sequence ID) in the unique_lengths directory.
3. Convert the unique lengths to mappability tracks
To output single-read and multi-read mappability for a 24 bp read length:
newmap track --single-read=24.bed --multi-read=24.wig 24 unique_lengths/*.unique.uint8
For both single-read and multi-read mappability, this will generate a single
file that contains the mappability for all sequences listed in the
unique_lengths directory.
The resulting BED file will be the single read mappability, and the WIG file
will be the multi-read mappability.
Precomputed unique lengths for common genomes (<=8 bp to 65535 bp)
For the common genomes below, you may wish to download the precomputed minimum unique lengths. From these precomputed lengths, you can calculate mappability tracks for a specific read length within the range of 8bp to 65535 bp using "newmap track". This option skips the necessary "index" and "search" steps above.
| Organism | Genome / Assembly | Unique lengths |
|---|---|---|
| Human | T2T-CHM13v2 | Download |
| Human | GRCh38 (no alternative loci scaffolds analysis set) | Download |
Bisulfite mappability
For detailed instructions on how to produce bisulfite mappability tracks, see the documentation.
Credits
Newmap is a reimplementation of the output of Umap. Umap was developed by Mehran Karimzadeh. The repository for that implmemention is found at https://www.github.com/hoffmangroup/umap. Umap in turn was originally developed by Anshul Kundaje and was written in MATLAB. The original repository is available https://sites.google.com/site/anshulkundaje/projects/mappability.
This project uses the excellent AvxWindowFMIndex library. Read their published article here (https://doi.org/10.1186/s13015-021-00204-6)
Metadata
Release files for newmap 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newmap-0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for newmap-0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
Release files / newmap-0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | newmap-0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 173.1 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
63ffe9050797d584142155086ae8ac2ca4823064c9f1b3bbb1f1f6b7ae4d3db2
|
|
BLAKE2b-256 checksum How to use checksums |
1a0d02eb11435baefbc55009e11a44075f712ecf2756afc5436f2b0b2873d3c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for newmap 0.3
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for newmap-0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA 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.