Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
/ metasort Public archive

A Digital Health Hack Weekend Project using OneCodex API. Filter reads based on taxonomy assignment from OneCodex.

License

Notifications You must be signed in to change notification settings

Phelimb/metasort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Metasort

A Digital Health Hack Weekend Project using One Codex API.

Filter reads based on taxonomy assignment from One Codex.

Upload a Fast(a/q) file and download individual files sorted by species.

## CLI

set your One Codex API key

export ONE_CODEX_API_KEY=f8xxxxxxxxxxx78

source venv/bin/activate
pip install metasort

metasort seq.fq /path/to/outdir

example output:

wc -l /path/to/outdir/*.fq | sort -n -k1 | tail
    19648 /path/to/outdir/Cellular organisms.fq
    30016 /path/to/outdir/Staphylococcus aureus subsp. aureus.fq
    81680 /path/to/outdir/Bacteria.fq
   126364 /path/to/outdir/Staphylococcus epidermidis.fq
   398684 /path/to/outdir/Staphylococcus.fq
  2030880 /path/to/outdir/Firmicutes.fq
  3195432 /path/to/outdir/Staphylococcus aureus.fq


## Web

Usage:

    pip install -r requirements
    python webapp.py

Live demo here:

[https://genome-sort.herokuapp.com/](https://genome-sort.herokuapp.com/)

About

A Digital Health Hack Weekend Project using OneCodex API. Filter reads based on taxonomy assignment from OneCodex.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published