Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative to newBASiCS_Data? #175

Open
catavallejos opened this issue May 21, 2020 · 7 comments
Open

Alternative to newBASiCS_Data? #175

catavallejos opened this issue May 21, 2020 · 7 comments

Comments

@catavallejos
Copy link
Owner

The newBASiCS_Data is legacy from the pre-SingleCellExperiment world. Probably good to create a new function that directly updates a SingleCellExperiment object to add spike-in information and/or batch info. Here is a prototype

myFun <- function(SCE, BatchInfo = NULL, SpikeInput = NULL) {
     colData(SCE)$BatchInfo <- BatchInfo
     metadata(SCE)$SpikeInput <- SpikeInput
     return(SCE)
}

The prototype above could be extended to add spike-in counts as altExp.

@catavallejos catavallejos changed the title Alternative to newBASiCS_Data Alternative to newBASiCS_Data? May 21, 2020
@catavallejos
Copy link
Owner Author

@alanocallaghan if you agree with this change, I'd remove newBASiCS_Data from the workflow as it may be eventually deprecated. Instead, I'd just update the existent SingleCellExperiment objects

@alanocallaghan
Copy link
Collaborator

Yeah as noted in #133 it's a bit clunky, I'd maybe remove it from the workflow as it currently requires you to work around the implementation of SCE objects

@catavallejos
Copy link
Owner Author

Thanks! Yes, I forgot about #133 - thanks for the reminder! I am going through that section in the workflow, so I will remove the use of newBASiCS_Data

@alanocallaghan
Copy link
Collaborator

alanocallaghan commented May 21, 2020

I think it should be deprecated for next release. Also a note, when changing it we should probably also store the spike-in concentrations in rowdata of altExp, since it ensures matching identifiers etc (#169)

@catavallejos
Copy link
Owner Author

I agree, that’s a much more elegant way to add the spike in info

@alanocallaghan
Copy link
Collaborator

Great! I'll make a kanban project for 3.12 to note the issues we can try to get done by next release

@alanocallaghan alanocallaghan added this to To do in 3.12 release May 21, 2020
@catavallejos
Copy link
Owner Author

Yes please! I am becoming a big fan of kanban projects 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3.12 release
  
In progress
Development

No branches or pull requests

2 participants