Created
February 1, 2016 22:41
-
-
Save wckdouglas/60d9b86dda329e0141c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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