Solving problems with graphs

I saw this question on Quora: A teacher assigns each of her 18 students a different integer from 1 through 18. The teacher forms pairs of study partners by using the rule that the sum of the pair of numbers is a perfect square. Assuming the 9 pairs of students follow this rule, the student…

Continue Reading

Learning R through a mini game part 3

This is my third post on learning R through the BetaBit package, which contains three mini games for learning R. I wrote about the first game, called proton, late last year and the second game, called frequon, a week and a half ago. The third game is called regression and it’s much more statistical than…

Continue Reading

Learning R through a mini game part 2

Late last year I discovered proton, an educational game in R about processing data frames, via R-bloggers and had a go at it. I thought it was fun and educational; it was also the first time I tried to use the dplyr package. I recently learned that there are two more games produced by the…

Continue Reading

What do I use?

Almost two years ago, I found this Q&A series on Biostars that asks well-known bioinformaticians what tools they use for their work: This is a nice Q&A series on @BioStarQuestion that shows what some known bioinformaticians use https://t.co/CYIiNJiLiF #bioinformatics — Dave Tang (@davetang31) October 10, 2014 The questions asked were: What hardware do you use?…

Continue Reading

Less blogging, more GitHub repositories

Another two months have gone by without any new blog posts; I’ve just been occupied with various other tasks: I don't how people juggle between writing grants, reviewing grants, writing papers, and doing actual sciency stuff #struggling — Dave Tang (@davetang31) May 10, 2016

Continue Reading

2015 WordPress report

Well it’s the last day of the year; as a tradition I started last year, here’s my WordPress Annual Report. Compared to last year, I’ve got slightly more visitors (250,000 -> 280,000) from slightly more countries (184 -> 191) per annum. See you next year!

Continue Reading

Managing papers

Update: 2015 August 19th: I discovered the “Retrieve Metadata from PDF” feature in Zotero that can retrieve all the metadata from a PDF and adds all the relevant information. (This doesn’t work for all PDFs but for the majority it works. Note that if you perform too many queries, Google Scholar will restrict you from…

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

Calculating the h-index

Updated 2014 September 19th to include a method that does not require sorting. The h-index is an index that is calculated by measuring the number of articles, say $$n$$, that has at least $$n$$ citations. If you published 10 articles, and each of them had four citations, your h-index would be four, since there are…

Continue Reading