[BioC] Bug in marray, indexing single gene in maInd2Coord
Marcus Davy
MDavy at hortresearch.co.nz
Mon May 2 18:09:18 CEST 2005
maInd2Coord cannot index a single gene, or vector of length 1.
> L <- new("marrayLayout", maNgr = 4, maNgc = 4, maNsr = 22, maNsc = 24)
# Index to Coord fails for vector of length 1 (scalar)
> maInd2Coord(5, L)
Error in "colnames<-"(`*tmp*`, value = c("Grid.R", "Grid.C", "Spot.R", :
attempt to set colnames on object with less than two dimensions
# Index to Coord ok for vector of >1
> maInd2Coord(5:6, L)
Grid.R Grid.C Spot.R Spot.C
[1,] 1 1 1 5
[2,] 1 1 1 6
> # Can use a single gene Coord to obtain an index
> maCoord2Ind(maInd2Coord(5:6, L)[1,,drop=F], L)
[1] 5
Present in packages;
packageDescription("marray", field="Version")
[1] "1.5.25"
packageDescription("marray", field="Version")
[1] "1.5.30"
on windows.
Marcus
Marcus Davy
Bioinformatics
______________________________________________________
The contents of this e-mail are privileged and/or confidenti...{{dropped}}
More information about the Bioconductor
mailing list