This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(devtools) | |
| #### Specific datasets | |
| ## Specific time point Rds | |
| source_gist("https://gist.github.com/FloWuenne/df2dca6804f562ed90db26a04508af31", filename = "Create_clustering_module_Rds.R") | |
| ## Specific time point .Rdata | |
| source_gist("https://gist.github.com/FloWuenne/dfd1e00c198b2ae1adeb16720a844441",, filename = "Create_clustering_module_Rds.R") | |
| #### All datasets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(tidyr) | |
| ## Define S4 object with required components | |
| Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame", | |
| metadata="data.frame", | |
| norm_exprs="data.frame", | |
| marker_list="data.frame")) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Build the ClusterTree from Seurat object | |
| expression_seurat <- BuildClusterTree(expression_seurat, | |
| do.plot=TRUE) | |
| ## Plot custom phylogenetic tree that is more easily interpretable | |
| png(filename="./with_Batch_Cycle_Correction/ClusterTree.png", width=1800, height=1700, bg = "white", res = 150) | |
| plot(ladderize([email protected][[1]]), adj=0, | |
| label.offset=50, | |
| edge.width=1) | |
| nodelabels(frame="circle",bg="grey") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Transform_to_feather" | |
| author: "Florian Wuennemann" | |
| date: "April 20, 2018" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(tidyr) | |
| ## Define S4 object with required components | |
| Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame", | |
| metadata="data.frame", | |
| norm_exprs="data.frame", | |
| marker_list="data.frame")) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(tidyr) | |
| ## Define S4 object with required components | |
| Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame", | |
| metadata="data.frame", | |
| norm_exprs="data.frame", | |
| marker_list="data.frame")) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(dplyr) | |
| library(tidyr) | |
| ## Define S4 object with required components | |
| Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame", | |
| metadata="data.frame", | |
| norm_exprs="data.frame", | |
| marker_list="data.frame")) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Create vector with timepoints | |
| time_points <- c("E14.5","E16.5","E18.5","P1","P4","P7") | |
| for(time in time_points){ | |
| rds_object <- readRDS(paste("/home/wueflo00/project/Dropseq/Andelfingerlab_Dropseq/Heart_Maturation/Analysis/Objects/",time,".expression_seurat.renamed_clusters.Rds",sep="")) | |
| raw_umi <- as.matrix([email protected]) | |
| metadata <- [email protected] | |
| raw_umi <- raw_umi[,rownames(metadata)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Read in summary file from Drop-seq pipe | |
| infile = | |
| DGE_info <- read.table(infile, | |
| sep="\t", | |
| header=T) | |
| ## Correlation Number of genic reads vs num of genes detected per cell | |
| ggplot(DGE_info,aes(NUM_GENIC_READS,NUM_GENES,col=NUM_TRANSCRIPTS)) + | |
| geom_point() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) | |
| ``` | |
| # Load libraries | |
| ```{r} | |
| library(refGenome) | |
| library(dplyr) |