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
# icaoberg - this example is fork that uses a bedtools in a Singularity container | |
CONTAINER=../../singularity-bedtools.simg | |
echo "chr1 10 50 10" > a.bed | |
echo "chr1 20 40 20" > b.bed | |
echo "chr1 30 33 30" > c.bed | |
# Find the sub-intervals shared and unique to each file. | |
if [ -f $CONTAINER ]; then | |
singularity run --app bedtools $CONTAINER multiinter -i a.bed b.bed c.bed | column -t |
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 | |
shopt -s nullglob | |
FILE=$1 | |
if [ -f $FILE ]; then | |
mv -v "$FILE" $(uuidgen).${FILE##*.} | |
fi |
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 | |
find . -name "*.pyc" -exec git rm {} \; | |
git commit -m "Removed compiled python files in distribution left after last commit" |
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 | |
# icaoberg yes, i know there are better cleaner ways... | |
task project:$1 list | grep tasks | cut -d" " -f 1 | sed '/^[[:space:]]*$/d' | awk '{$1=$1;print}' |
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
Bootstrap: docker | |
From: ubuntu:16.04 | |
IncludeCmd: yes | |
%labels | |
Maintainer icaoberg AT alumni DOT cmu DOT edu | |
Version v1.0 | |
%runscript |
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 | |
for F in *.webp | |
do | |
dwebp $F -o $F.png | |
done |
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/python3 | |
import math | |
import os | |
import random | |
import re | |
import sys | |
# Complete the rotLeft function below. | |
def rotLeft(a, d): |
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 | |
# Copyright (C) 2018-2019 Ivan Cao-Berg | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published | |
# by the Free Software Foundation; either version 2 of the License, | |
# or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
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
# Author: Michelle Mackie | |
# | |
# Copyright (C) Summer 2012 | |
# School of Computer Science | |
# Carnegie Mellon University | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published | |
# by the Free Software Foundation; either version 2 of the License, | |
# or (at your option) any later version. |
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 | |
# | |
#$ -j y | |
#$ -S /bin/bash | |
#$ -cwd | |
## the next line selects the partition/queue | |
#SBATCH -p short1 | |
## the next line selects the number of nodes |