pneuvial / c3co

Inferring cancer cell clonality from copy-number data
5 stars 1 forks source link

TASK: Turn c3co() into generic function #36

Open HenrikBengtsson opened 6 years ago

HenrikBengtsson commented 6 years ago

Instead of having to specify either argument dat or segDat for c3co(), e.g.

fit <- c3co(dat = NULL, parameters.grid, segDat = segDat)

by turning c3co() into a generic function we can write c3co() S3 methods methods for dat and segDat classes (Issue #30) so it can be called as:

fit1 <- c3co(dat, parameters.grid)
fit2 <- c3co(segDat, parameters.grid)

and S3 methods dispatching with make sure the proper method is called.

HenrikBengtsson commented 5 years ago

Note to self: I just implemented this in commit 05405a9 (part of develop branch) and it works. I should do a new c3co 0.4.1 release but if I forget, this is a note saying develop branch is ok.