How to begin genome-guided Trinity

485 views
Skip to first unread message

Farbod Emami

unread,
Aug 23, 2016, 12:45:09 PM8/23/16
to trinityrnaseq-users
Hi Dear Trinity experts,

Sorry for this very simple question,

I have used my 3 males and 3 females (12 paired-end fastq files) non-model fish for de-novo assembly using Trinity.

Now, I want to run Genome-guided approach but I do not know how to began to create "read alignments to Trinity as a coordinate-sorted bam file" and  "coordinate sorted bam file"

I have find a related species genome from here and I want to use STAR for my other steps.

Do I must align each samples (e.g: first sample1-left.fastq & sample1-right.fastq and then sample2 . . . ) separately to the genome ? 

Do I must use "bowtie-build" command first on the Genome file ?

Tiago Hori

unread,
Aug 23, 2016, 12:53:57 PM8/23/16
to Farbod Emami, trinityrnaseq-users

I would not use the genome of closely-related species for this. It may add more confusion than benefits, unless that are super closely related.

 

T.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-u...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

Farbod Emami

unread,
Aug 23, 2016, 1:17:48 PM8/23/16
to trinityrnaseq-users, farbo...@gmail.com
Dear Dr Tiago , Hi.

So what kind of genome I must use for genome guided ?

I intend to check the DEGs in this situation.


On Tuesday, August 23, 2016 at 9:23:57 PM UTC+4:30, Tiago Hori wrote:

I would not use the genome of closely-related species for this. It may add more confusion than benefits, unless that are super closely related.

 

T.

 

From: trinityrn...@googlegroups.com [mailto:trinityrn...@googlegroups.com] On Behalf Of Farbod Emami
Sent: August 23, 2016 1:45 PM
To: trinityrnaseq-users <trinityrn...@googlegroups.com>
Subject: [trinityrnaseq-users] How to begin genome-guided Trinity

 

Hi Dear Trinity experts,

 

Sorry for this very simple question,

 

I have used my 3 males and 3 females (12 paired-end fastq files) non-model fish for de-novo assembly using Trinity.

 

Now, I want to run Genome-guided approach but I do not know how to began to create "read alignments to Trinity as a coordinate-sorted bam file" and  "coordinate sorted bam file"

 

I have find a related species genome from here and I want to use STAR for my other steps.

 

Do I must align each samples (e.g: first sample1-left.fastq & sample1-right.fastq and then sample2 . . . ) separately to the genome ? 

 

Do I must use "bowtie-build" command first on the Genome file ?

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

Farbod Emami

unread,
Aug 23, 2016, 1:47:09 PM8/23/16
to trinityrnaseq-users, farbo...@gmail.com

Tiago Hori

unread,
Aug 23, 2016, 2:51:12 PM8/23/16
to Farbod Emami, trinityrnaseq-users

It is not clear from the figure, but I will assume that when they say draft genome, they mean the Guppy draft genome. That’s fine. It does not have to be a final genome. However, using a closely related species is another story. For one, you assuming most genes are organized in the same way in the genome (unlikely), 2 you are assuming the gene duplications is equal between both genomes (unlikely), you are assuming genes are conserved enough for the genome to actually help you (possible, but unlikely).

 

Why not just do a de-novo assembly? That’s one of Trinity’s main strengths.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-u...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--

You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-u...@googlegroups.com.

Farbod Emami

unread,
Aug 23, 2016, 3:48:39 PM8/23/16
to trinityrnaseq-users, farbo...@gmail.com
Very nice answer, as usual. Thank you

As I have some transcripts in my DEGs that has no blast hits n blasting against NCBI nr database, i think that using a genome guided wit gar fish or zebrafish and search for the genomic position of them may be show me something new.
but according to your guidance, this approach is use-less

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

Mark Chapman

unread,
Aug 23, 2016, 5:21:36 PM8/23/16
to Farbod Emami, trinityrnaseq-users

Hi Farbod,
As you already have a de novo assembly just blast the DEGs against the genome and hopefully they will hit an annotated gene. Although if there was no hit in the first place I think it's unlikely you'll get a lot from searching the genome.
Best, Mark


To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrnaseq-users@googlegroups.com.

Farbod Emami

unread,
Aug 24, 2016, 1:17:09 AM8/24/16
to trinityrnaseq-users, farbo...@gmail.com
Dear Dr. Mark, Hi.

I know how to locally blast my DEGs against NCBI nr or nt or other databases, 

But I do not know how to "blast the DEGs against the genome"

I have a fasta file that contains my DEGs sequences and for example I have the Gar fish genome I have provided from its link in the beginning of the question.

Did I must make this reference genome as a blastable database, first?

thank you.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

Mark Chapman

unread,
Aug 24, 2016, 1:35:11 AM8/24/16
to Farbod Emami, trinityrnaseq-users

Yes that would be my suggestion if the genome isn't in ncbi.


Dear Dr. Mark, Hi.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrnaseq-users@googlegroups.com.

Farbod Emami

unread,
Aug 24, 2016, 2:02:46 AM8/24/16
to trinityrnaseq-users, farbo...@gmail.com
Thank you,

