Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| Tested on nginx version 1.1.9, ubuntu 12.04 | |
| -Command lines in order: | |
| sudo touch /etc/nginx/site-availables/geoserver.conf | |
| sudo vi /etc/nginx/site-availables/geoserver.conf | |
| sudo ln -s /etc/nginx/site-availables/geoserver.conf /etc/nginx/site-enabled/geoserver.conf | |
| sudo service nginx start | |
| Content of geoserver.conf | |
| server { |
| #!/bin/bash | |
| # Usage: deinterleave_fastq.sh < interleaved.fastq f.fastq r.fastq [compress] | |
| # | |
| # Deinterleaves a FASTQ file of paired reads into two FASTQ | |
| # files specified on the command line. Optionally GZip compresses the output | |
| # FASTQ files using pigz if the 3rd command line argument is the word "compress" | |
| # | |
| # Can deinterleave 100 million paired reads (200 million total | |
| # reads; a 43Gbyte file), in memory (/dev/shm), in 4m15s (255s) | |
| # |
| # Simple ggplot2 heatmap | |
| # with colorBrewer "spectral" palette | |
| doInstall <- TRUE # Change to FALSE if you don't want packages installed. | |
| toInstall <- c("ggplot2", "reshape2", "RColorBrewer") | |
| if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
| lapply(toInstall, library, character.only = TRUE) | |
| # Generate a random matrix | |
| # This can be any type of numeric matrix, |
| import multiprocessing | |
| import os | |
| import sys | |
| import time | |
| import Queue | |
| import threading | |
| from tkwindow import Report | |
| from watchdog import WatchDog | |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
SAM and BAM filtering one-liners
@author: David Fredman, [email protected] (sans poly-A tail)
@dependencies: http://sourceforge.net/projects/bamtools/ and http://samtools.sourceforge.net/
Please extend with additional/faster/better solutions via a pull request!
BWA mapping (using piping for minimal disk I/O)
| #### Temporal Interpolation #################################################### | |
| # Perform cell-wise linear interpolation between multiple raster layers, and | |
| # extrapolation beyond the upper limit of input data. Output is saved in .tif | |
| # format. | |
| # | |
| # Arguments | |
| # s: a rasterStack containing the time slices to be interpolated | |
| # | |
| # xin: a numeric vector that indicates the times associated with layers in s (in | |
| # the same order as the layers of s - see names(s)) |
This tutorial will explain how to setup and run an OpenVPN container with the help of Docker.
OpenVPN provides a way to create virtual private networks (VPNs) using TLS (evolution of SSL) encryption. OpenVPN protects the network traffic from eavesdropping and man-in-the-middle (MITM) attacks. The private network can be used to securely connect a device, such as a laptop or mobile phone running on an insecure WiFi network, to a remote server that then relays the traffic to the Internet. Private networks can also be used to securely connect devices to each other over the Internet.
Docker provides a way to encapsulate the OpenVPN server process and configuration data so that it is more easily managed. The Docker OpenVPN image is prebuilt and includes all of the necessary dependencies to run the server in a sane and stable environment. Scripts are included to significantly autom
| #!/usr/bin/env python3 | |
| """ | |
| Running this script is (intended to be) equivalent to running the following Snakefile: | |
| include: "pipeline.conf" # Should be an empty file | |
| shell.prefix("set -euo pipefail;") | |
| rule all: | |
| input: |
| # coding: utf-8 | |
| from __future__ import division, print_function, absolute_import, unicode_literals | |
| import os | |
| import sys | |
| import itertools | |
| import subprocess | |
| def main(): |