R provides convenient multiprocessing capabilities, and Python has similar functionality.
Recently, I wrote a script to draw many images using ggplot. Although all the places where loops are needed have already been replaced with apply
, it still can’t keep up when drawing hundreds of images at once. So, I fiddled around with parallel
and managed to parallelize the plotting part to speed things up.
It’s been a while since the last update. Today, I’ll record the upgraded version of my homemade VPN!
Snakemake is indeed a very useful tool for workflow development and management. However, in certain scenarios, it can also bring some issues. Coincidentally, I discovered a rather unconventional way of using it: only use Snakemake’s dependency handling and task management, while generating scripts separately.
Writing workflows is a common task in bioinformatics analysis, and a mature and well-designed tool can greatly improve the efficiency of work.
bash-it is a collection of bash plugins inspired by oh-my-zsh. Installing bash-it not only makes the bash interface more stylish but also makes the command line more convenient.
I have been using argparse
for command line parsing, but it wasn’t until recently that I discovered it can be used to create subcommands.