In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
| #!/usr/bin/python | |
| import sys | |
| ''' | |
| Just a simple tool that adds the line number at | |
| the end of each line | |
| ''' | |
| with open(sys.argv[1]) as f_in, open(sys.argv[2], 'w') as f_out: |
NCBI blastp seems to have a bug where it reports different top hits when -max_target_seqs is changed. This is a serious problem because the first 20 hits (for example) should be the same whether -max_target_seqs 100 or -max_target_seqs 500 is used.
The bug is reproducible on the command line when searching NCBI's nr blast database (dated 25-Nov-2015) using NCBI 2.2.28+, 2.2.30+ and 2.2.31+.
At first I thought it was something to do with my local exe/blastdb, but the same problem is also apparent on the NCBI blastp web interface (as of 30-Nov-2015)
| library(twitteR) | |
| library(rlist) | |
| library(pipeR) | |
| library(stringi) | |
| # Authenticate with twitter | |
| # consumer/access keys and secrets for the twitter API must be defined elsewhere | |
| setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret) | |
| # Get all my followers and followees |
| # coding: utf-8 | |
| from __future__ import division, print_function, absolute_import, unicode_literals | |
| import os | |
| import sys | |
| import itertools | |
| import subprocess | |
| def main(): |
| #!/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: |
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
| #### 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)) |
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)
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):