GithubHelp home page GithubHelp logo

vdbwrair / bactpipeline Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 58.42 MB

Bacteria Pipeline modified from MRSN Bacteria Pipeline

License: GNU General Public License v2.0

Python 19.33% Perl 1.65% Makefile 0.31% C 78.71%

bactpipeline's Introduction

Build Status Coverage Documentation Status

bactpipeline

Bacteria Pipeline that utilizes flash, btrim and Newbler(gsAssembler)

Copyright and License

This project is licensed under the GPLv2.

You can view the license here and the copyright here

bactpipeline's People

Contributors

averagehat avatar necrolyte2 avatar

Watchers

 avatar  avatar  avatar

bactpipeline's Issues

Master summary

Need a way to concat all individual project summary csv files as well as contig files

Make project public

  • Make newbler external dependency
  • Add license(flash is GNU, btrim has no license?)
  • add sphinx RTD
  • add travis

more descriptive args in docstrings

Just a note that a contracts-compatible alternative to the :type tag is the :param tag which can incude a doc of the arg as well.

@contract
def write_summary(data, outfile, delim='\t'): # data is 2d list
    ''' write data as a csv/tsv file to outfile.
    :type data:    Iterable
  etc."""

could be written as:

@contract
def write_summary(data, outfile, delim='\t'): # data is 2d list
    ''' write data as a csv/tsv file to outfile.
    :param   Iterable data: some docs
    :param str,!exists outfile: more docs ..
    etc '''

runsample -s samplesheet docs

Right now analysis.rst is broken down by Running single sample but the running sample sheet docs need to be a heading on their own

Make Contract messages more user-friendly

e.g.

contracts.interface.ContractNotRespected: Breach for argument 'outdir' to run_sample_sheet().
Shouldn't have satisfied the clause exists.
checking: !exists for value: Instance of <type 'str'>: './'
checking: str,!exists for value: Instance of <type 'str'>: './'
Variables bound in inner context:

Could become

contracts.interface.ContractNotRespected: Breach for argument 'outdir' to run_sample_sheet().
=====================
ERROR:  blah blah blah
======================
checking: !exists for value: Instance of <type 'str'>: './'
checking: str,!exists for value: Instance of <type 'str'>: './'
Variables bound in inner context:

Do this by raising a ValueError rather than returning false. Example:

def fails(x):
    raise ValueError("="*9 + "\nERROR: blah blah blah, do xyz\n" + "="*9)
contracts.new_contract("failit", fails)
contracts.decorate(lambda x: x, x="failit")(1)

I would just wrap our current boolean-returning functions

def wrap_validation(func, message):
   def ret_func(arg):
      if not func(arg): 
         raise ValueError(message)
   return ret_func

contracts.new_contract("is_truthy", wrap_validation(lambda x: bool(x), "Not truthy, use truthy input"))

change setup?

My changes require BioPython so the setup file could change and the modules file at VDBWRAIR should change

Summary report

comma or tab separated

sample_id,contig_num,num_reads,%total_reads,N50

primer trimming

Supply primer fasta file that will trim primers

I believe newbler supports supplying primer fasta file to be used to trim

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.