Skip to content

Instantly share code, notes, and snippets.

View dhimmel's full-sized avatar
🎯
Focusing

Daniel Himmelstein dhimmel

🎯
Focusing
View GitHub Profile
@dhimmel
dhimmel / bitcoin-random-outcomes.ipynb
Last active January 29, 2018 19:14
Using Bitcoin to randomly determine a future outcome involving untrusted parties
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / 2017-04-14_richard-stallman-animal-rights.mp4
Last active November 12, 2017 10:28
Richard Stallman debates animal rights activist at Penn: https://youtu.be/eG4HrOpzQXY
This file has been truncated, but you can view the full file.
@dhimmel
dhimmel / GSEA-license.md
Last active March 11, 2017 18:19
GSEA/MSigDB License Agreement. Retrieved from http://software.broadinstitute.org/gsea/register.jsp?next=index.jsp on 2017-01-13

GSEA/MSigDB LICENSE AGREEMENT

MASSACHUSETTS INSTITUTE OF TECHNOLOGY SINGLE USER LICENSE AGREEMENT FOR INTERNAL RESEARCH PURPOSES ONLY

This Agreement is made between Massachusetts Institute of Technology with a principal address at 77 Massachusetts Avenue, Cambridge, MA 02139 ("MIT") and the subscriber above ("LICENSEE"), and is effective at the date the downloading is completed and proper registration/licensee subscriber information submitted ("EFFECTIVE DATE").

WHEREAS, LICENSEE desires to license the PROGRAM and/or DATABASE, as defined hereinafter, MIT wishes to have this PROGRAM and DATABASE utilized in the public interest, subject only to the royalty-free, nonexclusive, nontransferable license rights of the United States Government pursuant to 48 CFR 52.227-14, and

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / CIBERSORT_license.md
Last active March 11, 2017 18:23
CIBERSORT License obtained in August 2016 from an unidentified trusted source.

STANFORD NON-COMMERCIAL SOFTWARE LICENSE AGREEMENT

  1. THE BOARD OF TRUSTEES OF THE LELAND STANFORD JUNIOR UNIVERSITY ("STANFORD") provides CIBERSORT software ("Program"), including any accompanying information, materials, or manuals, free of charge for non-commercial use only. By accepting, receiving, or using the Program, you ("RECIPIENT") agree to be bound by the terms of this agreement ("Agreement"). If you do not agree to the terms of this Agreement, then do not use the Program and promptly remove all copies of the program from your computer(s).
  2. RECIPIENT acknowledges that the Program is a research tool still in the development stage and that it is being supplied as is, without any accompanying services, support, or improvements from STANFORD. STANFORD makes no representations and extends no warranties of any kind, neither express nor implied.
  3. RECIPIENT shall not use the Program on behalf of any organization that is not a non-profit organization. RECIPIENT shall not use the Program for commercial
@dhimmel
dhimmel / assignment.md
Last active October 21, 2016 17:33
Licensing Workshop for EPID 600. https://slides.com/dhimmel/epid600

EPID 600 Workshop

This page describes the activity for the EPID 600 lecture on Open Data Science (slides).

At the start of this class, every pupil was asked to list 3 databases / datasets / data resources that they have used in their research. For each of these three resources (time permitting), please report via the comments below the following information:

  1. Is the data subject to copyright? If no, end.
  2. Does the resource have a license?
  3. If no, contact the creators and inquire whether there license that allows reuse?
  4. If yes, does the license allow:
@dhimmel
dhimmel / pubmed-growth.ipynb
Last active October 20, 2016 15:55
PubMed growth over time
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / amphetamine-streams.ipynb
Last active September 21, 2016 19:00
How much Baltimore stream water do you need to drink to get high?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhimmel
dhimmel / autobib.py
Created April 29, 2016 00:30
Automatically create BibTeX entries from DOIs
"""
This file contains python functions for automatically retreiving DOI metadata
and creating bibtex references. `get_bibtex_entry(doi)` creates a bibtex entry
for a DOI. It fixes a Data Cite author name parsing issue. Short DOIs are used
for bibtex citation keys.
Created by Daniel Himmelstein and released under CC0 1.0.
"""
import urllib.request
@dhimmel
dhimmel / gwas-association-downloaded_2016-04-10-Educational attainment.tsv
Created April 10, 2016 22:56
GWAS Catalog associations for "Educational attainment" with p ≤ 5e-8
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 34 columns, instead of 4. in line 2.
DATE ADDED TO CATALOG PUBMEDID FIRST AUTHOR DATE JOURNAL LINK STUDY DISEASE/TRAIT INITIAL SAMPLE SIZE REPLICATION SAMPLE SIZE REGION CHR_ID CHR_POS REPORTED GENE(S) MAPPED_GENE UPSTREAM_GENE_ID DOWNSTREAM_GENE_ID SNP_GENE_IDS UPSTREAM_GENE_DISTANCE DOWNSTREAM_GENE_DISTANCE STRONGEST SNP-RISK ALLELE SNPS MERGED SNP_ID_CURRENT CONTEXT INTERGENIC RISK ALLELE FREQUENCY P-VALUE PVALUE_MLOG P-VALUE (TEXT) OR or BETA 95% CI (TEXT) PLATFORM [SNPS PASSING QC] CNV
2013-12-01 23722424 Rietveld CA 2013-05-30 Science www.ncbi.nlm.nih.gov/pubmed/23722424 GWAS of 126,559 individuals identifies genetic variants associated with educational attainment. Educational attainment up to 126,559 European ancestry individuals NA 2q37.2 2 236149500 GBX2 AGAP1 - LOC105373944 116987 105373944 17700 11866 rs11687170-T rs11687170 11687170 downstream_gene_variant 0 0.770 3.0000000000000004E-8 7.522878745280337 (Edu Years) 0.107 [NR]unit increase Illumina, Affymetrix, Perlegen [up to 2,321,8963] (imputed) N
2013-12-01 23722424 Rietveld CA