techblog2024-11-23

Library Preparation for 10x Genomics scRNAseq

This article explains library preparation methods for single-cell RNA-seq (scRNA-seq), with a detailed walkthrough of the 10x Genomics process and foundational knowledge for downstream analysis.

techblog2024-10-06

Learning Database Normalization Through Practice

This article explains database design from first normal form through third normal form using SQL. It also covers how Boyce-Codd normal form eliminates update anomalies in third normal form and discusses the loss of functional dependencies.

techblog2024-09-25

Behavior of Serial Type Primary Keys in PostgreSQL

One cause of the ERROR: duplicate key value violates unique constraint error in PostgreSQL is that the sequence is not properly updated when values are manually assigned to a Serial type primary key. This happens because the default nextval is not called. To resolve this issue, you need to set the current maximum value of the primary key in the table to the sequence object. Specifically, by using the setval function to adjust the sequence object value, INSERT operations will execute correctly.