Performance

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 | February 5, 2015|Categories: Bioinformatics, Biology, Performance, R|1 Comment

What’s the fastest?

Often, we rely on our old habits. We get comfortable and have a tendency to do things the same old way. Same thing happens when you're programming. But a day will come when you’ll ask yourself, is this the fastest way to perform this task ? And when this happens to you (and if the given task is in Python), you’ll be glad that a package like timeit exist. Sure there are other ways to organize timing contest in Python. [...]

By | April 2, 2014|Categories: Performance, Python|0 Comments