-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Provide easy means to export normalized Counts #17
Comments
Hi, I described how to export the counts matrix within the vignette focusing on analysis. expr_counts <- GSE70970[["nacho"]] %>%
filter(grepl("Endogenous", CodeClass)) %>%
select(IDFILE, Name, Count_Norm) %>%
pivot_wider(names_from = "Name", values_from = "Count_Norm") %>% # "Name" can be replaced with "Accession"
column_to_rownames("IDFILE") %>%
t() The code above could end up in a function like the following one (quick draft). library(NACHO)
get_counts <- function(
nacho,
codeclass = "Endogenous",
rownames = "IDFILE",
colnames = c("Name", "Accession")
) {
nacho[["nacho"]] %>%
dplyr::filter(grepl(codeclass, .data[["CodeClass"]])) %>%
dplyr::select(c("IDFILE", "Name", "Count_Norm")) %>%
tidyr::pivot_wider(names_from = colnames[1], values_from = "Count_Norm") %>%
tibble::column_to_rownames(rownames) %>%
t()
}
get_counts(GSE74821) |
Ok, didn't see / find this intuitively - this looks great, thank you! |
Could be potentially cool to have some exporting functionality in the Shiny Applicaiton but from the commandline this is more than I expected and I'm absolutely happy with this 👍 |
I'll think more about adding a function to ease the exportation and in that case, I'll probably add some download button using that function. The function defined above, does not exclude bad samples nor bad "genes". |
Thats a valid and good concern. Thank you for the insights / comments. I do think there would be a benefit to allow this export, but also see the concerns here! |
Thanks for creating this tool / method! The Shiny App / general functionality is really an improvement and works pretty good. However, I'd like to export the data (e.g. normalized counts) to a separate TSV/CSV file to do downstream analyses with it, which is currently not very straightforward.
It would be very nice to see an export functionality - either in the Shiny App or (also good) in the R package in general. Couldn't find anything unfortunately...
The text was updated successfully, but these errors were encountered: