Comments (5)
Hi,
I described how to export the counts matrix within the vignette focusing on analysis.
https://mcanouil.github.io/NACHO/articles/NACHO-analysis.html
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)
from nacho.
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".
Extra filters should be applied based on quality columns (or just is_outlier
column), this is why I did not implement such function, because it will have a lot of parameters for QC depending on dataset.
from nacho.
Ok, didn't see / find this intuitively - this looks great, thank you!
from nacho.
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 👍
from nacho.
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!
from nacho.
Related Issues (20)
- Using NACHO for single catridge assays HOT 3
- Background normalization? HOT 1
- Question about sample sheet contents and formatting HOT 3
- Release NACHO 1.0.1
- Move to `data.table` framework HOT 1
- Visualisation after normalise function HOT 2
- Error: invalid first argument HOT 2
- Release NACHO 1.0.2 HOT 1
- Release NACHO 1.1.0
- PlexSet Analysis HOT 1
- load_rcc doesnt recognize subfolder HOT 7
- Pos and neg controls in RCC file HOT 3
- Allow named vector for RCC file in `load_rcc`? HOT 1
- Is it possible to upload a sample sheet using the NACHO shiny app? HOT 3
- Release NACHO 2.0.0
- Change to new cran checks badge URL HOT 2
- Differing Values in QC plots HOT 4
- Question about R^2 values in positive control linearity QC HOT 3
- Release NACHO 2.0.6 HOT 1
- excluding POS_F from positive control linearity calculation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nacho.