Skip to main content

gnk_fastasort

A package to create a preferred order of a FASTA scaffolds, useful for PretextSnapshot and SAMTOOLS reordering.

This will reorganise a fasta file into groupings, based on chromosome naming. So unlocs of SUPER_1 will be re-ordered alongside it in size order. Other unlocs will be arranged in size order, after everything else.

Installation

git clone https://github.com/sanger-tol/gnk_fastasort.git

cd gnk_fastasort

pip install ./

fastasort -h

Usage

This script can be used in two ways, both however rely on the underlying naming of the fasta being SUPER_* style. In neither case is a fasta file required, it is designed to work in conjunction with SAMTOOLS faidx which will can re-organise a fasta given a tsv file of names. This tool emits a tsv of names, original naming, parent molecule and length or just names.

For example, a fasta fai file where scaffolds are named SUPER_* or a GCA accessioned fasta which was originally named SUPER_* (this is visible from the sequence report on ncbi.).

For genomes stored on NCBI and are accessioned. You can use the --gca_accession to call the API and download a sequence report.

fastasort --gca_accession GCA_964017025.1

For local fasta names where headers are SUPER_1, SUPER_2, SUPER_2_unloc_1 e.g. SUPER_* style, you can run:

fastasort --index {ASSEMBLY}.fa.fai

Metadata

Release files for gnk-fastasort 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gnk-fastasort 0.1.2
File Size Uploaded Provenance Actions
gnk_fastasort-0.1.2.tar.gz 9.6 kB With provenance Details for gnk_fastasort-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gnk-fastasort 0.1.2
File Interpreter ABI Platform Actions
gnk_fastasort-0.1.2-py3-none-any.whl Python 3 none any Details for gnk_fastasort-0.1.2-py3-none-any.whl

Total release size: 21.2 kB

Release files / gnk_fastasort-0.1.2.tar.gz

Download URL gnk_fastasort-0.1.2.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c73fdd7add9cd8e4167e1befa3a59ba47d58f56a30b7fb734956737d549a688d
BLAKE2b-256 checksum
How to use checksums
e4d356105f5897a16d29709c498cf9e33dd9e80b02bdff32c84240710e3ff154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 18, 2026.

Transparency log

Release files / gnk_fastasort-0.1.2-py3-none-any.whl

Download URL gnk_fastasort-0.1.2-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0579ba6d2d042420f2cda3cffe43ec35c30b4ee49fa838a9add1c67b4411d3d0
BLAKE2b-256 checksum
How to use checksums
1d84fe3f06e5ef06c48a3f773b92ff74af14485d4c14253906b36b14ccab9723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 18, 2026.

Transparency log

Security for gnk-fastasort 0.1.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gnk_fastasort-0.1.2.tar.gz

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 Mar 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page