This file contains 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 | |
set -e | |
set -u | |
set -o pipefail | |
# Define the usage message | |
function usage() { | |
echo -e "\ | |
Usage: ./fakeHeader.sh <option> <file> \n\ |
This file contains 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 | |
set -e | |
set -u | |
set -o pipefail | |
# A simple script to find files listed in a text file and copy them elsewhere | |
# Written for Chaochih Liu | |
# Written by Paul Hoffman |
This file contains 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Byte code # |
This file contains 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 | |
import sys | |
try: | |
import argparse | |
except ImportError: | |
sys.exit("Failed to import the argparse library. Please install for Python 2.6 or use Python 2.7 or higher") | |
Arguments = argparse.ArgumentParser(add_help=True) | |
Arguments.add_argument('-f', |
This file contains 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 | |
set -e | |
set -o pipefail | |
# Extract regions from a BAM file | |
# Make sure SAMTools is installed | |
if ! `command -v samtools > /dev/null 2> /dev/null` | |
then |
This file contains 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 | |
# A script to get the basename of a file in Python | |
# Import modules from the standard Python library | |
import sys | |
import os | |
try: | |
import argparse | |
except ImportError: |
This file contains 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 | |
set -eo pipefail | |
read -p "Choose settings to link: " -a SETTINGS | |
declare -a SETTINGS=($(echo ${SETTINGS[@]} | tr -d '[:space:]' | grep -o . | sort -u | tr '\n' ' ')) | |
declare -a SETTINGS=($(echo ${SETTINGS[@]} | tr '[:upper:]' '[:lower:]')) | |
for setting in ${SETTINGS[@]}; do |
This file contains 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 | |
# bootstrap | |
# A function to bootstrap some data | |
bootstrap <- function(tmp.data) { | |
boot.rep <- sample(x = tmp.data, replace = T) | |
return(mean(boot.rep)) | |
} | |
# push |
This file contains 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
#!/binb/bash | |
# Pomp and Circumstance | |
say -v Good oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | |
# In the Hall of the Mountain King |
This file contains 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 | |
set -e | |
set -u | |
set -o pipefail | |
# A simple script to calculate coverage depth | |
# from the text files from BEDTools coverage | |
function Usage() { # Display a usage message and exit |
OlderNewer