Created
December 20, 2017 18:01
-
-
Save dondelelcaro/27846cf8983cc799bc459d7db8da14fc to your computer and use it in GitHub Desktop.
Example ~/.lessfilter to read bam files in less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$1" in | |
*.bam) | |
samtools view $LESSPIPE_SAMTOOLS "$1" | |
;; | |
*) | |
# We don't handle this format. | |
exit 1 | |
esac | |
# No further processing by lesspipe necessary | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment