Nanopore · Plotting

NanoPlot example gallery update

Months ago I wrote a blog post with an example gallery of plots from NanoPlot so it might be time for an update with NanoPlot v1.9.2 (currently published as a preprint together with my other long read plotting and processing scripts). The data below is from the publicly available NA12878 dataset, release5, base called by the… Continue reading NanoPlot example gallery update

Plotting · R · transcriptomics

Identifying an individual with Klinefelter syndrome in transcriptome sequencing

In my previous post, I showed how to infer the sex of individuals from transcriptome sequencing. I applied this to a different dataset, and the result (shown below) has a remarkable outlier: sample 34. The title is already a big spoiler: it turns out that this individual has Klinefelter syndrome (47,XXY), a male with two X… Continue reading Identifying an individual with Klinefelter syndrome in transcriptome sequencing

Plotting · R

Inferring the sex based on transcriptome sequencing

Analogous to my previous post on inferring the sex of individuals based on exome sequencing I’ll now show you how to do the same for transcriptome sequencing. In the example, I use data from Lexogen QuantSeq but this is most likely equally applicable to other RNA-seq approaches. This is a useful QC step and can detect… Continue reading Inferring the sex based on transcriptome sequencing

Coding · Plotting · Python

Inferring the sex based on exome sequencing

So today I came across the annoying issue that someone had not bothered to document the sex of samples, even when we generated exome sequencing data of those. So I wrote a script to figure this out based on coverage on the X and Y chromosomes, but not in the pseudoautosomal regions. The script can… Continue reading Inferring the sex based on exome sequencing

Coding · Python

Random password generator in Python with custom keyboard shortcut

I use different, randomly generated passwords for all my accounts. I have used a website to generate those before, but today I wrote a small script to handle this job. The main idea is based on this StackOverflow question, which I adapted and extended to suit my needs. It’s probably not completely cryptographically safe as pointed out by… Continue reading Random password generator in Python with custom keyboard shortcut

Python

Resizing and combining multiple svg images

This post discusses a similar problem to my previous post on combining png images but this time the images are in the svg format. Svg (Scalable Vector Graphics) defines images in XML format and has the advantage that zooming is possible since it’s a vectorized format, and editing e.g. the size of text is still possible. I based… Continue reading Resizing and combining multiple svg images

Python

Resizing and combining multiple png images

I wanted to combine multiple images to one figure and add letter annotations for the figure legend. I wanted to do this in Python, of course, and below is what I came up with. Some of it is hardcoded since it obviously depends on the size and preferred combination of your images. I will combine 6 png… Continue reading Resizing and combining multiple png images