Skip to main content

No project description provided

Reason this release was yanked:

wrong usage

Project description

SNAPPER Install Github All Releases GPLv3 License

Introduction

SNAPPER is a method designed to adjust introns in spliced alignments to best match their reference transcriptomic positions. Aligners such as minimap2 are built to only consider guide annotations on the genome to which sequences are being aligned to. However, in case of transcript alignments where sequences have often been extracted from the reference genome using an annotation, there is an additional unitilized prior in the form of reference exon boundaries in the sequences themselves. it is only logical to use this prior information to guide the alignment, alas such functionality is not present in most aligners. To circumvent this issue, SNAPPER was developed to adjust the intron positions in the alignment to best match the reference transcriptomic positions. The method reconstructs the alignment DP matrix, augments it with weights for reference intron positions and performs a traceback penalizing mismatches with respect to the original alignment and prioritizing intron positions from the reference annotation. The result is a more consistent alignment especially when it comes to alignment between poorly conserved genomes.

Publications

Coming…

Documentation

Installation

PyPi

By far the easiest way to install SNAPPER is by using PyPi.

$ pip install snapper-av
$ snapper --help

To uninstall SNAPPER, simply run:

$ pip uninstall snapper-av

Building from source

If you want to build it from source, we recommend cloning the git repository as shown below.

$ git clone https://github.com/alevar/snapper.git --recursive
$ cd snapper
$ pip install -r requirements.txt
$ pip install .
Requirements

Language support

Python ≥ 3.6

Getting started

Usage

vira [-h] -s SAM -r REFERENCE [-o OUTPUT] [--qry_intron_match_score QRY_INTRON_MATCH_SCORE]
     [--trg_pos_match_score TRG_POS_MATCH_SCORE] [--trg_pos_mismatch_score TRG_POS_MISMATCH_SCORE]

Options

-s, --sam

Path to the SAM/BAM alignment file. Read names in the alignment are expected to match corresponding transcript_id in the reference annotation.

-r, --reference

Path to the reference annotation. transcript_id field is expected to match read names in the sam alignment.

-o, --output

Path to the output SAM/BAM file.

--qry_intron_match_score

Score for matching query introns.

--trg_pos_match_score

Score for matching target positions.

--trg_pos_mismatch_score

Score for mismatching target positions.

Help Options

-h, --help

Prints help message.

Data

Sample datasets are provided in the “example” directory to test and get familiar with SNAPPER. The included examples can be run with the following base commands from the root directory of the repository:

  1. snapper –sam example/example.gtf –reference example/example.gtf –output example/output.sam

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapper_av-1.0.0.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapper_av-1.0.0-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file snapper_av-1.0.0.tar.gz.

File metadata

  • Download URL: snapper_av-1.0.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for snapper_av-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f4d11302d78d4a5c2b3283ffeff0b6b811f1a9adb4bc4e162e216a3b5c1fc629
MD5 deb1fc67b8b20447c379c9d158fc001a
BLAKE2b-256 9b3b0dfebcb97b4ed74b2cfb8102b33f614e83e0615b0fe7a7dc6cb10ba99e18

See more details on using hashes here.

File details

Details for the file snapper_av-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: snapper_av-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for snapper_av-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa3a1c0ac9c453f22a7d4fd071feefd2aea9882aa3df0d6a45eaa94683305aa8
MD5 94ed4488201ea347f3dd2586e187dcf7
BLAKE2b-256 ae4a60925c14e2719c88eb05de0a5bcdbf09f667297d6c670e646b460c82d3a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page