sam-bam-basics

Teach SAM and BAM file structure and basic samtools operations.

6|2|Updated Jun 11, 2026
One-click install
npx skills add https://github.com/pradyumnasagar/open-research-skills --skill sam-bam-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sam-bam-basics
Source: https://github.com/pradyumnasagar/open-research-skills/tree/main/skills/bioinformatics-sequence/sam-bam-basics
Command: npx skills add https://github.com/pradyumnasagar/open-research-skills --skill sam-bam-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires samtools, pysam, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps researchers understand the key elements of SAM and BAM files, essential for downstream analysis in bioinformatics.

Core Features & Use Cases

  • Understand SAM/BAM File Format: Learn the structure and elements of SAM and BAM files.
  • Basic Operations: Execute essential commands for filtering, extracting, and sorting reads.
  • Use Case: Use this Skill to filter reads with high mapping quality from a BAM file, enabling focused analysis on high-quality data.

Quick Start

Use the sam-bam-basics skill to filter out reads with a mapping quality (MAPQ) less than 30 from your aligned BAM file.

Frequently Asked Questions about sam-bam-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter reads with low mapping quality from a BAM file?

Filtering reads with low mapping quality from a BAM file involves applying threshold parameters to exclude alignments with a MAPQ score less than 30, enabling focused downstream analysis on high-quality sequence alignment data.

What is the structure of the SAM file format?

The SAM file format is a TAB-delimited text format containing alignment data with a header section and an alignment section. It stores essential biological read information, including mapping quality, position, and sequence details for bioinformatics interpretation.

How do I extract and sort reads from a BAM file using samtools?

Extract and sort reads from a BAM file using samtools by executing basic command line operations for filtering and ordering alignment data. This manipulation prepares high-quality sequence reads for downstream bioinformatics analysis workflows.

Do I need bioinformatics experience to understand SAM and BAM alignment files?

Yes, you need familiarity with bioinformatics concepts to understand SAM and BAM alignment files. Interpreting the key elements of these formats requires prerequisite knowledge of sequence alignment data structures and tools like samtools.

Related Skills