Code Monkey home page Code Monkey logo

hca_scatac_processing's Introduction

HCA scATAC Processing Repository

Contact Caleb Lareau

Step 0

This workflow assumes a python3 environment with several dependency packages.

Further, we assume that samtools is in the environment.

Step 1

Debarcode raw reads. This step is technology specific.

Overall, the goal to to parse out the barcode for the technology and then append it to the start of the read name.

Some test data is provided

python 01_parse_scripts/jdb_sciATAC_parse_I1I2.py -a test/run1-testdata/test_R1.fastq.gz -b test/run1-testdata/test_R2.fastq.gz -i test/run1-testdata/test_I1.fastq.gz -j test/run1-testdata/test_I2.fastq.gz -o test/output/testrun1

Step 2/3

Align and rebarcode with your favoriate aligner. Also, add the barcode to a sam flag instead of the read header.

Run this for each of the split values, which you can do with a shell loop easily.

sh code/02_align_reannotate.sh testrun1-split001 test/output
# calls the 03_bamReannotate.py within the shell script

Step 4+

Merge all of the .bam files. Index the merged file. This will represent raw reads with the identified

One option will be to run it through bap, which is essential if there are bead merges to be made.

Note on bap: it will append the .bam basename to the barcode ID, so it's important to keep it relatively small yet informative for this final merged .bam e.g. (20181011-Run1.bam) will yield barcodes like (20181011-Run1_A204P220A107P123)

hca_scatac_processing's People

Watchers

James Cloos avatar Caleb Lareau avatar

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.