EDIT: here is the answer to what the OP really wants to do.
This page has a simple formula to convert FPKM to TPM. You may use the R function fpkmToTpm() to perform the conversion, available at this repository. The function is so short I can copy it here:
More or less clear what you want, totally unclear what you did so far. Did you run cufflinks? How did you run cufflinks? Did you see cufflinksoutputs transcript length?
my question How I can get gene length? I am looking for gene length to calculate TPM value instead of FPKM value. Is that clear?
More or less clear what you want, totally unclear what you did so far. Did you run
cufflinks
? How did you runcufflinks
? Did you seecufflinks
outputs transcript length?Here is what I got from cuufflinks:
See my updated answer, you do not need the gene lengths for the conversion.