Skip to content

Instantly share code, notes, and snippets.

View yochannah's full-sized avatar
🏳️‍🌈
pls send lots of cats

Yo Yehudi yochannah

🏳️‍🌈
pls send lots of cats
View GitHub Profile

CORS investigation notes

Repo used for testing: https://github.com/yochannah/cytoscape-intermine/tree/cors-investigations - cors investigation branch.

To test:

  1. Clone the repo and checkout cors-investigations branch
  2. npm install dependencies.
  3. npm install ../some/path/to/locally/compiled/imjs
  4. In the cytoscape-intermine/node_moduled/imjs directory change main : build/service to main : dist/im.js if needed.
@yochannah
yochannah / wormMineEnrichmentPublicList.r
Last active June 25, 2019 15:57
Fetch WormMine enrichment results for various scenarios
#load InterMineR
library(InterMineR)
# Select WormMine
wormMine <- listMines()["WormMine"]
im <- initInterMine(mine=wormMine) # IMPORTANT: ADD YOUR TOKEN HERE IF THIS IS A LIST YOU SAVE TO YOUR OWN ACCOUNT
# EXAMPLE: im <- initInterMine(mine=wormMine, "YOUR TOKEN")
# fetch the list of widgets available from WormMine
widgets <- getWidgets(im)
@yochannah
yochannah / whoopsiedaisy.md
Created June 12, 2019 15:45
more InterMineR error logging

This will produce a 400 error in the current (June 2019) InterMineR version.

library(InterMineR)

# Begin by initialising against an InterMine - in this case HumanMine
im <- initInterMine(mine=listMines()["HumanMine"], "SOME TOP SECRET TOKEN")

# initialise a variable to hold a new query
expressedPancreas = newQuery()
```json
//json in here
```
@yochannah
yochannah / README.md
Last active April 9, 2019 16:36
GSoC proposal export for our student grading sheet
@yochannah
yochannah / techdoctools.md
Created April 25, 2017 12:50
Writing technical documentation for open source projects

Documentation for software often requires programmers to write in specific formats, like MarkDown (which this Gist is written in) or reStructuredText, which InterMine uses for Sphinx, hosted on readthedocs.org.

Personally, I prefer to use MarkDown - it seems more ubiquitous to me, given that StackOverflow and GitHub both use markdown by default. Here are a few of my favourite tools to handle this:

  • StackEdit - a fabulous melding of Google Docs with a realtime markdown preview and collaborative editing. A great way to work on a doc with others before uploading it to your official documentation section.
  • Pandoc - and especially their online converter - write in most common formats, convert to other common formats. For me, that means I can write InterMine document
@yochannah
yochannah / student-interest.md
Created March 22, 2019 12:33
March 22 student einterest level GSoC InterMine
project interest level
imjs 🔥🔥🔥
data viz 🔥🔥
spring migration 🔥🔥🔥
data modeller 🔥🔥🔥🔥
cloud 🔥🔥
InterMineR 🔥🔥🔥
link validation 🔥
similarity 🔥
@yochannah
yochannah / example html page.html
Last active March 18, 2019 17:28
sample flyatlas query
<!doctype html>
<html>
<head>
<meta name="description" content="Sample imjs query">
<script src="https://cdn.jsdelivr.net/npm/imjs@3.16.0/dist/im.js"></script>
</head>
<body>
<script>
var intermine = new imjs.Service({root: 'http://www.flymine.org/flymine/service/'});
@yochannah
yochannah / opensource.md
Created February 24, 2019 11:53
Interesting open source conferences
@yochannah
yochannah / templates.js
Created December 28, 2018 11:37
quick dirty script to test sorted templates
var templates = {
"templates": {
"ChromRegion_Genes": {
"model": {
"name": "genomic"
},
"title": "Region --> Genes",
"description": "Show the genes located between two points on a chromosome. [Keywords: span, region, co-ordinates]",
"select": ["Chromosome.primaryIdentifier", "Chromosome.locatedFeatures.feature.primaryIdentifier", "Chromosome.locatedFeatures.feature.symbol", "Chromosome.locatedFeatures.feature.chromosomeLocation.start", "Chromosome.locatedFeatures.feature.chromosomeLocation.end", "Chromosome.locatedFeatures.feature.chromosomeLocation.strand"],
"constraintLogic": "A and B and C and E",