Skip to content

Instantly share code, notes, and snippets.

@wckdouglas
Created February 1, 2016 22:41
Show Gist options
  • Save wckdouglas/60d9b86dda329e0141c7 to your computer and use it in GitHub Desktop.
Save wckdouglas/60d9b86dda329e0141c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
BAMPATH=.
RESULTPATH=.
GENESFILE=allRegions.SAF
STRANDENESS=1
THREADS=20
featureCounts -a $GENESFILE -F SAF \
-o /dev/stdout -O -s $STRANDENESS -Q 5 \
-T $THREADS --minOverlap 50 --primary \
--readExtension5 10 --readExtension3 10 --ignoreDup \
-p -P -d 18 -D 10000 -B -C $BAMPATH/*bam \
| sed 1d \
| cut -f6- \
| paste ${GENESFILE%.SAF}.info - \
| sed '1s/.\///g' \
| cut -f2- \
> $RESULTPATH/repCounts.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment