#BSUB -L /bin/bash # uses the bash login shell to initialize the job's execution environment. #BSUB -J rnaseqc # job name #BSUB -n 10 # assigns 10 cores for execution #BSUB -R "span[ptile=10]" # assigns 10 cores per node #BSUB -R "rusage[mem=2000]" # reserves 2000MB memory per core #BSUB -M 2000 # sets to 2000MB per process enforceable memory limit. (M * n) #BSUB -W 4:00 # sets to 4 hour the job's runtime wall-clock limit. #BSUB -o stdout.%J # directs the job's standard output to stdout.jobid #BSUB -e stderr.%J # directs the job's standard error to stderr.jobid module load RNA-SeQC/1.1.8-intel-2015B-Java-1.7.0_80 < $se_1_bam_file bwa aln $reference_fasta $se_2 | bwa samse -r "@RG\tID:$read_group_id_2\tLB:$library\tSM:$sample2\tPL:$platform" $reference_fasta - $se_2 | samtools view -h -bS - | samtools sort -o -m 2G -@ 8 - sorted > $se_2_bam_file # Create the sample_file.tsv echo -e "SampleID\tBam File\tNotes $sample_1_id\t$bam_file_1\t$notes_1 $sample_2_id\t$bam_file_2\t$notes_2" > sample_file.tsv # Create .dict sequence dictionary using picard java -Xmx10g -jar $EBROOTPICARD/CreateSequenceDictionary.jar REFERENCE=$reference_fasta OUTPUT=$reference_dict samtools index $bam_file_1 samtools index $bam_file_2 samtools faidx $reference_fasta # Run RNA-SeQC with defaults java -jar $EBROOTRNASEQC/RNA-SeQC_v1.1.8.jar -r $reference_fasta -t $reference_gtf -s sample_file.tsv -o $output_dir -singleEnd <