R programming language

Be better at programming with static program analysis

- What is static program analysis ? Static program analysis allows the gathering of informations about the execution behaviour of your code without actually executing it. It is the opposite of dynamic program analysis (like debugging) which required the code to be executed. - Ok! But why should I use this in practice ? To save time by suppressing the save/execute cycles induced by syntax errors (missing ";", function or variable not initialized, typos, ...). Correcting these errors at the [...]

By | 2016-11-08T09:30:14+00:00 May 8, 2015|Categories: Performance, Python, R, Web development|0 Comments

Identifying a point in ggplot2

So you have spent much time converting your simple R plot to a full-fledged ggplot2 graph with all its bells and whistles just to find that you are unable to identify a point on this graph to further investigate it. Indeed, the typical identify method is not applicable to ggplot2 graphs. Fortunately, there is a solution, which involves performing all the work yourself by going under the hood of ggplot2 to access the low-level graphics system on which it is [...]

By | 2016-11-08T09:30:14+00:00 March 11, 2015|Categories: Bioinformatics, Data Visualisation, R|0 Comments

Table-reading: loading data into R without a hassle

The first thing I have learned in R is how to load a table. Usually, when you start your R journey, someone more knowledgeable will tell you how to do this very first action. It will typically be: data<-read.table("~/SomeFolder/datafile.txt") You probably will be adding various parameters into the brackets such as "row.names=0" or "header=TRUE" or, "sep="\t"", to make sure you are reading your file correctly. And this is perfectly fine, as a loading method of small datasets. However, to maximize [...]

By | 2016-11-08T09:30:15+00:00 February 5, 2015|Categories: Bioinformatics, Biology, Performance, R|1 Comment

One task, three ways

Usually, there is more than one way to accomplish a task. Some are better, some are worse and others are just as good. Assessing which one to use is often related to the computing time, the ease of use and/or to personal preferences and abilities. Say I have a matrix of thousands of chromosomal features with the following column names : Feature, Start, End. All the positions are found on the same chromosome and the widths of my features are variable. [...]

By | 2016-11-08T09:30:15+00:00 January 15, 2015|Categories: Bioinformatics, R|0 Comments

Teach me how to box-plot!

Boxplots are everywhere! Publishers like boxplots.  But ask some people and most don't even know what a boxplot represents!  Recently I wanted to examine gene expression data between two samples for a certain gene. The gold standard to look at it would be *drum roll*... A boxplot! Interesting fact #1: Did you know a boxplot is called a “box and whiskers plot” as well?  Let's take a look! A boxplot is easily generated in the analysis software R and its interpretation [...]

By | 2016-11-08T09:30:17+00:00 September 21, 2014|Categories: Data Visualisation, R, Statistics|0 Comments