Hello,
I performed below command. Why counts of rows of "fpkm_matrix" inconsistent with that of "counts"?
================
library(countToFPKM)
counts <- read.delim("XXX.txt", header=T, sep="\t",row.names=1) #read counts were calculated by htseq-counts. annotation file was "gencode.v22.annotation.gtf"
gene.annotations <- read.table("featurelength.txt", sep="\t", header=TRUE) #featurelength were calculated by "GenomicFeatures". annotation file was "gencode.v22.annotation.gtf"
featureLength <- gene.annotations$featurelength
samples.metrics <- read.table("meanFragmentLength_adapter.txt", sep="\t", header=TRUE) #meanFragmentLength were calculated by Picard
meanFragmentLength <- samples.metrics$meanFragmentLength
fpkm_matrix <- fpkm (counts, featureLength, meanFragmentLength)
nrow(counts)
[1] 60483
nrow(gene.annotations)
[1] 60483
nrow(fpkm_matrix)
[1] 42954
=================
Why are these results ("nrow(counts)" and "nrow(fpkm_matrix)") not consistent?
Hello,
I performed below command. Why counts of rows of "fpkm_matrix" inconsistent with that of "counts"?
================
library(countToFPKM)
counts <- read.delim("XXX.txt", header=T, sep="\t",row.names=1) #read counts were calculated by htseq-counts. annotation file was "gencode.v22.annotation.gtf"
gene.annotations <- read.table("featurelength.txt", sep="\t", header=TRUE) #featurelength were calculated by "GenomicFeatures". annotation file was "gencode.v22.annotation.gtf"
featureLength <- gene.annotations$featurelength
samples.metrics <- read.table("meanFragmentLength_adapter.txt", sep="\t", header=TRUE) #meanFragmentLength were calculated by Picard
meanFragmentLength <- samples.metrics$meanFragmentLength
fpkm_matrix <- fpkm (counts, featureLength, meanFragmentLength)
nrow(counts)
[1] 60483
nrow(gene.annotations)
[1] 60483
nrow(fpkm_matrix)
[1] 42954
=================
Why are these results ("nrow(counts)" and "nrow(fpkm_matrix)") not consistent?