$ brew install jumanpp
$ jumanpp -v # 確認
JUMAN++ 1.02
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
import csv | |
csv.field_size_limit(1000000000) | |
with open("sra_edge_list.tsv", "w") as out_f: | |
writer = csv.writer(out_f, delimiter="\t") | |
with open("SRA_Accessions.tab", "r") as input_f: | |
reader = csv.reader(input_f, delimiter="\t") | |
reader.next() | |
for l in reader: |
d3.request(endpoint + query)
.header('Accept', 'application/sparql-results+json')
.response(function(xhr){return JSON.parse(xhr.responseText)})
.get(callback);
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
import urllib.request | |
import urllib.parse | |
data = urllib.parse.quote(''' | |
PREFIX refexo: <http://purl.jp/bio/01/refexo#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX refexs: <http://refex.dbcls.jp/sample/> | |
SELECT DISTINCT ?organism | |
WHERE { | |
refexs:RES00000003 refexo:organism ?organism . |
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 datetime import datetime | |
import fire | |
dfm = '%Y/%m/%d' | |
today = datetime.today() | |
basedate = datetime.strptime("2017/03/31", dfm) | |
class March(object): | |
def day(self, td=today): | |
delta = td - basedate |
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
import unittest | |
import app | |
import os | |
from webtest import TestApp | |
os.environ['WEBTEST_TARGET_URL'] = 'http://localhost:8080' | |
app = TestApp(app) | |
class ApiTest(unittest.TestCase): |
NewerOlder