[Bioc-devel] rbind'ing for SummarizedExperiment with no rows

Hervé Pagès hpages at fredhutch.org
Sun Apr 10 03:43:41 CEST 2016


Hi Aaron,

Sorry for that. This should be fixed in SummarizedExperiment 1.1.24.

Cheers,
H.

On 04/09/2016 03:56 AM, Aaron Lun wrote:
> Dear List, Martin;
>
> It looks like rbind'ing fails when the first argument is a
> SummarizedExperiment with no rows:
>
> library(SummarizedExperiment)
> example(SummarizedExperiment, echo=FALSE)
> rbind(se, se[0,]) # works okay; returns 'se'.
> rbind(se[0,], se) # fails
> # Error in rep.int(width, k) : invalid 'times' value
>
> It might be a fairly silly example, but I would have expected it to just
> give back 'se'.
>
> Cheers,
>
> Aaron
>
> Here's my session information:
>
> R version 3.3.0 beta (2016-04-08 r70447)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 14.04.4 LTS
>
> locale:
>   [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
>   [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
>   [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8
>   [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
>   [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats4    parallel  stats     graphics  grDevices utils     datasets
> [8] methods   base
>
> other attached packages:
> [1] SummarizedExperiment_1.1.23 Biobase_2.31.3
> [3] GenomicRanges_1.23.25       GenomeInfoDb_1.7.6
> [5] IRanges_2.5.42              S4Vectors_0.9.46
> [7] BiocGenerics_0.17.4
>
> loaded via a namespace (and not attached):
> [1] zlibbioc_1.17.1 tools_3.3.0     XVector_0.11.8
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



More information about the Bioc-devel mailing list