Skip to content
Prev 7101 / 21312 Next

[Bioc-devel] requirement for named assays in SummarizedExperiment

Hi,

After talking with others the vote was against enforcing names on 
assays() and for positional matching if all names are NULL. A mixture of 
names and NULL throws an error.

example(SummarizedExperiment)

## all named
 > se2 = se1
 > assays(cbind(se1, se2))
List of length 1
names(1): counts

## mixture of names and NULL -> error
 > names(assays(se1)) = NULL
 > assays(cbind(se1, se2))
Error in assays(cbind(se1, se2)) :
   error in evaluating the argument 'x' in selecting a method for 
function 'assays': Error in .bind.arrays(args, cbind, "assays") :
   elements in ?assays? must have the same names

## all NULL -> positional matching
 > names(assays(se2)) = NULL
 > assays(cbind(se1, se2))
List of length 1

If we find common use cases where positional matching is needed with a 
mixture of names and NULL we can always relax this constraint.

Changes are in 1.19.46.

Valerie
On 03/06/2015 08:20 AM, Valerie Obenchain wrote: