Skip to content

Commit

Permalink
trinity updated to handle single end reads (they still use se reads)
Browse files Browse the repository at this point in the history
  • Loading branch information
aseetharam committed Apr 20, 2017
1 parent 3138064 commit 4100ab1
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions runTrinitySE.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

# sh runTrinity file1_r1.fq.gz
# for single end reads just supply one file or multiple files with coma (no space)
# Runs Trinity, RSEM and calculates alignment stats

READS="--single ${LEFT}"
CPU=16
MAXMEM=60G

module load trinityrnaseq/2.1.1
# Run Trinity with trimming and normalization
Trinity \
--seqType fq \
--CPU ${CPU} --max_memory ${MAXMEM} --single "$1" \
--normalize_reads \
--trimmomatic \
--output trinity_out_dir\
--no_cleanup

# estimate read abundance (mode RSEM)

${TRINITY_HOME}/util/align_and_estimate_abundance.pl \
--transcripts trinity_out_dir/Trinity.fasta \
--seqType fq \
--single "$1" \
--est_method RSEM \
--aln_method bowtie2 \
--trinity_mode \
--prep_reference \
--output_dir RSEM_outdir

# estimate read abundance (mode eXpress)

${TRINITY_HOME}/util/align_and_estimate_abundance.pl \
--transcripts trinity_out_dir/Trinity.fasta \
--seqType fq \
--single "$1" \
--est_method eXpress \
--aln_method bowtie2 \
--trinity_mode \
--prep_reference \
--output_dir eXpress_outdir


# run bowtie PE to get alignment stats

${TRINITY_HOME}/util/bowtie_PE_separate_then_join.pl \
--seqType fq \
--single "$1" \
--target trinity_out_dir/Trinity.fasta \
--aligner bowtie2

${TRINITY_HOME}/util/SAM_nameSorted_to_uniq_count_stats.pl \
bowtie_out/bowtie_out.nameSorted.bam

0 comments on commit 4100ab1

Please sign in to comment.