Skip to content

Instantly share code, notes, and snippets.

View mbarnkob's full-sized avatar

mbarnkob

View GitHub Profile
### Visualization of hazard ratio's in TCGA data based on a single gene
### =================
# Goal: To visualize survival data (deaths) based on the expression level of a single gene
# as either high or low, and the hazard ratio between those two.
# Date: 2016-10-30
# Author: Mike Barnkob, www.mikebarnkob.dk
### Data
@mbarnkob
mbarnkob / 2016-Nature-Journal-Scrape-Capti.R
Created February 13, 2016 21:58
A script to scrape Nature Immunology "news and views" text files and convert them to a format, # thats easier to listen to in Capti (https://www.captivoice.com/capti-site/). More info here: http://mikebarnkob.dk/2016/an-r-script-for-scraping-news-from-nature-journals-to-capti-narrator
# Script to convert Nature articles into Capti text files
# A script to scrape Nature Immunology "news and views" text files and convert them to a format,
# thats easier to listen to in Capti (https://www.captivoice.com/capti-site/). Does the following:
# 1. Add "Title " in front of title, "Author " in front of author, "Abstract " in front of abstract, "Text " in front of text
# 2. Removes references and website links
# 3. Remove figure texts.
# Version 1
@mbarnkob
mbarnkob / 2014-Barnkob-Frontiers_in_Genetics.R
Last active January 2, 2016 03:03
R code for analysing half-life data and Monte Carlo analysis used in Barnkob et al, Frontiers in Genetics, 2014.
#CODE FOR Barnkob et al, Frontiers in Genetics, 2014 article
#Mike Barnkob, 2014.
#www.mikebarnkob.dk
#ANALYSIS of mRNA-PROTEIN HALF-LIFE DATA
#=======================================
#Info and packages
#===========
@mbarnkob
mbarnkob / RArticleNetwork.R
Last active March 12, 2018 17:46
R code for generating a network of referring articles from pubmed. More info here: http://mikebarnkob.dk/2015/generating-an-article-network-using-rentrez-and-igraph-in-r/
#Article Network ver 2
#============================
# This program will scrape all citing articles surrounding one main article and
# create: 1) a list of most cited articles, 2) lists of main authors, 3) network of articles
# Mike Barnkob, December 28th 2015.
# www.mikebarnkob.dk
#Background and references
#1. https://cran.r-project.org/web/packages/rentrez/vignettes/rentrez_tutorial.html#advanced-counting