Add error checking to bam smpl functions
Add error checking to bam smpl functions: a task in life-science-SWE1.0 (Harbor dataset). Title: Add error checking to bam smpl functions
The task
**Title:** Add error checking to bam_smpl_* functions
Part of scalingX/life-science-SWE1.0.