Coder Social home page Coder Social logo

ogene's Introduction

What is this?

This is a small program that karyotypically sorts a fasta file.

That is, say you have a fasta file with contigs in lexicographic order, for example, the first contig is 1 (or chr1) and the second is 10, then 11, and so forth; GATK and other tools may not be too happy about this. You can solve this by running this tool:

fasta-orderer unsorted-fasta.fa sorted-fasta.fa 

You'll likely have to wait a couple minutes (~1 minute for a 3GB fasta on my computer), as the entire fasta is loaded into memory. Sorry.

Now, the contigs will be in order from 1, 2, ..., 22, ..., X, Y, MT, ... and so forth.

And that's all there is to it.

Building

You'll need opam (probably a brew install opam away from you, at most), and then you'll need to do the following:

make deps
make

Installing these dependencies might take a few minutes; for that, your forgiveness is begged.

From here, you should be good to go.

Contributing

Contributions welcome; please see the Github issues page.

Testing

You'll need to opam testDeps, then run the tests with make all; make test.

ogene's People

Contributors

ihodes avatar

Stargazers

Alex Rubinsteyn avatar  avatar Seb Mondet avatar

Watchers

B. Arman Aksoy avatar Maxim Zaslavsky avatar Arun Ahuja avatar Tim O'Donnell avatar Seb Mondet avatar James Cloos avatar Jacki Buros Novik avatar Rohan Pai avatar Leonid Rozenberg avatar giancarlok avatar  avatar

ogene's Issues

Add tests

Needs to make sure we output the same fasta, just in a different order

Support alternate orderings

Should be able to sort in any specified order. Taking a .dict file would be a nice start. May as well support lexicographic ordering, too; you never know what'll get thrown at you.

Fix opam file

Something is not formatted correctly here: https://github.com/hammerlab/ogene/blob/master/opam/opam

             package: ogene
             version: 0.0.0
              pinned: git (d5f12b2d)
        upstream-url: https://github.com/hammerlab/ogene.git
       upstream-kind: git
            homepage: https://github.com/hammerlab/ogene
         bug-reports: https://github.com/hammerlab/ogene/issues
            dev-repo: [email protected]/hammerlab/ogene.git
              author: Isaac Hodes <[email protected]>
             license: Apache-2.0
   installed-version:
   available-version: 0.0.0
         description:

Not showing dependencies, and opam install isn't installing dependencies.

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.