Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

The with open statement is a particularly convenient feature in Python, allowing for automatic closure of objects when operations are completed. For custom objects, it’s also possible to support the with syntax.

A long time ago, a Python expert from my previous company taught us about decorators. However, due to my愚钝ness, I never fully understood this concept and didn’t use it in actual coding. Therefore, ...

After using snakemake for some time, I found that it has many practical features to facilitate daily analysis. Here is a record and整理.

I’ve never used many useful functions when writing scripts before, so I decided to learn a bit about itertools and make some notes. This time, I was dealing with large files, but most of the time, ...

R provides convenient multiprocessing capabilities, and Python has similar functionality.

Writing workflows is a common task in bioinformatics analysis, and a mature and well-designed tool can greatly improve the efficiency of work.

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.

There’s not much to say, just commemorating my first independent completion of a command-line program~

Recently, I’ve been using Pandas a lot and have compiled some commonly used functions for future reference.

To prepare for future operations using Sqlite3, I recently tried using it to operate on databases at work. I decided to use sqlite3 because it seemed convenient. However, I found that not all SQL statements are supported by sqlite3, and its free-form shell commands cannot be called directly by the Python sqlite module…