Skip to content

Instantly share code, notes, and snippets.

@photocyte
Last active February 8, 2017 14:28
Show Gist options
  • Save photocyte/9c1b863a6de58c3e3ac3f8321e31cd23 to your computer and use it in GitHub Desktop.
Save photocyte/9c1b863a6de58c3e3ac3f8321e31cd23 to your computer and use it in GitHub Desktop.
##Abusing file descriptors to have graphmap stream/pipe the .sam output into samtools for filtering and compression to .bam
/lab/solexa_weng/testtube/graphmap/bin/Linux-x64/graphmap align -r mito_reference.fasta -d raw_reads.fasta -P -o /dev/fd/3 3>&1 1>&2 | samtools view -b -h -F 4 > aligned_reads.bam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment