Created
August 3, 2018 06:19
-
-
Save joowkim/f3845895195111ed9115270ca2c4a0a5 to your computer and use it in GitHub Desktop.
star-genes-count
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
STAR_INDEX="/home/mRNAseq/ref/gencode/human/GRCh37.19/idx/" | |
INPUT_DIR="00_raw_fastq" | |
OUTPUT_DIR="01_alignment_genes_count" | |
GTF="/home/mRNAseq/ref/gencode/human/GRCh37.19/gtf/gencode.v19.annotation.gtf" | |
RSEM_INDEX="/home/mRNAseq/ref/gencode/human/GRCh37.19/idx/GRCh37.p13.genome" | |
mkdir -p $OUTPUT_DIR | |
cat samples.list | parallel --jobs 1 "mkdir -p $OUTPUT_DIR/{}" | |
cat samples.list | parallel --jobs 1 "STAR --genomeDir $STAR_INDEX --twopassMode Basic --quantMode GeneCounts --readFilesCommand zcat --readFilesIn $INPUT_DIR/{}_1.fastq.gz $INPUT_DIR/{}_2.fastq.gz --outFileNamePrefix $OUTPUT_DIR/{}/{}. --runThreadN 20 --outSAMtype BAM SortedByCoordinate --sjdbGTFfile $GTF --outSAMunmapped Within --outSAMattributes Standard --runMode alignReads" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment