Skip to content

Instantly share code, notes, and snippets.

View kozo2's full-sized avatar

Kozo Nishida kozo2

View GitHub Profile
@kozo2
kozo2 / keggscape-mvn.txt
Created July 1, 2016 17:40
keggscape mvn install log
~/gh/keggscape/ > mvn install
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.4.0/maven-bundle-plugin-2.4.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.4.0/maven-bundle-plugin-2.4.0.pom (4 KB at 2.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/felix/felix-parent/2.1/felix-parent-2.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/felix/felix-parent/2.1/felix-parent-2.1.pom (10 KB at 37.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/9/apache-9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/apache/9/apache-9.pom (15 KB at 58.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/biz/aQute/bnd/bndlib/2.1.0/bndlib-2.1.0.pom
Downloaded: https://repo.maven.apache.org/maven2/biz/aQute/bnd/bndlib/2.1.0/bndlib-2.1.0.pom (2 KB at 4.6 KB/sec)
tall4j-4.0.jar
Downloaded: http://cytoscape.wodaklab.org/nexus/content/repositories/thirdparty/cytoscape-temp/install4j/4.0/install4j-4
.0.jar (735 KB at 100.6 KB/sec)
[WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer file: http://cytoscape.wodakl
ab.org/nexus/content/repositories/thirdparty/cytoscape-temp/freehep-jas-plotter/2.2/freehep-jas-plotter-2.2.jar.sha1. Re
turn code is: 500 , ReasonPhrase:Internal Server Error. for http://cytoscape.wodaklab.org/nexus/content/repositories/thi
rdparty/cytoscape-temp/freehep-jas-plotter/2.2/freehep-jas-plotter-2.2.jar
Downloaded: http://cytoscape.wodaklab.org/nexus/content/repositories/thirdparty/cytoscape-temp/freehep-jas-plotter/2.2/f
reehep-jas-plotter-2.2.jar (709 KB at 50.6 KB/sec)
[WARNING] Checksum validation failed, expected 42a1f3f0996d831818c875d484ae1b960b0fc430 but is 9b914e0b82b8450ad2065ca0a
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / 10min-daru.ipynb
Last active August 3, 2016 00:43
10 Minutes to pandas with daru
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 July 22, 2016 07:23
Numo::NArray Debian Dockerfile
FROM debian
RUN apt-get update; apt-get install -y wget git ruby gcc ruby-dev rake make
RUN wget https://github.com/ruby-numo/narray/archive/master.zip; unzip master.zip; cd narray-master; gem build numo-narray.gemspec; gem install numo-narray-0.9.0.2.gem
@kozo2
kozo2 / narray100ex-no42.txt
Created July 23, 2016 01:38
narray crash report
root@bb93298ca19f:~# irb
irb(main):001:0> require 'numo/narray'
=> true
irb(main):002:0> a = Numo::Int32.new(5).rand(2)
=> Numo::Int32#shape=[5]
[0, 0, 0, 1, 0]
irb(main):003:0> b = Numo::Int32.new(5).rand(2)
=> Numo::Int32#shape=[5]
[0, 1, 1, 1, 0]
irb(main):004:0> equal = a.eq(b).all?
@kozo2
kozo2 / msea-tryal.R
Created July 30, 2016 16:34
MSEA-trial.R
for (af in foo){
path = read.csv(af)
pcids = path['value']
x = unlist(a['PubChem.CID'])
y = unlist(pcids)
# print(class(x))
# print(class(y))
z = intersect(x,y)
print(length(z))
}
@kozo2
kozo2 / pandas-cookbook-with-daru.ipynb
Last active August 2, 2016 18:30
Pandas cookbook with Daru
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
> remove.packages("BridgeDbR")
> devtools::install_github("bridgedb/bridgedb-r", subdir="BridgeDbR")
> library("BridgeDbR")
> mapper = loadDatabase("./metabolites_20160412.bridge")
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
org.bridgedb.IDMapperException: Could not connect to database
> mapper = loadDatabase("./metabolites_20160412.bridge.zip")
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
org.bridgedb.IDMapperException: Could not connect to database

Keybase proof

I hereby claim:

  • I am kozo2 on github.
  • I am kozo2 (https://keybase.io/kozo2) on keybase.
  • I have a public key ASDP5RwDxNbKJ1gqIgt6U4PlxLM0DqOgVdRtT95L4ss2gAo

To claim this, I am signing this object: