Skip to main content

Cryptic Exon finder and splicing quantification

Project description

CryEx

(This repository is private for now)

A Python pipeline to identify Cryptix exons from RNA-Seq data. It uses Stringtie to assemble transcripts and identify cryptic exons. It then calculates the PSI of each cryptic exons

Instead of processing one bam file at the time, it takes as input a metadata file (FOFN) and can processes multiple bam files at once.

Installation

Download this repository then:

git clone https://github.com/giovanniquinones/CryEx
cd CryEx
pip install dist/CryEx-0.0.1-py3-none-any.whl
export PATH=/intallation/path:$PATH 

Dependencies

  • stringtie
  • multiprocess
  • numpy
  • pandas
  • pysam
  • subprocess

Usage

# check if installed successfully
CryEx_stringtie --help 

# identify cryptic and annotated exons
CryEx_stringtie -f ${FOFN.tsv} -o ${EXONS.GTF}


# calculate splice junction usage
CryEx_junctions -f ${FOFN.tsv} -o ${JXN.BED}


# calculate PSI
CryEx_psi_calculator -f ${FOFN.tsv} -e ${EXONS.GTF} -j ${JXN.BED.GZ} -o {PSI.TSV} 


# calculate diffential splicing
CryEx_diff -f ${FOFN.tsv} -p {PSI.TSV} -o {DIFF.tsv}

Input

FOFN should be tab separated and have the following columns: For differential splicing, Cryex will use the 'GROUP' column

SAMPLE	BAM	STAR_SJ_OUT	GROUP
sample1    /path/to/sample1.bam	/path/to/sample1.SJ.out.tab	KD
sample2    /path/to/sample2.bam	/path/to/sample2.SJ.out.tab	KD
sample3    /path/to/sample3.bam	/path/to/sample3.SJ.out.tab	CTRL
sample4	   /path/to/sample4.bam /path/to/sample4.SJ.out.tab     CTRL

Output

exon_type       chrom   exon_3ss    exon_5ss    strand  inclusion_n     exc_5ss exc_3ss exclusion_n SAMPLE  PSI
first_exon      chr21   9907191     9907492     -       97              9896772 9966321 1           r2      0.96
first_exon      chr21   9907191     9907492     -       67              9896772 9966321 0           r3      1.0
first_exon      chr21   9907191     9907492     -       99              9896772 9966321 0           r4      1.0
first_exon      chr21   9907191     9907492     -       97              9896772 9966321 3           r2      0.92
first_exon      chr21   9907191     9907492     -       67              9896772 9966321 0           r3      1.0
first_exon      chr21   9907191     9907492     -       99              9896772 9966321 0           r4      1.0

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

cryex_v2-2.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

cryex_v2-2.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file cryex_v2-2.0.1.tar.gz.

File metadata

  • Download URL: cryex_v2-2.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for cryex_v2-2.0.1.tar.gz
Algorithm Hash digest
SHA256 23e7964cf9b41d240cf1bbd4558047bf2a9cbbece16c69148a8d52370af36d1e
MD5 82386966c69adf218ec91f882f3eacbc
BLAKE2b-256 27f0a7f85ff0de5be1850f213861c348d941dfdf0123ca997c31333e3919488e

See more details on using hashes here.

File details

Details for the file cryex_v2-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: cryex_v2-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for cryex_v2-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 005e5e6ba18d9b239ef84236529ac46cfd98b977262f80cc3840d8fc360cdf30
MD5 f76dbd905e559eefe39c1cb3ce7a980c
BLAKE2b-256 13dafc5b1ae3049bc453164f08ee50aae4f9aa8e4a4a5ab171da861e78ad1880

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