Coder Social home page Coder Social logo

lcdb-wf's Introduction

A streamlined version of LCDB workflows.

Guiding principles:

  • Most of the work is in wrappers. The lcdb-wrapper-tests repo is included as a submodule here.

  • In the previous lcdb-workflows, the idea was to have everything in a single config file. While great for end-users, it was too much overhead to write new functionality in the workflows and then add all the other infrastructure in order to expose that new functionality to the config file. Here, we allow configuration to happen within the Snakefile (mostly via params fields) and any config files remain lightweight.

  • This package/set of workflows should also remain lightweight. Anything used here should be familiar to anyone with Snakemake experience. There shouldn't be any fancy infrastructure. Complexity should live in wrappers which should in turn expose relatively simple APIs.

  • The references workflow should ideally be run once per site; other workflows can either point directly to the created files or can include: the workflow to trigger updates

  • Make heavy use of sampletables

  • Any generally-useful helper functions go in lcdblib. Come to think of it we may want to include that as submodule, too.

  • It is expected that a particular workflow will get substantially edited before actual use. Operating under the assumption that it's easier to delete than to create, each workflow will have "the works" and can be trimmed down according to the particular experiment's needs.

  • Workflows should have a patterns dict at the top that lays out, in one place, the output file patterns. Rules can optionally use values from this dict to define output patterns. Using the fill_patterns function, these patterns are "rendered" into a targets dictionary (basically a recursive expand()). Selected contents of the targets directory are then used for the all rule. This provides, all in one section of the Snakefile, a fair amount of customization options. Patterns can be commented out, or targets can be excluded from the all rule to fine-tune which rules will be run.

  • A side effect of the patterns and targets design is that aggregation rules become much easier to write. If all FastQC runs are under a fastqc key in targets, they can all be used as input to a rule using flatten(targets['fastqc']). This is in contrast to, say, writing input functions.

lcdb-wf's People

Contributors

daler avatar jfear avatar

Watchers

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