This file contains hidden or 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
(Pari/GP) | |
a(c,d,a0,a1,n)=my(r1,r2,s);s=sqrt(c^2+4*d);r1=2*d/(-c+s);r2=2*d/(-c-s);return(((a1-c*a0+a0*r1)*r1^n-(a1-c*a0+a0*r2)*r2^n)/s) | |
(Sage) | |
def a(c,d,a0,a1,n): | |
r1=2*d/(-c+sqrt(c^2+4*d)) | |
r2=2*d/(-c-sqrt(c^2+4*d)) |
This file contains hidden or 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
Forcing sage-location, probably because a new package was installed. | |
Updating various hardcoded paths... | |
(Please wait at most a few minutes.) | |
DO NOT INTERRUPT THIS. | |
Done updating paths. | |
Found package ccache in /scratch/sage/upstream/ccache-3.1.9.spkg | |
Package ccache-3.1.9 is already installed. | |
Use 'sage -f /scratch/sage/upstream/ccache-3.1.9.spkg' to force a reinstallation. | |
--2014-05-04 08:27:25-- http://coates.ma.ic.ac.uk/grdb_polytopes-0.1.spkg | |
Resolving coates.ma.ic.ac.uk (coates.ma.ic.ac.uk)... 155.198.35.88 |
This file contains hidden or 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
#define BENCHPRESS_CONFIG_MAIN | |
#include <cstddef> | |
#include <benchpress/benchpress.hpp> | |
//#include "series-benchmark.h" | |
#include <string> | |
#include <iostream> | |
#include <tuple> | |
#include <type_traits> |
This file contains hidden or 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 sys import * | |
import csv | |
reader = csv.DictReader(open('gene-entrezids.tab', 'r'), delimiter='\t') | |
genes = {} | |
for item in reader: | |
gid = item.get('geneid') | |
iturl = item.get('item') | |
iturl = iturl[iturl.rfind('/')+1:] | |
gitem = genes.get(gid) |
This file contains hidden or 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 sys import * | |
import csv | |
reader = csv.DictReader(open('gene-diseaseassoc.tab', 'r'), delimiter='\t') | |
genes = {} | |
for item in reader: | |
iturl = item.get('item') | |
it = iturl[iturl.rfind('/')+1:] | |
disurl = item.get('dis') | |
dis = disurl[disurl.rfind('/')+1:] |
This file contains hidden or 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 | |
from anytree import Node, find, findall, PreOrderIter, RenderTree, Resolver, AsciiStyle, ChildResolverError | |
from sys import * | |
class ECNode(Node): | |
q = '' | |
lab = '' | |
tree = ECNode('Root') |
This file contains hidden or 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 | |
from anytree import Node, find, findall, PreOrderIter, RenderTree, Resolver, AsciiStyle, ChildResolverError | |
from sys import * | |
class TCNode(Node): | |
q = '' | |
lab = '' | |
print_missing_triples = False | |
print_qs = True |
This file contains hidden or 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 | |
from sys import * | |
reader = csv.DictReader(open('genes-wikipedia.tab', 'r'), delimiter='\t') | |
gqs = {} | |
for item in reader: | |
iturl = item.get('p') | |
qit = iturl[iturl.rfind('/')+1:] | |
lang = item.get('lang') | |
lemma = item.get('lemma') |
This file contains hidden or 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
molecular biology technique (Q3516872) ↑ | |
|-polymerase chain reaction (Q176996) | |
|-cell-free protein synthesis (Q189030) | |
|-Rapid amplification of cDNA ends (Q381434) | |
|-SuperSAGE (Q826829) | |
|-restriction fragment length polymorphism (Q857299) | |
|-Tandem affinity purification (Q893051) | |
|-DNA-DNA hybridization (Q900923) | |
|-Chromatin immunoprecipitation (Q901026) | |
|-Immunophenotyping (Q902926) |
This file contains hidden or 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
biochemistry method (Q26879200) ↑↑ | |
|-Bradford protein assay (Q247562) | |
|-Serial analysis of gene expression (Q286721) | |
|-Förster resonance energy transfer (Q367473) | |
|-Bimolecular fluorescence complementation (Q863465) | |
|-Electrophoretic mobility shift assay (Q903596) | |
|-density gradient electrophoresis (Q1209472) | |
|-Protein Misfolding Cyclic Amplification (Q2044394) | |
|-perfusion culture (Q2070705) | |
|-submersed fermentation (Q2361902) |