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 | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
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
#include <gsl/gsl_rng.h> | |
#include <math.h> | |
#include "subsample.h" | |
/* subsample_col | |
* | |
* desc: subsample an array of COO objects, of length size, to a sum of (n) | |
* | |
* inputs: COO* list - an array of COO objects | |
* COO* ss_result - store the subsampled result |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# rename some files based on some counter | |
x=0 # set an environment variable for our counter | |
for i in foo/* # for every file in the foo directory | |
do | |
# we're going to rename the file, and prefix it with the value in the | |
# counter. the variable $i will contain both the directory foo, as well as | |
# the filename (e.g., foo/bar). Since we want to prefix the number on to | |
# the filename, we need to somehow strip out the foo/ part. we can do this | |
# using a program called basename (it's worth a peak at its man page). |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
OLD_VERSION=$1 | |
NEW_VERSION=$2 | |
cd trunk/examples | |
sed -ie "s/Biological Observation Matrix $OLD_VERSION/Biological Observation Matrix $NEW_VERSION/" *.biom | |
cd ../scripts | |
sed -ie "s/^__version__ = \"$OLD_VERSION\"/__version__ = \"$NEW_VERSION\"/" *.py |
OlderNewer