Building Singularity images in layers

Recently I have been learning about Singularity and have been experimenting with building Singularity images. However it seems that there is no layering in Singularity, which exists with Docker and Dockerfiles. This is quite convenient to have because building will resume from the point where the last step failed. However the comment: You can build…

Continue Reading

Download from the SRA using ffq (and ffs)

ffq is a tool that can be used to fetch metadata from several data repositories. It can also be used to generate links to raw data hosted at the EBI (via FTP), AWS, GCP, and NCBI. I wrote a short Bash script called ffs that can generate the commands needed to download the raw data…

Continue Reading

TIL about code snippets in RStudio

Last updated: 2023/07/28 I recently learned about code snippets in RStudio (ignore the strikethrough). As the name suggests, they are snippets of code that you can quickly insert into your source code in the source pane of RStudio. There are two ways to add code snippets: Click on the following: Tools -> Global Options ->…

Continue Reading

The things that matter

I recently learned of the WTFPL licence and was reading the FAQ (link no longer works) to learn a bit more about it. I came to the "But profanity is offensive!" section and while reading it it made me reflect about the things that really matter to me in life. The last few years have…

Continue Reading

Deciding which bioinformatics tool to use

I just finished reading "Using prototyping to choose a bioinformatics workflow management system", which I summarised on Mastodon as follows: Enjoyed reading "Using prototyping to choose a #bioinformatics workflow management system". Paper describes authors’ 10 day experience searching and implementing a workflow. Summary: Need to decide which tool to use? Shortlist a list of potentially…

Continue Reading

Maintaining a (bioinformatics) blog

A lot of the well known bioinformatics blogs are no longer maintained. I recently came across a blog post that talked about blogging and how it was possible to actively maintain a blog for over 10 years. I discovered the blog when I learned of the book Building reproducible analytical pipelines with R, which also…

Continue Reading

Wrap and unwrap a line in Vim

Last updated: 2023/07/06 Vim is a text editor that is renowned for having a steep learning curve. People like to illustrate its difficulty by pointing out that Vim is so unfriendly to new users that they do not even know how to quit the program! I learned Vim (and Perl) because that was what my…

Continue Reading

Amino acid quiz using Python

I keep forgetting amino acid abbreviations and their classes because I never bothered learning them. To see if I can teach an old dog (me) new tricks, I wrote this simple Python script that asks questions about amino acids. I’ll keep doing the quiz until I can finally remember. Below is the Python code for…

Continue Reading

Reading a list of files into a single R data frame

I had been using map_dfr from the purrr package to load multiple files into one single data frame. But this function has been superseded with the following explanation: The functions were superseded in purrr 1.0.0 because their names suggest they work like _lgl(), _int(), etc which require length 1 outputs, but actually they return results…

Continue Reading