Skip to content

Instantly share code, notes, and snippets.

View FedericoV's full-sized avatar

Federico Vaggi FedericoV

View GitHub Profile
@FedericoV
FedericoV / gist:10019386
Created April 7, 2014 12:29
String Output:
query
http://string-db.org/api/tsv/resolveList
data
output=tsv&identifiers=%250Dhob1%250Dfim1%250Dscd1%250Dpom1%250Drho2%250Drho1%250Dpsd1%250Dalp14%250Dfor3%250Dpck2%250Dpck1%250Dalp6%250Dscd2%250Dskb1%250Dsid2%250Dtea1%250Dmal3%250Dtea4%250Dmkh1%250Dppb1%250Dkin1%250Dmob2%250Dcki2%250Datb2%250Dpal1%250Dmyo1%250Dgef1%250Dsty1%250Drga1%250Dshk1%250Dssp1%250Dpmk1%250Dact1%250Drgf1%250Dsts5%250Dtea2%250Darp3%250Dtea3%250Dtip1%250Defc25%250D&request=resolveList&species=4896
queryIndex stringId ncbiTaxonId taxonName preferredName annotation
0 4896.SPBC21D10.12-1 4896 Schizosaccharomyces pombe hob1 Protein hob1; Has a role in DNA damage signaling as a part of stress response processes
9 4896.SPBC119.08-1 4896 Schizosaccharomyces pombe spm1 Mitogen-activated protein kinase spm1; Regulates cell integrity and functions coordinately with the protein kinase C pathway (pck1 and pck2). Involved the regulation of wall architecture, cell shape, cytokinesis in exponential and stationary phase, and metabolism of ions
conda list | grep qt
ipython-qtconsole 1.1.0 py27_1
pyqt 4.10.4 py27_0
qt 4.8.5 0
federico@FV-DESKTOP-FEM-UBUNTU:~/Systems_Biology/Projects/l-py-and-ducts/modeler$ conda list | grep vtk
vtk 5.10.1 py27_1
206c 736f 6461 2d2d 2020 6174 2074 2028
3d72 3129 2061 6e64 2073 7465 7020 7369
7a65 2068 2028 3d72 3229 2c20 7468 6520
2020 2000 000a 2020 2020 2020 2063 6f72
7265 6374 6f72 2063 6f6e 7665 7267 656e
6365 2066 6169 6c65 6420 7265 7065 6174
6564 6c79 2020 2020 2000 000a 2020 2020
2020 206f 7220 7769 7468 2061 6273 2868
2920 3d20 686d 696e 2020 2000 000a 2020
2020 2020 696e 2061 626f 7665 2c20 2072
@FedericoV
FedericoV / gist:985aaa4c78c55270f7eb
Last active August 29, 2015 14:02
mpi4py STD ERR
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: module: line 1: syntax error: unexpected end of file
@FedericoV
FedericoV / Emcee Snippet
Created June 11, 2014 12:58
EMCEE sampling script
# Initialize the MPI-based pool used for parallelization.
pool = emcee.utils.MPIPool()
if not pool.is_master():
# Wait for instructions from the master process.
pool.wait()
sys.exit(0)
nwalkers = 1500
ndim = len(params)
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for `module'
/fem0/keu_albanese/local/lib/python2.7/site-packages/scipy/integrate/quadpack.py:315: RuntimeWarning: overflow encountered in square
return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
total 16G
drwx------ 4 keu_vaggi kore 60K 12 giu 11:19 .
drwxrwxr-x 49 root kore 4,0K 6 giu 09:33 ..
-rw------- 1 keu_vaggi kore 17K 11 giu 10:36 .bash_history
-rw-r--r-- 1 keu_vaggi kore 18 10 mag 2012 .bash_logout
-rw-r--r-- 1 keu_vaggi kore 176 10 mag 2012 .bash_profile
-rw-r--r-- 1 keu_vaggi kore 155 30 ago 2013 .bashrc
-rw-r--r-- 1 keu_vaggi kore 179 28 mar 17:28 batch.sh
-rw------- 1 keu_vaggi kore 150M 12 giu 11:06 core.12240
-rw------- 1 keu_vaggi kore 1,3G 12 giu 11:07 core.12241
@FedericoV
FedericoV / Numba_ODEINT_benchmark.ipynb
Created September 9, 2014 09:47
Showing numba at speeding up a complicated ODE
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@numba.jit(target='cpu', nopython=True)
def fast_simpson(i, j):
a = 0
b = 0
c = 0
M = i.shape[0]
for idx in range(M):
a += (i[idx] == 1) and (j[idx] == 1)
Jaccard
Unclustered Communities: 2984
Total Clustered Genes: 4555
Number of Communities: 205
---------------------------
Simpson
Unclustered Communities: 162
Total Clustered Genes: 6328