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
[ | |
{ | |
"refex_id": "RFX0000113860", | |
"ex_value": "7.4464837623184", | |
"see_also": "http://www.ncbi.nlm.nih.gov/gene/308", | |
"RefExSample": "http://refex.dbcls.jp/sample/RES00000436", | |
"sample_id": "RES00000436", | |
"taxonomy": "http://identifiers.org/taxonomy/9606", | |
"age": "21", | |
"stage": "adult", |
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
{ | |
"head": { | |
"link": [], | |
"vars": [ | |
"hgnc_uri", | |
"gene_symbol", | |
"approved_name", | |
"chromosomal_location", | |
"alias", | |
"ncbigene", |
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
""" | |
Example RDF/Turtle: | |
hnt:A0A024QYV7-Q00653 | |
bp3:dataSource <http://identifiers.org/HINT> ; | |
bp3:displayName "A0A024QYV7-Q00653"^^xsd:string ; | |
bp3:evidence pint:evidence-pubmed_14743216-MI_0007-literature-curated , pint:evidence-pubmed_14743216-MI_0676-literature-curated ; | |
bp3:name "A0A024QYV7-Q00653"^^xsd:string ; | |
bp3:participant [ | |
obo:BFO_0000051 uni:A0A024QYV7 ; |
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
#!/usr/bin/env ruby | |
=begin | |
# Pairwise sequence alignment algorithms | |
Currently implements Needleman-Wunsch, Smith-Waterman | |
and Needleman-Wunsch-Gotoh algorithms based on | |
the Dynamic Programming (DP). | |
## Coordinates |
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
#!/usr/bin/env ruby | |
# | |
# https://qiita.com/erukiti/items/f11f448d3f4d73fbc1f9 | |
# https://research.preferred.jp/2012/11/burrows-wheeler-transform-lf-mapping/ | |
# | |
class BWT | |
def initialize(str) | |
@str = str + '$' |
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
@prefix : <http://rdf.identifiers.org/ontology/> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix dct: <http://purl.org/dc/terms/> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix skos: <http://www.w3.org/2004/02/skos/core#> . | |
@prefix sio: <http://semanticscience.org/resource/> . | |
@prefix mirc: <http://identifiers.org/miriam.collection/MIR:> . |
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
#!/usr/bin/env ruby | |
require 'json' | |
uniq = File.open("uniq_node.txt").map {|x| x.stip.to_i} | |
json = JSON.parse(ARGF.read) | |
json.each do |ary| | |
read_id = ary.shift |
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
#!/usr/bin/env ruby | |
matrix = [] | |
ARGF.each do |line| | |
ary = line.strip.split | |
matrix << ary | |
end | |
matrix.transpose.each do |row| |
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
# Dockerfile for https://github.com/dbcls/sparqlist | |
FROM ubuntu:16.04 | |
ARG node_version=v7.9.0 | |
RUN apt-get -qq update && apt-get -qq install -y \ | |
pkg-config \ | |
sudo \ | |
curl \ |
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
#!/usr/bin/env ruby-2.3 | |
=begin | |
# SPARQL endpoint | |
https://stirdf.jglobal.jst.go.jp/sparql | |
# SPARQL query | |
select * | |
where { | |
?term a skos:Concept ; |