My time, your time, compute time

I have recently started using the high performance cluster at the Sanger Institute, and it comes with an interesting quandary. You have to be explicit in the amount of RAM you request when you submit your job (the PHE cluster wasn’t like this). Then, that amount of RAM is assigned to your job and wont…

Cool built-in python tips and tricks

Travis Oliphant, who is involved with the really useful conda project, recently tweeted about David Beazley’s talk at pycon in chicago. Here’s the link to the whole thing, which is definitely worth watching. There are a few great tips in there, all around the idea that you only have to use python built-ins to do cool…

Doctor of the Rings?

My wonderful soon-to-be-wife just had her PhD viva and we were struck by the similarity between PhDs and Frodo’s journey in the Lord of the Rings. Turns out this guy got there first, but I think our theory still brings something to the table. The main parallel is that there are, like, a million endings!!!…

Plotting trees with plotTree

Kat Holt’s lab have a nice set of scripts that wrap around ete2 which makes it nice ‘n’ easy to annotate trees – plotTree! It works out the box! They have some great installation and usage instructions on the github, and some examples for the R half of the code, but the examples for the python bit are…

My time at PHE in numbers

I’m leaving PHE today, and thought I would try and reflect on my time spent here, and one way of doing that is to put some numbers on things. None of the below should be taken as an official PHE statistic 🙂 Number of years – 8 Number of organisational names – 2 Number of…

how to do age-sex pyramid in excel

Say you have an age-sex breakdown and you want to summarise it in the usual way (as below). how do you do this in excel? this is definitely a post from the annals of ‘so ridiculous i had to write it down’. So, you have to give one of your sexes minus values, and then…