Skip to content

Instantly share code, notes, and snippets.

View cmungall's full-sized avatar
💭
linkml hacking

Chris Mungall cmungall

💭
linkml hacking
View GitHub Profile
@cmungall
cmungall / save-in-all-formats
Created March 30, 2014 01:38
save-in-all-formats
#!/bin/sh
if [ -e catalog-v001.xml ]
then
X='--use-catalog'
else
X=""
fi
F=$1;
owltools $X $1 -o $F.owl -o -f ofn $F.ofn -o -f omn $F.omn -o -f ttl $F.ttl -o -f obo --no-check $F.obo
du -sh $F.*
@cmungall
cmungall / gist:9865984
Created March 30, 2014 01:40
test diff sizes
#!/usr/bin/perl
my $f = shift @ARGV;
runcmd("save-in-all-formats.sh $f");
our $N=16;
our $ITERATIONS=10;
for (my $iter=1; $iter<= $ITERATIONS; $iter++) {
@cmungall
cmungall / gist:9865995
Created March 30, 2014 01:41
Plot diffability
library(ggplot2)
the.data <- read.table( header=TRUE, sep=",", "foo.OUT")
ggplot(the.data, aes( x = numAxiomsDeleted, y = diffsize, shape = fmt, label = fmt, group = fmt ) ) +
scale_shape_discrete(solid=T, legend=T) +
scale_y_log10() +
scale_x_log10() +
geom_point(aes(colour = fmt)) +
geom_smooth()
@cmungall
cmungall / gist:9865999
Created March 30, 2014 01:41
uberon diffability output
fmt,num,diffsize,iteration
owl,1,250481,1
ofn,1,15,1
obo,1,2,1
ttl,1,245804,1
omn,1,22,1
owl,2,249967,1
ofn,2,12,1
obo,2,8,1
ttl,2,245001,1
============================== Prover9 ===============================
Prover9 (32) version 2008-11A, November 2008.
Process 8186 was started by cjm on skerryvore,
Wed Aug 5 13:44:32 2009
The command was "prover9".
============================== end of head ===========================
============================== INPUT =================================
formulas(sos).
# see thea/benchmarks directory
TIME THEA CARO 0.0697942
MEM THEA CARO 1.885792
TIME THEA CL 1.38948
MEM THEA CL 8.553492
TIME THEA FBbt 19.0624
MEM THEA FBbt 38.238024
TIME THEA GO 411.418
MEM THEA GO 381.50792
TIME THEA SO 3.1424
@cmungall
cmungall / README.md
Created November 30, 2015 15:09
No name

README is empty

Bold Hypothesis: GO BPs can be cleanly separated into cellular processes and larger processes formed from assemblages of these. Any process should be diagrammable. If the diagram is expressed using cell parts and molecules, it is cellular. If the diagram is expressed using cells or tissues it is at a larger level of organization.

Additionally, we may have grouping classes which can abstract over both branches, in terms of some objective or phenotype. Examples are: growth (to increase the size of the organism or a part), immune system

## Type Definitions (contract)
type Drug {
id: ID!
name: String!
drugInteractions: [DrugInteraction]
drugTargets: [DrugTarger]
}
type DrugTarget {