Skip to content

Instantly share code, notes, and snippets.

@jakeenk
jakeenk / aweSAM_collapser
Created June 10, 2016 18:23
SAM file read collapser
#!/bin/bash
# ******REQUIRES SAMTOOLS******
#This is a sam assembly collapser using coordinates and strand as the "unique insert" identifiers, keeping the read with the highest mapping quality
#Written/assembled by Jake Enk and Alison Devault (and named by Nathalie Mouttham) June 3, 2013
# Usage: $ aweSAM_collapser [input samfile] [output collapsed samfile]
# PROCESS: