fmicompbio / footprintR

Tools for working with single-molecule footprinting data
https://fmicompbio.github.io/footprintR/
Other
0 stars 0 forks source link

How to deal with assays without names? #12

Closed csoneson closed 1 week ago

csoneson commented 1 week ago
mbstadler commented 1 week ago

Good point! What about replacing .getReadLevelAssayNames() by .getReadLevelAssayIndices(), so we don't have to impose anything on top of SummarizedExperiment? It seems that the change would be not so big. .getReadLevelAssayNames() is only used three times: in .checkSEValidity, its unit test and subsetReads, and it seems to me that all these cases can also use an index returned from it.

csoneson commented 1 week ago

Yes, I think we can do that. We should probably add some tests for the functions that specify assay.type as well, to make sure they do the right thing.

csoneson commented 1 week ago

All assays are now required to be named, implemented in https://github.com/fmicompbio/footprintR/commit/4c51458376a686a78590422b1379031471f8010b