Skip to content

Instantly share code, notes, and snippets.

View kozo2's full-sized avatar

Kozo Nishida kozo2

View GitHub Profile
@kozo2
kozo2 / wikidata.md
Last active March 23, 2016 21:04
wikidata notes for compound

bh1515


PREFIX wdt: <http://www.wikidata.org/prop/direct/>

SELECT DISTINCT ?compound ?label ?napid ?keggid ?casid
WHERE {
  ?compound wdt:P31 wd:Q11173 ;
    rdfs:label ?label
  FILTER ( lang(?label) = "en" )
@kozo2
kozo2 / xgmml2gpml.py
Created March 18, 2016 18:34
xgmml2gpml
import bs4
@kozo2
kozo2 / bioruby-tutorial.ipynb
Created March 19, 2016 01:57
bioruby tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / cy-xlsimport.md
Created March 20, 2016 09:58
CytoscapeへExcelファイルのnetworkをimportするには (qiitaへの草稿)

Cytoscapeへnetworkのimportをしたいと思われるファイルがExcelであり、 そのテーブルフォーマットをどうすればいいかわからない方は多いのではないかと思います。

この記事では理想的なExcelフォーマットとそのimport方法をまとめます。

想定する Excel ファイルのフォーマット

本記事ではノード、エッジ2つシートを持つxlsを想定しています

ノードのシート

ノードのシートは下記のフォーマットが望ましいです。

@kozo2
kozo2 / cy-colornode.md
Created March 20, 2016 16:56
Cytoscape でノードの色、形を変更したい

Cytoscapeはデフォルトでノードの色、形が青色の長方形になっています。 タイトルの例としてこの記事ではデフォルトの色、形を白い円形に変更してみます。

ネットワークのimport

  • galFiltered.sif の import

ノードの形の変更

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sbmlrdf: <http://identifiers.org/biomodels.vocabulary#>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / Dockerfile
Created April 18, 2016 08:57
tmp Dockerfile
FROM quay.io/pypa/manylinux1_x86_64
RUN cd; yum update -y; git clone git://github.com/ecell/ecell4
# Cython
RUN /opt/python/cp35-cp35m/bin/python -m pip install cython
RUN /opt/python/cp34-cp34m/bin/python -m pip install cython
# config.h and BesselTables
RUN cd; yum install cmake gsl-devel -y; wget http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.14/bin/linux-centos5-x86_64-gcc482/hdf5-1.8.14-linux-centos5-x86_64-gcc482-shared.tar.gz; tar xf hdf5-1.8.14-linux-centos5-x86_64-gcc482-shared.tar.gz; tar xf boost_1_59_0.tar.gz
RUN cd /root/ecell4; BOOST_???=/root/ cmake .; make BesselTables;
Metadata-Version: 1.0
Name: ecell
Version: 4.0.0
Summary: A software platform for modeling, simulation and analysis of complex, heterogeneous and multi-scale systems like the cell.
Home-page: http://www.e-cell.org/ecell4
Author: Kazunari Kaizu
Author-email: kaizu@riken.jp
License: GPL-2
Description: see http://www.e-cell.org/ecell4
Platform: platform-independent
24,658 bytes in 0.00 seconds (4816.02KB/sec)
; Loading "cl-fad"
[package bordeaux-threads]........................
[package cl-fad]..................................
[package path]........
To load "split-sequence":
Install 1 Quicklisp release:
split-sequence
; Fetching #<URL "http://beta.quicklisp.org/archive/split-sequence/2015-08-04/split-sequence-1.2.tgz">
; 3.83KB