Coder Social home page Coder Social logo

rodan's Introduction

RODAN

A fully convolutional architecture for basecalling nanopore RNA sequencing data

Published in BMC Bioinformatics

Generated Taiyaki RNA data: https://doi.org/10.5281/zenodo.4556884

RNA training and validation data: https://doi.org/10.5281/zenodo.4556950

RNA test data: https://doi.org/10.5281/zenodo.4557004

Requirements

  • Python 3
  • torch >= 1.4.0 <= 1.8.0
  • numpy
  • h5py
  • ont-fast5-api
  • fast-ctc-decode
  • pyyaml
  • tensorboard
  • pytorch-ranger (only for training)

Installation

Create a python virtual environment.

python3 -m venv virtualenv
source virtualenv/bin/activate
git clone https://github.com/biodlab/RODAN.git
cd RODAN
pip install -r requirements.txt

Basecalling

To basecall (must be run from root directory):

./basecall.py /path/to/fast5files > outfile.fasta

Basecall will recursively search in the specified directory for all fast5 files which can be single or multi fast5 files.

Training

To train, download the RNA training data from the above link.

mkdir runs
pip install pytorch-ranger
./model.py -c rna.config -n NAME -l

Parameters

-c for configuration file
-l for label smoothing
-n the name for the run, the model weights, configuration, and results will be saved in the runs directory
-v verbose

Test data

Five samples of human RNA fast5 data is provided in test-data.tgz.

Memory errors

If you run out of memory, reduce the batch size with the basecaller with "-b 100" or lower. The default is 200.

License

MIT License.

rodan's People

Contributors

biodlab 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.