Code Monkey home page Code Monkey logo

idba-to-gfa's Introduction

IDBA to GFA

This is a simple tool for converting IDBA assemblies into GFA graphs. This allows the graphs to be loaded into Bandage or anything else which accepts GFA files.

It was made my myself and Matt Olm.

Requirements

It's just a single Python 3 script, so no installation is required. It uses the print_graph tool (which is built along with IDBA), so that must be installed on the same computer.

Usage

usage: idba_to_gfa.py [-h] [--print_graph PRINT_GRAPH] idba_assembly kmer

IDBA to GFA: a tool for converting IDBA assemblies to GFA graphs

positional arguments:
  idba_assembly         Assembly from IDBA, e.g. scaffold.fa
  kmer                  assembly k-mer size (e.g. 100)

optional arguments:
  -h, --help            show this help message and exit
  --print_graph PRINT_GRAPH
                        Location of IDBA's print_graph tool (required if
                        print_graph is not in PATH)

output: GFA to stdout

Example commands

Build a 100-mer graph from IDBA scaffolds:
idba_to_gfa.py scaffold.fa 100 > scaffold_100.gfa

Build an 80-mer graph from IDBA contigs:
idba_to_gfa.py contig.fa 80 > contig_80.gfa

Give the location of print_graph (necessary if it's not in PATH):
idba_to_gfa.py --print_graph /path/to/idba-1.1.3/bin/print_graph scaffold.fa 100 > scaffold_100.gfa

License

GNU General Public License, version 3

idba-to-gfa's People

Contributors

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