Skip to content

Instantly share code, notes, and snippets.

View ijmarshall's full-sized avatar

Iain Marshall ijmarshall

  • King's College London
  • London, UK
View GitHub Profile
@ijmarshall
ijmarshall / Regression analyses SOTE in R with lme4.ipynb
Created September 22, 2020 16:18
Regression analyses for the State of the Evidence paper
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ijmarshall
ijmarshall / Regression analyses SOTE in R with lme4.ipynb
Created September 22, 2020 16:16
Regression analyses for State of the Evidence manuscript
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# GPU development environment for RobotReviewer
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
rm -rf /var/lib/apt/lists/*
ENV CUDNN_VERSION 5.1.10
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
# GPU development environment for RobotReviewer
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
rm -rf /var/lib/apt/lists/*
ENV CUDNN_VERSION 5.1.10
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
# GPU development environment for RobotReviewer
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
rm -rf /var/lib/apt/lists/*
ENV CUDNN_VERSION 5.1.10
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
# GPU development environment for RobotReviewer
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
rm -rf /var/lib/apt/lists/*
ENV CUDNN_VERSION 5.1.10
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="pure"
@ijmarshall
ijmarshall / lookup_pubmed_ids.py
Created November 29, 2016 15:32
find pubmed ids from cochrane library
#
# cdsr2pubmed_linker.py
#
""" Tries multiple searches using different parts of the reference
each time Then iterates through all possible combinations of result
sets, intersections are likely matches Choose the id with the most
hits (which appears most frequently as a single intersection). Saves
all in the RobotReviewer sqlite database
'''Link abbreviations to their full names
Based on
A Simple Algorithm for Identifying Abbreviations Definitions in Biomedical Text
A. Schwartz and M. Hearst
Biocomputing, 2003, pp 451-462.
# License: GNU General Public License, see http://www.clips.ua.ac.be/~vincent/scripts/LICENSE.txt
@ijmarshall
ijmarshall / get_pubmed.py
Created June 30, 2015 11:34
get all pubmed abstracts in XML
#
# get all pubmed abstracts
#
from cochranenlp.readers import pmlib, pubmed
import yaml
import os
from glob import glob
import xml.etree.cElementTree as ET