Skip to content

Instantly share code, notes, and snippets.

View icaoberg's full-sized avatar

icaoberg icaoberg

View GitHub Profile
@icaoberg
icaoberg / script.sh
Created February 21, 2014 00:06
[CellOrganizer] demo3D12 generic test skeleton
echo "help demo3D12;
TRAIN = false;
SYNTHESIS = false;
POSTPROCESSING = true;
option = 1;
patterns = {'LAM','Nuc','Mit','TfR'};
model_filenames = {'./lam.mat', './nuc.mat', './mit.mat', './tfr.mat'};
downsampling_scale = 5;
@icaoberg
icaoberg / script.sh
Created March 7, 2014 22:52
Script for running nosetest for python-javabridge using virtualenv in Jenkins #nosetests #bioformats #macosx #ubuntu
$VIRTUALENV virtual_environment
. virtual_environment/bin/activate
pip install cython
pip install --allow-all-external pyrex
pip install numpy
pip install nose
python setup.py build_ext --inplace
@icaoberg
icaoberg / script.sh
Last active August 29, 2015 13:58
cellorganizer-demo3D12-lamp2-framework-downsampling8 Jenkins script
#!/bin/bash
#
#$ -j y
#$ -S /bin/bash
#$ -cwd
#PBS -q model1
#PBS -M icaoberg@andrew.cmu.edu
cd $PBS_O_WORKDIR
@icaoberg
icaoberg / list_nodes_by_name.sh
Created May 12, 2014 16:24
[PBS] List Nodes by Name #cluster
#!/bin/bash
pbsnodes | grep -R "compute" | cut -d"=" -f1 | grep -R "compute"
@icaoberg
icaoberg / list_nodes_by_queue.sh
Created May 12, 2014 16:49
[PBS] List nodes by queue name #cluster
#!/bin/bash
#TODO make it faster
if [ $# -eq 0 ]
then
for NODE in `pbsnodes | grep -R "compute" | cut -d"=" -f1 | grep -R "compute"`
do
QUEUE=`pbsnodes $NODE | grep "properties" | cut -d"=" -f2`
echo $NODE $QUEUE
@icaoberg
icaoberg / pyslic.sh
Last active August 29, 2015 14:05
Create virtual environment for calculating features on fluorescence microscopy images using pyslic #python #slic #pyslic
# 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 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#!/usr/bin/env python
import bz2
import datetime
import os
import sys
import time
import urllib2
import warnings
@icaoberg
icaoberg / script.sh
Last active August 29, 2015 14:08
cellorganizer-demo3D00 public CI script #ubuntu #macosx #matlab #cellorganizer
DEMO='demo3D00'
DIM='3D'
PREFIX=`pwd`/demos/"$DIM"/"$DEMO"
INPUT_DIRECTORY="$PREFIX"/synthesizedImages
if [ -d "$INPUT_DIRECTORY" ]; then
rm -rf "$INPUT_DIRECTORY"
fi
OUTPUT_DIRECTORY="$PREFIX"/projections
@icaoberg
icaoberg / bioreactor.plt
Created November 20, 2014 06:32
Bioreactor script for generating plot using gnuplot
# 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 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@icaoberg
icaoberg / install.sh
Created January 13, 2015 21:32
Install mahotas
sudo apt-get install libfreeimage3
sudo pip install mahotas