Skip to content

Instantly share code, notes, and snippets.

View thejmazz's full-sized avatar

Julian Mazzitelli thejmazz

View GitHub Profile
@thejmazz
thejmazz / phylify-questions.md
Last active April 3, 2016 16:08
Phylify questions

PHYLIFY Questions

Question 1

The R way of storing data

The first task of PHYLIFY was to take bare ontology data from an obo file, specifically ff-phase2-140729.obo.

The OBO flat file format is not terribly complicated, and is detailed in a spec. The main part is that we have (a lot of) Term stanzas as such:

@thejmazz
thejmazz / threejs.md
Created April 1, 2016 16:31
Three.js Resources
@thejmazz
thejmazz / docker.md
Last active November 2, 2016 14:17
Docker links
@thejmazz
thejmazz / design.md
Last active April 6, 2016 22:50
Web Design Resources
@thejmazz
thejmazz / get_all_the_fantoms.sh
Created March 27, 2016 22:22
Script to pull down a bunch of FANTOM data
#!/bin/bash
URL1="http://fantom.gsc.riken.jp/5/tet/search/?c=0&c=1&c=4&c=5&c=6&c="
URL2_RAW="&filename=hg19.cage_peak_phase1and2combined_counts_ann_decoded.osc.txt.gz"
URL2_RLE="&filename=hg19.cage_peak_phase1and2combined_tpm_ann_decoded.osc.txt.gz"
nums="7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 113 114 116 117 119 120 122 123 125 126 128 129 131 132 134 135 137 138 140 141 143 144 146 147 149 150 152 153 155 156 158 159 162 164 165 167 168 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 243 244 245 24
@thejmazz
thejmazz / xXh4ckerXx.md
Last active June 29, 2017 20:26
Misc command line things that are good to know

tmux

sed (Stream Editor)

  • sed s/-/\ /g substitute globally (- to spaces in this case)

users and groups

  • list all users: cut -d: -f1 /etc/passwd OR compgen -u
  • list all groups: compgen -g
@thejmazz
thejmazz / bcbthings.md
Last active May 14, 2016 23:21
bioinformatics things - moved to https://github.com/thejmazz/bcb
@thejmazz
thejmazz / getJasper.js
Last active March 20, 2016 07:20
Little scraper for FANTOM
'use strict'
const rp = require('request-promise')
const htmlparser = require('htmlparser2')
// Example params
const baseJasparUri = 'http://fantom.gsc.riken.jp/5/sstar/JASPAR_motif:'
const requestUri = 'http://fantom.gsc.riken.jp/5/sstar/FF:10017-101C8'
const className = 'Jaspar-motif'

see URLs

What is a URL?

A Uniform Resource Locator is a subset of the Uiniform Resource Identifier (URI) family. In that, a URL is totally specific, contrary to a URI which can be "general", since a URI can be defined as "a string of characters used to identify a resource" Some example URLs are

  • http://www.rcsb.org/
  • http://www.ncbi.nlm.nih.gov/

Some example URIs are

The Cycle

  1. data -> interpreation via "tool"
  2. tool -> interpret
  3. self -> tool
  4. go back to 1.

Criteria

  • submitting code/plots to github before the presentation