Bug in marray, indexing single gene in maInd2Coord
0
0
Entering edit mode
Marcus Davy ▴ 680
@marcus-davy-374
Last seen 10.3 years ago
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}}
• 683 views
ADD COMMENT

Login before adding your answer.

Traffic: 996 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6