Getting started with AWS Support (Basic)

Updated 2018 July 16th to include a section on S3 buckets Several years ago I learned that one could sign up to the Amazon Web Services (AWS) for free. This sign up allows you to test many of their web services for free, for a year, as long as your usage is within the AWS…

Continue Reading

Thesis cover art

I was recommended to have some sort of cover art on my thesis, so I decided to make my cover using the awesome Gviz package. Below is all the code for how I generated my thesis cover art. Suggestions and comments most welcome!

Continue Reading

Transcriptome feed using R

I’ve always wanted to create a transcriptome feed on Twitter, posting the results of daily PubMed searches. Well today I finally got around to it. Firstly, I made a new Twitter account; annoyingly all the Twitter handles I wanted were taken by inactive users. I decided to go with @transcriptomes. Next, I made a new…

Continue Reading

BEDTools puzzles

Updated 2015 December 16th: the files for the puzzles can be downloaded from the Amazon cloud Roughly two weeks ago I came across this excellent BEDTools tutorial and saw some puzzles or homework questions at the end of the tutorial; naturally I tweeted about it: Oh this looks like fun; BEDTools puzzles http://t.co/UMowwdPLEf— Dave Tang…

Continue Reading

A small list of command line tips

Updated: 2014 May 14th; added even more tips I’m in the middle of writing papers and my thesis, so I’ve been quite busy. However, I wanted to write a quick blog post as an outlet. So here’s a list of random command line tips off the top of my head (GNU bash, version 4.1.2(1)-release); I…

Continue Reading

Querying PubMed using R

I’ve seen talks over the years where the speaker shows a bar chart with the number of articles in PubMed that contain a certain keyword and tallied per year. In most of the cases the speaker was trying to illustrate the growing number of articles that contain the keyword. Here I try to do the…

Continue Reading

Creating plots using the xkcd package in R

xkcd styled graphs using the xkcd package in R. Steps done on R version 3.0.1 (2013-05-16) and on Windows, i386-w64-mingw32/i386 (32-bit). Steps followed are from the xkcd-intro.pdf file i.e. the xkcd vignette. install.packages("xkcd") library(xkcd) library(extrafont) library(ggplot2) #do you have xkcd fonts? if( "xkcd" %in% fonts()) { p <- ggplot() + geom_point(aes(x=mpg, y=wt), data=mtcars) + theme(text…

Continue Reading

Using the R twitteR package

Updated 2014 November 26th to reflect changes in the tm package Updated 2015 February 18th to reflect changes in the twitteR package A short post on using the R twitteR package for text mining and using the R wordcloud package for visualisation. I did this on my Windows machine, which has this problem. I’ve updated…

Continue Reading

10,000 monthly visitors, apparently

I created davetang.org on the 24th of April 2009 just for the sake of buying a domain with my name in it. Realising that I was and am paying for a service, I decided to actually make use of my web space. But it really started to become handy when I decided to pursue a…

Continue Reading

Kobe Byrant and the 2012 Lakers

Kobe Byrant and the Lakers (11-14) aren’t doing as well as I had expected given the team they acquired in the off season. Everyone likes to point out that when he scores over x number of points (e.g. 30), the Lakers have lost more than they have won. So I took his stats for this…

Continue Reading