Is there any R packages or programs could help me to calculate **effective length** of every isoform or gene?
We know the importance of effective length when we calculate TPM for isoforms or genes . but we can not got it from featurecount program. Salmon can get it ,but it is only for isoforms.
If we use featurecount, we can get gens quantification beacuse of aligning sequences to genome, but we use Salmon, we only get isoforms quantification.
however,TPM is the percentage of FPKM,Are they different?
To get gene-level quantification from Salmon you simply sum the counts/TPM for all isoforms annotated as belonging to the same gene. This can fx easily be done with the tool tximport as described in the vignette. As an alternative you can use IsoformSwitchAnalyzeR by first using the "importIsoformExpression" and afterwards using isoformToGeneExp - which supports providing the gene-isoform relationship as a GTF file. You can read more about the advantages and disadvantages of such approaches here.
And no TPM are not the percentages of FPKM (those are typically called PSI or Isoform-fraction (IF)). TPM is an abundance measure just like FPKM except it is better when using RNASeq data since it provides more accurate abundance measures. You can read more about RNASeq abundance units here.