and what if " the genome is exist in ncbi" ?

and I think the gar genome is in the NCBI (here), am I right or I am missing something ?
Dear Dr. Mark, Hi.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

Mark Chapman

unread,
Aug 24, 2016, 2:42:28 AM8/24/16
to Farbod Emami, trinityrnaseq-users
if its already in ncbi then your blast will include it as a reference, you dont need to make your own blastable db.

Thank you,
Dear Dr. Mark, Hi.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsubscribe...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrnaseq-users@googlegroups.com.



--
Dr. Mark A. Chapman
+44 (0)2380 594396
------------------------------------
Centre for Biological Sciences
University of Southampton
Life Sciences Building 85
Highfield Campus
Southampton
SO17 1BJ

Mark Chapman

unread,
Aug 24, 2016, 2:43:39 AM8/24/16
to Farbod Emami, trinityrnaseq-users

Farbod Emami

unread,
Aug 24, 2016, 2:46:04 AM8/24/16
to trinityrnaseq-users, farbo...@gmail.com
Dear Mark and Tiago,

I know that using such genome guided is useless but just for curiosity and learning the mapping procedures from you, I have used STAR program 6 times (I have two treatments, 3 biological replication for each, so 6 left and right pairs fastq), and now I have 6 "*Aligned.sortedByCoord.out.bam" files.

1- How can I use these 6 files in the genome guided script provided via Trinity (here)? Did I must merge them? or runing the related Trinity command six times separately? 

2- Can I use these .bam files to check some quality or aligning representation?


This is one of my scripts for align RNA-Seq Reads to the genome with STAR:

STAR   --genomeDir ./   --runThreadN 24   --readFilesIn    '/home/F1-left.fastq'     '/home2/F1-right.fastq'  --outFileNamePrefix  F1 --outSAMtype   BAM SortedByCoordinate
Dear Dr. Mark, Hi.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.
To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

Farbod Emami

unread,
Aug 24, 2016, 2:47:32 AM8/24/16
to trinityrnaseq-users, farbo...@gmail.com
Many thanks !
Thank you,
Dear Dr. Mark, Hi.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.


To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "trinityrnaseq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trinityrnaseq-users+unsub...@googlegroups.com.

To post to this group, send email to trinityrn...@googlegroups.com.
Visit this group at https://groups.google.com/group/trinityrnaseq-users.
For more options, visit https://groups.google.com/d/optout.



--
Dr. Mark A. Chapman
------------------------------------
Centre for Biological Sciences
University of Southampton
Life Sciences Building 85
Highfield Campus
Southampton
SO17 1BJ

EDUtainment TV

unread,
Aug 30, 2016, 7:47:20 AM8/30/16
to trinityrnaseq-users
Hi all,

I ran the genome guided trinity by using following command and completed until following steps and is still running. But the succeeded percentage get stacked in same position from last 2 days. My question is, these kind of things happen in this trinity assembly process or what, also if i get an error can i restart the trinity run from the last completed step, if yes then how can i. Could anyone please help me on this. Thank you.

[prabinb@biolab ~]$ Trinity --genome_guided_bam /data/tmp/StarElmap/ElsantaAligned.sortedByCoord.out.bam --genome_guided_max_intron 100000 --max_memory 50G --CPU 12


--------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------


-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NW_004443499.1/0/258_1156.trinity.reads
-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NW_004443501.1/0/2_695.trinity.reads
-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NW_004443501.1/0/870_1016.trinity.reads
-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NW_004443502.1/0/68_1040.trinity.reads
-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NW_004443503.1/0/2_1011.trinity.reads
-writing to Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff/NC_015206.1/0/1_155688.trinity.reads
CMD: touch Dir_ElsantaAligned.sortedByCoord.out.bam.minC1.gff.ok
##
Done
##

Saturday, August 27, 2016: 00:10:10    CMD: touch partitions.ok
Saturday, August 27, 2016: 00:10:10    CMD: find Dir_* -name '*reads' > read_files.list
Saturday, August 27, 2016: 00:10:10    CMD: touch read_files.list.ok
Saturday, August 27, 2016: 00:10:10    CMD: /opt/trinityrnaseq/util/support_scripts/write_partitioned_trinity_cmds.pl --reads_list_file read_files.list --CPU 1 --max_memory 1G  --seqType fa --trinity_complete --full_cleanup  > trinity_GG.cmds
Saturday, August 27, 2016: 00:10:10    CMD: touch trinity_GG.cmds.ok
Saturday, August 27, 2016: 00:10:10    CMD: touch trinity_GG.cmds.ok


--------------------------------------------------------------------------------
------------ Trinity Phase 2: Assembling Clusters of Reads ---------------------
--------------------------------------------------------------------------------

Saturday, August 27, 2016: 00:10:10    CMD: /opt/trinityrnaseq/trinity-plugins/parafly/bin/ParaFly -c trinity_GG.cmds -CPU 12 -v
Number of Commands: 2703
succeeded(2696)   99.741% completed.  
Reply all
Reply to author
Forward
0 new messages