Git Product home page Git Product logo

scrinvex's Introduction

Scrinvex Logo


Single Cell RNA Intron-Exon Counting

scrinvex counts intronic, exonic, and junction-spanning reads for each unique barcode encountered in the input bam. Each mapped read is checked against the input gtf to determine if the read lies entirely on introns, exons, or crosses at least one intron/exon junction. Reads with the same UMI are only checked against any given gene once. Subsequent reads with the same UMI will not be checked against any gene that the first read intersected.

Install scR-Invex

  • git clone --recursive [email protected]:getzlab/scrinvex.git
    • If you do not use --recursive you will be missing dependencies
    • Fix with git submodule update --init --recursive
  • make

Docker Image

scR-Invex is available via gcr.io/broad-cga-aarong-gtex/scrinvex

Usage

scrinvex {gtf} {bam} [-h] [-b {barcode file}] [-q {mapping quality}] [-o {output filename}] [-s [{summary filename}]]

GTF

scR-Invex requires that the input GTF be collapsed in such a way that each gene possesses only one transcript, and that there are no overlapping features on the same strand. You can collapse existing GTFs using the GTEx collapse annotation script

BAM

scR-Invex can read SAM, BAM, and, if the genome exists in your htscache, CRAM formats. The input sequence file does not need to be indexed, but scR-Invex requires that the file be sorted.

Barcodes

scR-Invex can read a barcodes.tsv file, which is produced by cellranger by default. The file should be a list of barcodes with one barcode on each line. Only reads with a barcode listed in the file will be considered.

Output Format

scrinvex produces 1 file, which defaults to {sample name}.scrinvex.tsv

This file contains 7 columns:

  • gene_id
  • barcode
  • Counts of intron, junction, or exon reads for that gene id - barcode combination, respectively
  • Counts of sense and antisense reads for that gene id - barcode combination, respectively

scrinvex's People

Contributors

agraubert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scrinvex's Issues

Error in Installation

Hello!

When I ran "make" in the git cloned path, an Error reported:
make
g++ -Wall -std=c++14 -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -I. -Irnaseqc -Irnaseqc/src -Irnaseqc/SeqLib -Irnaseqc/SeqLib/htslib/ -c -o src/scrinvex.o src/scrinvex.cpp
g++: error: unrecognized command line option โ€˜-std=c++14โ€™
make: *** [Makefile:24: src/scrinvex.o] Error 1

Would you please offer an advice of solving this problem? Thank you very much !!!

Unable to read gtf in scrinvex/src/scrinvex.cpp (Line 51)

Hi,
I am very interested in using your tool for our single-nuclei sequencing data. The following was done using your provided docker image (gcr.io/broad-cga-aarong-gtex/scrinvex). After executing:

gtf=/path/to/file.gtf
bam=/path/to/bam.bam
docker run gcr.io/broad-cga-aarong-gtex/scrinvex scrinvex $gtf $bam

I get the error:
Unable to open GTF file: /path/to/file.gtf

Note: The if condition in Line 51 of the C++ script returns False.

The path to the gtf is correct, permission rights are also not the problem here. The collapse_annotation.py ran through with my Ensembl gtf without any problems and looks like.

#!genome-build GRCh38.p5
#!genome-version GRCh38
#!genome-date 2013-12
#!genome-build-accession NCBI:GCA_000001405.20
#!genebuild-last-updated 2015-10
#!collapsed version generated by GTEx pipeline
1 havana gene 29554 31109 [...]
[....]

Any ideas here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.