Question: FPKM matrix after stringtie using ballgown
gravatar for Vasu
6 months ago by
Vasu320 wrote:


After stringtie step, I estimated transcript abundances and created table counts for Ballgown.

In a folder "ballgown", I have the all the sample subdirectories inside this folder "ballgown". Each sample subdirectory have following files:


To get the FPKM matrix I did like below:

library(ballgown) <- ballgown(dataDir = "ballgown", samplePattern = "TCGA", meas="all")

Sun Aug 25 14:12:19 2018
Sun Aug 25 14:12:19 2018: Reading linking tables
Sun Aug 25 14:12:29 2018: Reading intron data files
Sun Aug 25 15:00:38 2018: Merging intron data
Killed !

I tried couple of times but I got the same error. What could be wrong here? Did I do something wrong?

Thank you

rna-seq fpkm ballgown stringtie • 519 views
ADD COMMENTlink modified 6 months ago by Adrian Pelin2.2k • written 6 months ago by Vasu320

Hi, See Adrian's answer below. You don't specifically need to run ballgown if you are just interested in FPKM values.

Btw, if you had large no. of samples, ballgown might have died of memory. Recently I was attempting a ballgown run on >80 samples on a desktop (8Gb RAM) where it died, but ran as expected on a server.

ADD REPLYlink written 6 months ago by Amitm1.6k

Yes I understand that. I have almost 1200 samples. I didn't use -A argument with stringtie. I have the ballgown outputs. Should I run stringtie again with -A?

ADD REPLYlink written 6 months ago by Vasu320

That would be re-running StringTie for all your 1200 samp. again. Probably it could be easier if you could run ballgown on a system with high RAM available. If not and time notwithstanding, you could re-run StringTie with -A param.

There could be other solutions depending what you are question is. Are you looking for transcript isoform level quantification specifically. If not then you could generate count (gene level) data from BAMs using HTSeq-count or featureCounts tools. These would have much less demand for compute resource.

There is another way of checking isoform level quantification without using StringTie (or any other transcriptome assembly tool). You could use tools like kallisto.

ADD REPLYlink written 6 months ago by Amitm1.6k

Or can I use t_data.ctab which has transcripts and FPKM also. I can cut the two columns for each sample and then join all into a single file?

Like mentioned here FPKM matrix (Check the last comment)

ADD REPLYlink modified 6 months ago • written 6 months ago by Vasu320

brilliant! That should work. I was in the impression somehow that they are binary files.

ADD REPLYlink written 6 months ago by Amitm1.6k

Thankyou, will follow that.

ADD REPLYlink modified 6 months ago • written 6 months ago by Vasu320
gravatar for Adrian Pelin
6 months ago by
Adrian Pelin2.2k
Adrian Pelin2.2k wrote:

Not sure you need ballgown to get FPKMs. My understanding is ballgown is needed for differential analysis, stringtie can output TPM and FPKM.

When I run stringite, I pass the argument "-A output_dir/gene_abundances.tsv", and the gene_abundances.tsv has FPKM and TPM.

Hope this helps, A

ADD COMMENTlink written 6 months ago by Adrian Pelin2.2k

But with stringtie I didn't pass that argument. I have the above mentioned files and trying to use ballgown to get FPKM matrix. It is mentioned in this FPKM matrix

ADD REPLYlink written 6 months ago by Vasu320
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: 1141 users visited in the last hour