Skip to main content
100%

Gist 454d4384d1fd704c8d1933b01d2c2af4

✓ Published0🌍 Public
NNpfn
Last edited Feb 8, 2019
Created on Feb 8, 2019

This example shows a batch processing workflow for sequencing alignment files, automating the conversion of SAM files into sorted, indexed BAM files. The shell script iterates over a list of run identifiers, using the `samtools view` command to filter out unmapped reads with the `-F 4` flag, then pipes the output to `samtools sort` to create order-preserved BAM output. Each resulting file is indexed with `samtools index` for downstream genomic analysis. The script operates within a directory structure defined by the `$TPRESEQ` environment variable.

AI-generated description

Similar vizzes