Singularity recipe for PACKAGE.
Copy the
SIF
file- and the
PACKAGE
script
to /opt/packages/PACKAGE/VERSION
.
#!/bin/bash | |
USERNAME=icaoberg | |
#to kill all the jobs | |
qstat -u$USERNAME | grep "$USERNAME" | cut -d"." -f1 | xargs qdel | |
#to kill all the running jobs | |
qstat -u$USERNAME | grep "R" | cut -d"." -f1 | xargs qdel |
import os | |
import asana | |
from pathlib import Path | |
from tqdm import tqdm | |
import pandas as pd | |
import warnings | |
warnings.filterwarnings("ignore") | |
# @icaoberg Read secrets. assumes file exists in ~/.ASANA_SECRETS |
#!/bin/bash | |
SUBSTRING='substring_to_remove' | |
for FILE in * | |
do | |
mv -v "$FILE" "${FILE/$SUBSTRING/}" | |
done |
alias sq='squeue -o "%.18i %.9P %.50j %.8u %.2t %.10M %.6D %R"' |
#this script extracts frames for all movies (.mov) in the current folder. | |
# one image per frame per second saved to disk | |
for MOVIE in *.mov | |
do | |
if [ -f "$MOVIE" ]; then | |
FILENAME="${MOVIE%.*}" | |
echo $FILENAME | |
if [ ! -d "$FILENAME" ]; then | |
mkdir "$FILENAME" |
#!/bin/bash | |
for FILE in * | |
do | |
if [ -f "$FILE" ];then | |
ID=`uuidgen` | |
EXTENSION=${FILE#*.} | |
mv -v "$FILE" "$ID"."$EXTENSION" | |
fi | |
done |
for F in *.mp3 | |
do | |
ALBUM='Room Service (Extended Version)' | |
ARTIST='Roxette' | |
SONG=$(basename $F .mp3 | cut -d'-' -f2-25 | xargs -0) | |
GENRE='Pop' | |
YEAR=2020 | |
mid3v2 -a "$ARTIST" -A "$ALBUM" -t "$SONG" -g $GENRE -y $YEAR $F | |
done |
function answer = cellorganizer( version ) | |
% Ivan E. Cao-Berg | |
% | |
% Copyright (C) 2014 Murphy Lab | |
% Lane Center for Computational Biology | |
% School of Computer Science | |
% Carnegie Mellon University | |
% | |
% This program is free software; you can redistribute it and/or modify |
Singularity recipe for PACKAGE.
Copy the
SIF
filePACKAGE
scriptto /opt/packages/PACKAGE/VERSION
.
Bootstrap: docker | |
From: debian:latest | |
%labels | |
AUTHOR icaoberg | |
MAINTAINER icaoberg@psc.edu | |
WEBSITE https://www.andrew.cmu.edu/~icaoberg | |
VERSION 0.5.0 | |
%post |