I'm trying to use the "transcript-structure level features" in CummeRbund made possible by including a GTF in the readCufflinks command. I'm wondering if these features are limited to certain genomes and if sample/test data exist.
The readCufflinks command appears fine and I haven't had problems with any other functions, but the features(), makeGeneRegionTrack(), and subsequent commands fail.
> cuff<-readCufflinks(gtfFile="GmGeneExonGFFixd.gtf",genome="Glyma1.1")
....Writing replicates Table
Reading GTF file
Writing GTF features to 'features' table...
Reading ....
> myGeneId<-"XLOC_000001"
> myGene<-getGene(cuff,myGeneId)
> myGene
CuffGene instance for gene XLOC_000001 ...
> head(fpkm(myGene))
gene_id sample_name fpkm conf_hi conf_lo quant_status
1 XLOC_000001 S2 0.1115820 0.224128 0.0000000 OK
2 XLOC_000001 S3 0.0543526 0.127996 0.0000000 OK ...
> head(features(myGene))
[1] seqnames start end width strand source type score phase gene_id gene_name isoform_id
<0 rows> (or 0-length row.names)
> genetrack<-makeGeneRegionTrack(myGene)
Error in `[.data.frame`(features(object), , featCols) :
undefined columns selected
> trackList<-list()
> myStart<-min(features(myGene)$start)
Warning message:
In min(features(myGene)$start) :
no non-missing arguments to min; returning Inf
Any help would be greatly appreciated.
The readCufflinks command appears fine and I haven't had problems with any other functions, but the features(), makeGeneRegionTrack(), and subsequent commands fail.
> cuff<-readCufflinks(gtfFile="GmGeneExonGFFixd.gtf",genome="Glyma1.1")
....Writing replicates Table
Reading GTF file
Writing GTF features to 'features' table...
Reading ....
> myGeneId<-"XLOC_000001"
> myGene<-getGene(cuff,myGeneId)
> myGene
CuffGene instance for gene XLOC_000001 ...
> head(fpkm(myGene))
gene_id sample_name fpkm conf_hi conf_lo quant_status
1 XLOC_000001 S2 0.1115820 0.224128 0.0000000 OK
2 XLOC_000001 S3 0.0543526 0.127996 0.0000000 OK ...
> head(features(myGene))
[1] seqnames start end width strand source type score phase gene_id gene_name isoform_id
<0 rows> (or 0-length row.names)
> genetrack<-makeGeneRegionTrack(myGene)
Error in `[.data.frame`(features(object), , featCols) :
undefined columns selected
> trackList<-list()
> myStart<-min(features(myGene)$start)
Warning message:
In min(features(myGene)$start) :
no non-missing arguments to min; returning Inf
Any help would be greatly appreciated.
Comment