Bioinformatics Recipe Cookbook
Unaligned BAM files

Half-sequence and half mythical-beast, "unaligned" BAM files are used to store FASTQ files.

1 result • updated 19 months ago by Istvan Albert

Half-sequence and half mythical-beast, "unaligned" BAM files are used to store FASTQ files.

SAM/BAM are alignment formats, thus it feels quite anachronistic to use them to store "unaligned" sequences.

On the other hand BAM files have quite a few advantages over FASTQ:

  1. Are compressed,
  2. Line oriented (all information on the sequence is on a single line),
  3. Can store sample information via tags,
  4. There are many tools that can operate on BAM files (extract by tags, filter by tags, etc)

In addition, the BAM format also stores not just the alignments but the entire reads sequences. To take advantage of the previously listed features, some bioinformaticians began storing their original, raw data in a so-called "unaligned" BAM. Thus we have "unaligned" reads in an "alignment format".

This recipe demonstrates code that will:

  1. Accesses an NCBI BioProject with a given accession number.
  2. Downloads 5 sequencing runs from the project.
  3. Transforms each downloaded FASTQ file into a BAM file while tagging the reads from that file with the SRR number tag.
  4. Merges the resulting BAM files into a single BAM that now contains all sequencing data for the project in just one file.
  5. Finally the recipe demonstrates the code needed to revert the process of extracting the original data from an unaligned BAM
Copy recipe
You need write access to the original recipe 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.

Determines who can run a recipe.

Image :
Optional image for the recipe ( 500px Maximum ).
Rank:
Used to order recipes (optional).

Insert Image

Back

Powered by the release 2.3