Repository navigation
Solution Prep & Spectroscopy
The Solution Preparation & Spectroscopy module delivers high-accuracy spectrophotometric modeling, automated standard solution formulations, and diagnostic impurity assessments. It bridges theoretical quantum biochemistry with everyday bench pipetting, empowering researchers to prepare micro-molar standardized stocks, predict optical density (OD) across multiple optical pathlengths, and diagnose chemical contaminants in UV-Vis absorption spectra.
At the bench, stock solutions must frequently be diluted to precise operational concentrations. BioLabCalc provides a unit-aware, multi-variable solver for the classic conservation-of-mass dilution law:
where:
-
$C_1$ : Initial stock concentration. -
$V_1$ : Volume of initial stock required. -
$C_2$ : Target final working concentration. -
$V_2$ : Target final total volume.
Given any three parameters, BioLabCalc algebraically determines the fourth variable and computes the exact volume of diluent buffer required:
The solver automatically parses human-readable metric strings across volume dimensions (
Ultraviolet-visible (UV-Vis) quantification of biomolecules is governed by the Beer-Lambert Law:
where:
-
$A_{\lambda}$ : Absorbance (optical density, OD) at wavelength$\lambda$ (unitless or Absorbance Units,$\text{AU}$ ). -
$\epsilon_{\lambda}$ : Molar absorption coefficient (molar extinction coefficient) in$\text{M}^{-1}\text{ cm}^{-1}$ . -
$c$ : Molar concentration of the analyte ($\text{mol/L}$ ). -
$l$ : Optical pathlength of the sample cell ($\text{cm}$ ).
Standard transmission cuvettes feature an internal pathlength of
The physical absorbance measured across a
BioLabCalc reports both the standard
A common source of error in nucleic acid quantification is relying on static conversion factors (e.g., $1\text{ OD}{260} = 40\text{ }\mu\text{g/mL}$ for RNA or $33\text{ }\mu\text{g/mL}$ for ssDNA). The actual molar absorptivity at $260\text{ nm}$ ($\epsilon{260}$) depends on base composition and base-stacking interactions (hypochromicity).
BioLabCalc computes sequence-specific extinction coefficients using the Nearest-Neighbor (NN) Model:
where:
-
$\epsilon_{\text{NN}}(b_i b_{i+1})$ is the extinction coefficient of the dinucleotide pair at positions$i$ and$i+1$ . -
$\epsilon_{\text{mono}}(b_i)$ is the individual monomer extinction coefficient subtracted for internal bases to correct for double-counting.
Reference: Puglisi, J. D., & Tinoco, I. (1989). Absorbance properties for calculating RNA concentration. Methods in Enzymology, 180, 304–325.
| 5' \ 3' | A | C | G | U |
|---|---|---|---|---|
| A | ||||
| C | ||||
| G | ||||
| U |
Reference: Cavaluzzi, M. J., & Borer, P. N. (2004). Revised UV extinction coefficients for nucleoside-5'-monophosphates and unpaired DNA species. Nucleic Acids Research, 32(1), e13.
| 5' \ 3' | A | C | G | T |
|---|---|---|---|---|
| A | ||||
| C | ||||
| G | ||||
| T |
When complementary single strands anneal to form a Watson-Crick B-DNA double helix,
where
Preparing working stocks of synthetic oligos, sgRNAs, or mRNA standards requires aligning target molarity (
-
Total Moles Required (
$n$ ):$$n\text{ (nmol)} = C_{\text{target}}\text{ (}\mu\text{M)} \times V_{\text{target}}\text{ (}\mu\text{L)} \times 10^{-3}$$ -
Total Mass Required (
$m$ ):$$m\text{ (}\mu\text{g)} = n\text{ (nmol)} \times MW\text{ (g/mol)} \times 10^{-3}$$ $$m\text{ (ng)} = m\text{ (}\mu\text{g)} \times 10^{3}$$ -
Physical Mass Concentration (
$C_{\text{actual}}$ ):$$C_{\text{actual}}\text{ (ng/}\mu\text{L)} = \frac{m\text{ (ng)}}{V_{\text{target}}\text{ (}\mu\text{L)}}$$ -
Sequence-Specific Conversion Factor: $$\text{Factor}{\text{seq}}\text{ (}\mu\text{g/mL per OD}{260}\text{)} = \frac{MW}{\epsilon_{260}} \times 1000$$
-
Expected Sequence-Specific NanoDrop
$A_{260}$ :$$A_{260, \text{seq}} = \epsilon_{260} \times \left( C_{\text{target}} \times 10^{-6} \right) \times 1.0\text{ cm}$$ -
Generic Instrument Discrepancy: Standard spectrophotometer software applies a static factor ($\text{Factor}{\text{generic}} = 40.0\text{ }\mu\text{g/mL}$ for RNA, $50.0\text{ }\mu\text{g/mL}$ for dsDNA). The value displayed on the instrument screen will be: $$C{\text{displayed}}\text{ (ng/}\mu\text{L)} = A_{260, \text{seq}} \times \text{Factor}_{\text{generic}}$$ BioLabCalc explicitly predicts this discrepancy, allowing researchers to verify sample concentrations without misattributing sequence-specific hypochromicity to pipetting error.
-
Dilution from Concentrated Stock: When
stock_conc_ng_ulis supplied:$$V_{\text{stock}} = \frac{m\text{ (ng)}}{C_{\text{stock}}\text{ (ng/}\mu\text{L)}} \qquad V_{\text{buffer}} = V_{\text{target}} - V_{\text{stock}}$$
NanoDrop UV-Vis spectra provide qualitative and quantitative insight into sample purity via the
Absorbance
▲
│ Nucleic Acid Peak (260 nm)
│ ╭───╮
│ Phenol │ │
│ (270nm) │ │
│ ╭──╮ │ │
│ Salts │ │ │ │ Aromatic Proteins (280 nm)
│ (230nm)│ │ │ │ ╭──╮
│ ╭─╮ │ │ │ │ │ │
───┴───┴─┴──┴──┴──┴───┴────────┴──┴────────► Wavelength (nm)
230 260 270 280
| Sample Type | Canonical |
Canonical |
Primary Molecular Basis |
|---|---|---|---|
| Pure RNA | Higher ratio than DNA due to higher uracil/guanine extinction at |
||
| Pure DNA | Lower ratio due to thymine absorbance spectrum |
BioLabCalc classifies spectral anomalies into actionable diagnoses using an automated rules engine:
| Contaminant Species | Spectral Signature | Ratio Impact | Biochemical Consequence | Corrective Action |
|---|---|---|---|---|
| Aromatic Proteins (BSA, Cellular Lysate, RNase A) | Absorbance peak at |
|
Nuclease degradation risk; inhibits RT-PCR and cDNA synthesis | Digest with Proteinase K ( |
| Phenol (TRIzol®, QIAzol®, PCI) | Absorbance maximum at |
Severe depression: |
Falsely elevates apparent |
Perform chloroform:isoamyl alcohol back-extraction to strip phenol, followed by ethanol or LiCl precipitation. |
| Chaotropic Salts (Guanidinium HCl, Guanidinium Thiocyanate) | High absorption below |
Normal Severely low: |
Denatures enzymes; inhibits RT-qPCR enzymes and T7 transcription | Wash silica spin column with additional |
| EDTA (Chelating Agent) | Broad UV absorption at |
Chelates required divalent cations ( |
Desalt via centrifugal dialysis (Amicon, Microcon) or ethanol-salt precipitation. | |
| Polysaccharides / Glycogen / Carbohydrates | Turbidity and light scattering across |
Interferes with pipetting viscosity and non-specifically inhibits ligations and PCR | Perform CTAB/NaCl extraction or selective lithium chloride ( |
|
| Buffer Drift / Acidic pH Shift | Hypochromic shift in nucleic acid absorbance |
|
Falsely indicates protein contamination due to unbuffered solvent | Blank and measure samples in |
When protein carryover is detected (
This correction provides researchers with a more realistic yield estimate prior to re-purification.
When assess_nanodrop_purity classifies the sample as purity_status = "Below Detection Limit". It prevents false chemical contamination alarms by setting:
-
protein_contamination = False(andprotein_contamination_risk = False) salt_or_solvent_contamination = Falsephenol_contamination_risk = False
It returns a clean diagnostic message explaining that absorbance ratios are not statistically or biochemically meaningful at baseline noise levels.
from biolabcalc.easy import dilute
# Solve for required stock volume (V1)
result = dilute(
c1="100 mM", # Stock NTP concentration
c2="25 mM", # Desired working concentration
v2="16 mL", # Desired final volume
)
print(f"Stock Volume Needed (V1): {result['v1']} uL ({result['v1']/1000} mL)")
print(f"Diluent Needed: {result['diluent_needed']} uL ({result['diluent_needed']/1000} mL)")
# Solve for working concentration (C2)
res2 = dilute(c1="50X", v1="20 mL", v2="1000 mL")
print(f"Working Buffer Strength (C2): {res2['c2']}X")from biolabcalc.spectroscopy import prepare_standard_solution
# Formulate a 4.0 µM standard solution of a 50-nt ssRNA in 500 µL
recipe = prepare_standard_solution(
target_molarity_um=4.0,
target_volume_ul=500.0,
sequence="AUGGUGAGCAAGGGCGAGGAGCUGUUCACCGGGGUGGUGCCCAUCCUGGU",
seq_type="rna",
end_5="hydroxyl",
stock_conc_ng_ul=850.0, # Starting stock concentration
)
print(f"Molecular Weight: {recipe.molecular_weight:.2f} g/mol")
print(f"Nearest-Neighbor Extinction Coeff (e260): {recipe.sequence_extinction_coeff_260:,} M^-1 cm^-1")
print(f"Sequence-Specific Conversion Factor: {recipe.sequence_specific_conversion_factor:.2f} ug/mL per OD260")
print(f"Required Mass: {recipe.required_mass_ug:.3f} µg ({recipe.required_mass_ng:.1f} ng)")
print(f"Stock Volume Needed: {recipe.stock_volume_needed_ul:.2f} µL")
print(f"Buffer Volume Needed: {recipe.buffer_volume_needed_ul:.2f} µL")
print(f"Expected NanoDrop A260 (10 mm path): {recipe.expected_nanodrop_a260_sequence_specific:.3f} AU")
print(f"Expected NanoDrop A260 (1 mm path): {recipe.expected_nanodrop_a260_1mm:.4f} AU")
print(f"Expected Displayed Conc (Generic Mode): {recipe.expected_nanodrop_display_ng_ul_generic_mode:.2f} ng/µL")from biolabcalc.spectroscopy import assess_nanodrop_purity
# Evaluate an RNA sample exhibiting phenol carryover
purity = assess_nanodrop_purity(
a260=1.450,
a280=0.980,
a230=1.120,
sample_type="rna",
)
print(f"Purity Status: {purity.purity_status}")
print(f"A260/A280 Ratio: {purity.a260_a280_ratio:.2f} (Target ~2.00)")
print(f"A260/A230 Ratio: {purity.a260_a230_ratio:.2f} (Target 2.00–2.20)")
print(f"Protein Contamination Detected: {purity.protein_contamination}")
print(f"Phenol Risk Detected: {purity.phenol_contamination_risk}")
print(f"Corrected A260: {purity.corrected_a260:.3f} AU")
print(f"Corrected Concentration: {purity.corrected_concentration_ng_ul:.1f} ng/µL")
print("\nDiagnostics:")
for diag in purity.diagnostic_feedback:
print(f"- {diag}")# Calculate stock volume required to prepare 16 mL of 25 mM working stock from 100 mM
biolabcalc dilute -c1 "100 mM" -c2 "25 mM" -v2 "16 mL"
# Calculate target concentration after diluting 50 uL of 10 mg/mL BSA into 950 uL buffer
biolabcalc dilute -c1 "10 mg/ml" -v1 "50 uL" -v2 "1000 uL"# Prepare a 2.5 µM solution of a synthetic DNA probe in 200 µL from a 500 ng/µL stock
biolabcalc nanodrop -m 2.5 -v 200 -s "GACTACAGCTAGCTAGCTAG" -t dna --stock 500.0
# Prepare 10 µM mRNA in 100 µL without a sequence (using estimated length of 1200 nt)
biolabcalc nanodrop -m 10.0 -v 100 -l 1200 -t rna --end5 triphosphate# Evaluate RNA absorbance readings
biolabcalc purity --a260 2.15 --a280 1.08 --a230 1.02 --type rna
# Evaluate plasmid DNA absorbance readings
biolabcalc purity --a260 0.85 --a280 0.46 --a230 0.41 --type dnaBioLabCalc Documentation Wiki | Licensed under the MIT License | GitHub Repository Research Use Only (RUO). Not intended for clinical or diagnostic procedures.
- Core Calculators & Stoichiometry
- Solution Prep & Spectroscopy
- Buffers & Precipitation
- Protein Quantification & Assays
- Fluorophores & Dye Labeling
- Molecular Cloning & Assembly
- Plasmid Engineering & Workbench
- PCR Kinetics & Primer Design
- In Vitro Transcription (IVT)
- Western Blotting Suite
- Bacterial Growth & Kinetics
- ELN System Architecture
- SOP & Protocol Management
- Instrument Data Parsers
- Inventory & Freezer LIMS
- Local RAG Knowledge Engine
- GxP Compliance & Audit Trails