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 | |
set -e | |
set -u | |
set -o pipefail | |
if ! `command -v fastq-dump > /dev/null 2> /dev/null` | |
then | |
echo "Can't find fastq-dump!" | |
exit 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/bash | |
set -e | |
set -u | |
set -o pipefail | |
# A script to subsample Fasta/FastQ files using Seqtk | |
if ! `command -v seqtk > /dev/null 2> /dev/null` | |
then | |
echo "Failed to find seqtk!" |
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 | |
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 |
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
#!/binb/bash | |
# Pomp and Circumstance | |
say -v Good oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo \ | |
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | |
# In the Hall of the Mountain King |
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 | |
# 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 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 | |
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 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 | |
# 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 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 | |
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 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 | |
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 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Byte code # |