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 <iostream> | |
#include <hdf5.h> | |
// Constants | |
const char saveFilePath[] = "test.h5"; | |
const hsize_t ndims = 2; | |
const hsize_t ncols = 3; | |
int main() |
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
from __future__ import print_function | |
import libsbml | |
import argparse | |
def _parser(): | |
parser = argparse.ArgumentParser(description="Parse stoichiometry matrix of SBML file") | |
parser.add_argument('file', metavar="filename", type=argparse.FileType('r'), | |
help="Filename of SBML file to parse") |
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
"use strict"; | |
// helpers | |
function mat2d(mat) { | |
const n = Math.sqrt(mat.length); | |
return Array.from(Array(n), (_, i) => mat.slice(i * n, i * n + n)); | |
} | |
function range(n, f = v => v) { | |
return Array.from(Array(n), (_, i) => f(i)); | |
} |
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
conda create -n pm3 python=3.7 pandas jupyter matplotlib mkl-service libpython m2w64-toolchain coverage xlrd openpyxl scipy -y | |
activate pm3 | |
# install last release from PyPI | |
pip install pymc3 | |
# or latest version directly from master: | |
pip install git+https://github.com/pymc-devs/pymc3 | |
# or from master in editable mode: | |
git clone https//github.com/pymc-devs/pymc3 pymc3 | |
cd pymc3 |