Question: Using Trinity with case/control data
gravatar for bdeonovic
6.1 years ago by
United States
bdeonovic180 wrote:

I would like to do RNA-seq differential expression analysis on an experiment run on 8 pigs (4 cases and 4 controls, not matched). I've already done the tophat/cuffdiff approach using the pig genome. My PI also wants me to try out Trinity (without using the pig genome sequence).

I noticed that trinity can take in multiple fastq files at a time. How should I run my Trinity run(s)? Do I do 8 separate Trinity runs? Two runs for the two conditions? 



sequencing rna-seq trinity • 1.8k views
ADD COMMENTlink modified 6.1 years ago by • written 6.1 years ago by bdeonovic180
gravatar for
6.1 years ago by
Philadelphia, PA wrote:

If you're looking to do a DE analysis on your Trinity results, then provide all of your fastq's at the same time. Take note if you have PE reads or SE reads. They are supplied differently to Trinity on the command line. This will create a single de novo assembly. If you assemble each sample separately, you'll have trouble with the RSEM step when aligning the raw reads back to the assembly to get abundance estimates. You can do individual runs, if you simply just want a de novo assembly for that sample. But for the DE analysis, you'll need to create a single assembly, combining all samples as inputs.


if PE: cat all your read 1's, and cat all your read 2's

Trinity --seqType fq --JM 50G --left reads_1.fq  --right reads_2.fq --CPU 6

For the DE analysis downstream you'll be able to specify replicates, and sample names.

If all fastq's are SE there is a --single option to use instead of specifying read orientation.

Check out the Trinity site; and for full usage there is a command line parameter: --show_full_usage

Hope this helps.

ADD COMMENTlink modified 11 months ago by RamRS30k • written 6.1 years ago by

This is what I ended up doing, except instead of cat-ing the reads together I provided a list of them (separated by a space) since Trinity says I can provide 1 or more fastq files. 

ADD REPLYlink written 6.1 years ago by bdeonovic180

You can provide a list of file names for the --left and --right command line parameters but that list of names should be a comma separated list, not space separated. I fear that in this case Trinity may have taken the first file in each list and ignored the rest.

ADD REPLYlink written 6.1 years ago by kmcarr00280

The Trinity documentation is very shoddy...This is what it says:

If paired reads:
#      --left  <string>    :left reads, one or more (separated by space)
#      --right <string>    :right reads, one or more (separated by space)
ADD REPLYlink written 6.1 years ago by bdeonovic180

I've always just concatenated the files in respect to read orientation.

ADD REPLYlink written 6.1 years ago by
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1366 users visited in the last hour