Hi fabrice,
I think I figured out the problem and solution for the warning you get when you run cufflinks with paired end trimmed reads.
(Warning: Using default Gaussian distribution due to insufficient paired-end reads in open ranges. It is recommended that correct paramaters (--frag-len-mean and --frag-len-std-dev) be provided.)
I think when you trim the paired end reads for adapters and low quality you need to have the both read mates in correct order after trimming. Cutadapt can't order the reads after trimming. You need to use a script which can trim adapters from the paired end reads and order the reads after trimming. I have used a program called 'flexible adapter remover'-far to trim the adapters and to order the paired reads after trimming. Similarly I used a script 'trim-fastq.pl' from 'Popoolation' to trim the paired end reads for low quality. This script corrects the order between the paired reads after trimming.
I used the correctly ordered and trimmed fastq files in tophat to produce a bam file. When I used this in cufflinks I did not get the warning message and it used the estimated the fragment length mean in the analysis.
I hope this helps others dealing this issue.
Unconfigured Ad
Collapse
X
-
Hi,
Sorry but I don't understand what do you mean "incompatible". I used the annotation from UCSC, the cuffdiff does give me some differential test results, and there is not big error reported.
On the other hand, the galaxy exercises examples also use the UCSC annotation gtf file. Though they run the cuffcompare first.
Thanks for your information. I will try the iGenomes soon.
Keep in discussion.
fangquan
Leave a comment:
-
Hi Dario,
You are right. But if you don't go through compare step, you are still able to get some results from cuffdiff like this:
Performed 3204 isoform-level transcription difference tests
Performed 0 tss-level transcription difference tests
Performed 3179 gene-level transcription difference tests
Performed 0 CDS-level transcription difference tests
Performed 0 splicing tests
Performed 0 promoter preference tests
Performing 0 relative CDS output tests
It's no surprise there are some zero files because "Cuffdiff requires that transcripts in the input GTF be annotated with certain attributes in order to look for changes in primary transcript expression, splicing, coding output, and promoter use."
fangquan
Originally posted by Dario1984 View PostHi everyone,
The answer is found in the cufflinks documentation. You need to run cuffcompare, even if you are using a known annotation, because cuffcompare adds a couple of columns that cuffdiff critically depends on.
I did this without the -s option, as I didn't want any of the genes filtered, so you don't need the -s option, if you don't want it.
I agree that this is quite obscure and hard to find, especially since the argument description states The other source implies that a standard GTF file from UCSC should work, but this is misleading.
--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan Institute of Medical Research
Darlinghurst NSW 2010
Australia
Leave a comment:
-
About the Cufflinks / Cuffdiff problem
Hi all,
I was able to run:
cuffdiff -o ./cuffdiff refGene_chr1.GTF B6341/hg19_chr1_seg/accepted_hits.bam 4242/hg19_chr1_seg/accepted_hits.bam
the refGene_chr1.GTF was downloaded from UCSC-> select
Group: Gene and Gene Prediction Tracks
Track: RefSeq Genes
Table: refGene
I only select the Chr1 and cuffdiff result is like:
Performed 3204 isoform-level transcription difference tests
Performed 0 tss-level transcription difference tests
Performed 3179 gene-level transcription difference tests
Performed 0 CDS-level transcription difference tests
Performed 0 splicing tests
Performed 0 promoter preference tests
Performing 0 relative CDS output tests
Writing isoform-level FPKM tracking
Writing TSS group-level FPKM tracking
Writing gene-level FPKM tracking
Writing CDS-level FPKM tracking
I'm not sure if this makes any sense.
=====================================================
So the overall question is should we run cuffdiff directly or run cuffcompare first and then cuffdiff.
I welcome any further discussion.
fangquan
Leave a comment:
-
Douglas,
Thank you for your calrification and helpful suggestions.
Something I am still confused in my RNA-seq data analysis.
1, Tophat considers splicing in its mapping and BWA does not. It seems that we expect Tophat will get more properly paired reads. But the fact is that bwa get more. In my analysis, I just want to get the quantitative expression of each gene in samples. I just think it is always better considers splicing in mapping. You said that for differential expression analysis it is better to considers splicing in mapping. Is there some case (or in my case ) that BWA
mapping is acceptable? Or BWA is not suitable for RNA-seq mapping to genome?
2, If not for novel junction analysis, is it better to mapping RNA-seq to transcriptome, not genome? eg, for differential expression analysis. Mapping to transcriptome also have problems because one gene have serverl isofroms. This will let the reads have mutiple hits.
Thank you very much for your time.
Originally posted by DZhang View PostHi,
I should have been more careful in my wording. You are right that Cufflinks accepts SAM/BAM files generated by other programs. Both BWA and Tophat are mappers. Tophat considers splicing in its mapping and BWA does not. If you use BWA-generated BAM for differential expression analysis, you basically throw out the reads that overlap with the splicing junctions and I do not think it is a good idea.
Douglas
www.contigexpress.com
Leave a comment:
-
Hi,
I should have been more careful in my wording. You are right that Cufflinks accepts SAM/BAM files generated by other programs. Both BWA and Tophat are mappers. Tophat considers splicing in its mapping and BWA does not. If you use BWA-generated BAM for differential expression analysis, you basically throw out the reads that overlap with the splicing junctions and I do not think it is a good idea.
Douglas
Originally posted by fabrice View PostDouglas,
Why you think that cufflinks cannnot take BWA-produced BAM? In cufflinks website, they said cufflinks can take bam file from others mapping. At this moment, I just run into another problem for sort the bam file.
http://seqanswers.com/forums/showthread.php?t=12939
Leave a comment:
-
Pinki,
I think you need to set these parameters. Because you used single-end.
-m/--frag-len-mean <int> This is the expected (mean) fragment length. The default is 200bp.
Note: Cufflinks now learns the fragment length mean for each SAM file, so using this option is no longer recommended with paired-end reads.
-s/--frag-len-std-dev <int> The standard deviation for the distribution on fragment lengths. The default is 80bp.
Note: Cufflinks now learns the fragment length standard deviation for each SAM file, so using this option is no longer recommended with paired-end reads.
Originally posted by pinki999 View PostHi,
I am working on Solid data and its not paired-end. Even I get this warning message:
Warning: Using default Gaussian distribution due to insufficient paired-end reads in open ranges. It is recommended that correct paramaters (--frag-len-mean and --frag-len-std-dev) be provided.
> Map Properties:
> Upper Quartile: 242.20
> Read Type: 50bp single-end
> Fragment Length Distribution: Truncated Gaussian (default)
> Default Mean: 200
> Default Std Dev: 80
Is it alright to ignore this ?
Pinki
Leave a comment:
-
Douglas,
Why you think that cufflinks cannnot take BWA-produced BAM? In cufflinks website, they said cufflinks can take bam file from others mapping. At this moment, I just run into another problem for sort the bam file.
Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc
Originally posted by DZhang View PostHi fabrice,
1) It is a well known fact to me that given the same reference sequence(s) and the same set of reads, BWA in general maps more reads than Bowtie. I probably should have mentioned this earlier.
2) I do not believe Tophat will take BWA-produced BAM.
3) My suggestion is if a big portion of reads have low quality scores at the 3', I'd trim the 3' with fixed number of nts so you keep the read length uniform. Or go ahead with untrimmed reads and proceed to see whether the results make sense.
Douglas
www.contigexpress.com
Leave a comment:
-
Hi,
I am working on Solid data and its not paired-end. Even I get this warning message:
Warning: Using default Gaussian distribution due to insufficient paired-end reads in open ranges. It is recommended that correct paramaters (--frag-len-mean and --frag-len-std-dev) be provided.
> Map Properties:
> Upper Quartile: 242.20
> Read Type: 50bp single-end
> Fragment Length Distribution: Truncated Gaussian (default)
> Default Mean: 200
> Default Std Dev: 80
Is it alright to ignore this ?
Pinki
Leave a comment:
-
Hi fabrice,
1) It is a well known fact to me that given the same reference sequence(s) and the same set of reads, BWA in general maps more reads than Bowtie. I probably should have mentioned this earlier.
2) I do not believe Tophat will take BWA-produced BAM.
3) My suggestion is if a big portion of reads have low quality scores at the 3', I'd trim the 3' with fixed number of nts so you keep the read length uniform. Or go ahead with untrimmed reads and proceed to see whether the results make sense.
Douglas
Leave a comment:
-
Hi Douglas,
Thanks for your helpful suggestions.
1) use fastqc to check the quality of your reads
Yes. I have done these. I have trimed reads which quality less than 10. After trimed, the base quality is nice. All above 10.
2) use fastx toolkit to check the length distribution of your trimmed reads. One thing to find out is whether most of the trimming is from 3'-end. If it is, you may trim the reads by fixed number of nts so you have uniform read length.
After trim, the reads are not uniform. I did not trim the reads by fixed number of nts. I also trim the adaptor sequences and remove N at both side.
3) BWA alignment results are useful but I would use Bowtie to align the reads and check the mapping statistics, as Tophat uses Bowtie to map so the results are more relevant
If I used the output bam file from bwa, then used this bam file feed into cufflinks, do you think this will have some potential problems? I just think bwa will be better than bowtie (In my data, I found using bwa can get more properly paired reads).
After I want to just use Tophat to output junctions.bed, insertions.bed and deletions.bed.
It means using bwa->cufflinks to get the expression values. Tophat to estimate the junctions.
I hope there is not potential problem or you have better suggestions.
4) Start with Tophat default and mandatory parameters to see if you can get decent results.
When I donot do the trim and using Tophat, it works. So I just think the problem is caused by trimming the reads. This let the -r/--mate-inner-dist parameters are not correct.
Thank you very much for your time.
Originally posted by DZhang View PostHi fabrice,
Here are a few things for you to consider when trouble shooting:
1) use fastqc to check the quality of your reads
2) use fastx toolkit to check the length distribution of your trimmed reads. One thing to find out is whether most of the trimming is from 3'-end. If it is, you may trim the reads by fixed number of nts so you have uniform read length.
3) BWA alignment results are useful but I would use Bowtie to align the reads and check the mapping statistics, as Tophat uses Bowtie to map so the results are more relevant
4) Start with Tophat default and mandatory parameters to see if you can get decent results
Hope this helps.
Douglas
www.contigexpress.com
Leave a comment:
-
Hi fabrice,
Here are a few things for you to consider when trouble shooting:
1) use fastqc to check the quality of your reads
2) use fastx toolkit to check the length distribution of your trimmed reads. One thing to find out is whether most of the trimming is from 3'-end. If it is, you may trim the reads by fixed number of nts so you have uniform read length.
3) BWA alignment results are useful but I would use Bowtie to align the reads and check the mapping statistics, as Tophat uses Bowtie to map so the results are more relevant
4) Start with Tophat default and mandatory parameters to see if you can get decent results
Hope this helps.
Douglas
Leave a comment:
-
tophat-1.3.1.Linux_x86_64/tophat --mate-inner-dist 194 -p 6 --segment-mismatches 2 --segment-length 25 --mate-std-dev 25 --min-anchor 8 --splice-mismatches 0 --min-intron 50 --max-intron 5000000 --min-isoform-fraction 0.15 --max-multihits 40 --solexa1.3-quals -o mapping/7124_3 ~/bin/genome_index/tophat_indexes/Homo_sapiens.GRCh37.63/Homo_sapiens.GRCh37.63.dna.chromosome mapping/7124_3/7124_3_1.fq mapping/7124_3/7124_3_2.fq
Here mate-inner-dist=PCR size - 2*101 = 194.
But read1 and read2 have been trimed.
Originally posted by DZhang View PostHi fabrice,
Can you post your tophat command? Specifically I am looking for the library insert length for your reads.
Douglas
www.contigexpress.com
Leave a comment:
-
Hi fabrice,
Can you post your tophat command? Specifically I am looking for the library insert length for your reads.
Douglas
Leave a comment:
Latest Articles
Collapse
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
-
by SEQadmin2
Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.
We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing...-
Channel: Articles
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Yesterday, 11:13 AM
|
0 responses
16 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 11:13 AM
|
||
|
Started by SEQadmin2, Yesterday, 10:48 AM
|
0 responses
15 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 10:48 AM
|
||
|
Started by SEQadmin2, 10-15-2026, 10:52 AM
|
0 responses
35 views
0 reactions
|
Last Post
by SEQadmin2
10-15-2026, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
42 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
Leave a comment: