Skip to main content

Clongen: ClonMapper Reference Generator

Installation

pipx install clongen 
python3 <(curl -fsSL viv.dayl.in/viv.py) shim clongen

For one-time use consider using viv run to use an ephemeral venv, see below for an example.

NOTE: make sure to separate viv and clongen flags with --

python3 <(curl -fsSL viv.dayl.in/viv.py) run \
  clongen -- --lineages ./lineages.csv

Usage

To generate a clonmapper-compatible reference genome we first need to produce a fasta and gtf file of our expected lineages. This is where clongen comes in. The only input is a single csv that can come in one of two forms.

id,lineage
lineage1,ATGATCATGGTACCATAAGG
...

You may also provide a simpler version with only lineage sequences:

ATGATCATGGTACCATAAGG
...

The header is optional, however we will only attempt to match with id,lineage or lineage. Any other header will likely not be removed and assumed to be a lineage and id.

If the input list contains id's these will be used as the gene_name. Otherwise we will use the full lineage sequence proceeded by the prefix designated by prefix flag, by default "lin-".

Then we can generate clonmapper.gtf and clonmapper.fa by default in ./references:

clongen --lineages ./lineages.csv

Release files for clongen 2023.1001

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

Source distribution (sdist)

Source distribution for clongen 2023.1001
File Size Uploaded
clongen-2023.1001.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clongen 2023.1001
File Interpreter ABI Platform
clongen-2023.1001-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / clongen-2023.1001.tar.gz

Download URL clongen-2023.1001.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
99950685b9a7e4ec11dbb3d5f02177075fe78f714745c84e880bcc67325e5397
BLAKE2b-256 checksum
How to use checksums
a166158d7f2f231149a6fd90af5afc9c181e7384e24c1a09c51d53f12c4b3d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / clongen-2023.1001-py3-none-any.whl

Download URL clongen-2023.1001-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adbf6cd35ef9b64f66468af85e1d563282ccac45eeae756655f1c2707347b89e
BLAKE2b-256 checksum
How to use checksums
7407e77cb521aad161c9516a32f2258016952e64ca485ed3c70587b1dc53c39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2023.1001 This release

2 release files

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