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

formatData() function improvement #8

Open
julien-roux opened this issue Dec 14, 2016 · 1 comment
Open

formatData() function improvement #8

julien-roux opened this issue Dec 14, 2016 · 1 comment

Comments

@julien-roux
Copy link
Contributor

julien-roux commented Dec 14, 2016

In this function, the expressionSet phenoData are taken from the processed expression values data frame.

Wouldn't it be better to use the annotation retrieved with the getAnnotation() function?

@julien-roux
Copy link
Contributor Author

In fact, is this function really necessary?

It would be possible to add a format argument to getData() to set the returned format of the data. Possible values:

  • As it is now :
   If experimentId is not specified, returns a list of data frames
   with data from all experiments for targeted species and data type.
   If experimentId is specified, returns a data frame with data from
   this experiment.
bgee <- Bgee$new(species = "Mus_musculus", dataType = "rna_seq")
dataMouseGSE30617 <- getData(bgee, experimentId = "GSE30617")
library(dplyr)
as_tibble(dataMouseGSE30617) ## This is a format we could return data into
## Operations on tibble are then easy:
as_tibble(dataMouseGSE30617) %>% select(Gene.ID, Library.ID, TPM) %>% spread(key=Library.ID, value=TPM)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant