Skip to main content

cruise-toolkit

cruise-toolkit is a unified Python toolkit that integrates barcode splitting, CB/UMI correction, counting, and CR/UR alignment steps commonly used in single-cell and spatial transcriptomics pipelines.

It provides a single command-line entry point — cruise-toolkit — wrapping your original cruise.py workflow script, while preserving argument compatibility.


🔧 Installation

From source (development mode):

git clone https://github.com/dawangran/cruise-toolkit.git
cd cruise-toolkit
pip install -e .

In the future, installation from PyPI will be supported:

pip install cruise-toolkit

🚀 Quick Start

Run the main workflow (arguments are fully compatible with your original cruise.py script):

cruise-toolkit \
  --bam input.bam \
  --fastqs fq1.fastq.gz,fq2.fastq.gz \
  --valid-cell valid.cell.tsv \
  --adapt ATGCGCGATAACCTC \
  --model BBBBBBBBBBATGBBBBBBBBBBATGUUUUUUUUUUTTTT \
  --threads 16 \
  --cb-tags CC,CB \
  --umi-tag UB \
  --outdir cruise_out

🖥️ CLI Usage

Show help:

cruise-toolkit -h
cruise-toolkit --help

This will display the native arguments of cruise.py, including --bam, --fastqs, --adapt, --model, --cb-tags, --umi-tag, etc.

Global options (apply to all runs):

  • --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
    Set global logging level (default: INFO)
  • --log-file run.log
    Save logs to file
  • --version
    Show version

Example:

cruise-toolkit --log-level DEBUG --log-file run.log \
  --bam input.bam --fastqs fq1.fq.gz,fq2.fq.gz --outdir cruise_out

📜 Common Arguments

Argument Description
--bam Input BAM file
--fastqs Comma-separated list of FASTQ files
--valid-cell File with valid cell barcodes
--adapt Adapter sequence
--model CB/UMI model string
--threads Number of threads
--cb-tags Cell barcode tags (e.g., CC,CB)
--umi-tag UMI tag (e.g., UB)
--outdir Output directory
--keep-sample-tmp / --no-keep-sample-tmp Whether to keep intermediate files

All argument definitions remain identical to the original cruise.py.
Use cruise-toolkit --help to view the full parameter list.


📝 Logging System

All runs can be configured with global logging options:

cruise-toolkit --log-level INFO --log-file pipeline.log \
  --bam input.bam --fastqs fq1.fq.gz,fq2.fq.gz ...

Logs are printed to stderr and optionally written to a file.


🧪 Development & Testing

# Install dev dependencies
pip install -e .[dev]

# Run tests
pytest -q

👤 Author

  • Dawn

📄 License

MIT License

Metadata

Release files for cruise-toolkit 1.0.0

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

Source distribution (sdist)

Source distribution for cruise-toolkit 1.0.0
File Size Uploaded Provenance
cruise_toolkit-1.0.0.tar.gz 36.8 kB Without provenance Details

Release files / cruise_toolkit-1.0.0.tar.gz

Download URL cruise_toolkit-1.0.0.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47a8674e32915c3a84d503481fcea760bbeebeffb495c8c26b36f0b0e22a85d6
BLAKE2b-256 checksum
How to use checksums
756e0f5c84ee614b79c43043b718d67ebe2ccedace850f826ad57cfddd34918f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.9

Security for cruise-toolkit 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No 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