This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string.h> | |
| #include <cstring> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <gzstream.h> | |
| #include <sstream> | |
| using namespace std; | |
| //get the id hash table and | |
| //iterate over the fastq file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env Rscript | |
| source("http://bioconductor.org/biocLite.R") | |
| packages <- c('data.table','readr', | |
| 'dplyr','plyr', | |
| 'ggplot2','cowplot', | |
| 'caret','RMySQL', | |
| 'tidyr','stringr', | |
| 'pheatmap','Rcpp') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # change prefix | |
| unbind-key C-b | |
| set -g prefix C-a | |
| bind-key C-a send-prefix | |
| #set -g default-terminal "xterm" | |
| #set-window-option -g xterm-keys on | |
| #set-option -g renumber-windows on | |
| #power line | |
| run-shell "powerline-daemon -q" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| import commands | |
| import glob | |
| import time | |
| import os | |
| import sys | |
| maxJobLim = 46 | |
| joblist = glob.glob('./job_*.sge') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| import fileinput | |
| #==============================set parameter=================== | |
| time='1:30:00' | |
| allocation = '{Allocation-name}' | |
| projectPrerfix = '{name for the job}' | |
| commandPerJob = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/snv Rscript | |
| installPackages <- function(package){ | |
| if(package %in% rownames(installed.packages()) == FALSE) | |
| { | |
| message('Installing ',package) | |
| install.packages(package, dependencies=TRUE) | |
| }else{ | |
| message(package,' is installed') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| from multiprocessing import Pool, Manager | |
| import numpy as np | |
| def tryFunc(i, j,results): | |
| results.append(i*j) | |
| def main(): | |
| a = 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/usr/bin/env python | |
| from Bio import SeqIO | |
| import sys | |
| def guessFileType(filename): | |
| if filename.endswith('fasta') or filename.endswith('fa'): | |
| fileType = 'fasta' | |
| elif filename.endswith('fastq') or filename.endswith('fq'): | |
| fileType = 'fastq' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $INSTALLPATH/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| INSTALLPATH=$(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mapQuality": ">10", | |
| "isMapped" : "true", | |
| "isMateMapped": "true", | |
| "isPrimaryAlignment": "true", | |
| "isProperPair": "true" | |
| } |