Giter Site home page Giter Site logo

fega-sweden-helpdesk-generate-files's Introduction

Workflow for generating FASTQ files

Snakemake workflow to generate artificial files in FASTQ format for testing purposes. This workflow ensures that the files not only are given unique filenames, but also that the sequence identifiers within the files are unique (the generated files will thus have different checksums).

By providing a prefix to the filenames and sequence identifiers, you can ensure that files differ between runs. The workflow will use a timestamp as prefix by default. By default, the workflow will generate 4 files.

Prerequisites

  • Python 3
  • Snakemake

Usage

For running the workflow on a single core with default settings:

snakemake -c 1

Output files will be stored in a folder named output/.

To generate let say 20 files, you could enter the following command:

snakemake -c 1 --config numFiles=20

A timestamp will be prefixed to the resulting file names and sequence identifiers by default. If you wishm you can provide a custom prefix instead:

snakemake -c 1 --config prefix="submission1_" numFiles=20

Post processing

If you want to compress each file separately, you can run the following command inside the output/ folder:

find . -type f -execdir tar -zcvf '{}.tar.gz' '{}' \;

fega-sweden-helpdesk-generate-files's People

Contributors

jmenglund avatar

Watchers

Joel Hedlund avatar  avatar Jonas Hagberg avatar  avatar Niclas Jareborg avatar Andreas Kähäri avatar  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.