pysam — Easy Playground
Read and manipulate SAM/BAM/CRAM alignment files
Getting started with pysamRun locally
Install
pip install pysamPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: pysam)
pysam is a third-party package. Read and manipulate SAM/BAM/CRAM alignment files. Install with: pip install pysam
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?