Filtering SAM Files

Filtering SAM Files

Filtering Sequence Alignment Maps (SAM/BAM) files.

1 result • updated 5.5 years ago by Istvan Albert

Filtering Sequence Alignment Maps (SAM/BAM) files.

Typically the BAM file contains all the information necessary to interpret sequencing data. For many studies, the ability to extract and isolate certain alignments using various criteria is essential. The SAM flag system, though quirky and unwieldy may be used to accomplish many of the required stages.

This recipe provides the code necessary to investigate alignment files obtained from aligning viral sequence data from the 2014 Ebola viral outbreak against the Mayinga strain observed in 1972.

The recipe operates as a statistics report that summarizes various types of alignments.

  1. Downloads the 1976 Ebola - Mayinga Reference Genome
  2. Downloads sequencing data for the 2014 outbreak
  3. Generates sequence alignments of the 2014 outbreak relative to the 1976 outbreak
  4. Investigates the resulting data and reports the number of alignments by various criteria
  5. Demonstrates how more complex queries could be formulated


A detailed presentation that explains the steps and rationale for this recipe can be found at:

Please refer to the lecture above for study materials and additional content.

Copy recipe
You need write access to the project to edit.
You need write access to the original recipe to edit.
Recipe Interface Builder
Click the buttons on the right to create new fields.
Interface Editor
Edit the content of each interface element.
You need write access to the original recipe to edit.
Edit Recipe
Recipe display name
Unique identifier for the recipe.
Image :
Optional image for the recipe ( 500px Maximum ).
Used to order recipes (optional).

Insert Image


Powered by the release 2.3.6