Mercurial > repos > iuc > raceid_clustering
diff scripts/trajectoryinspect.R @ 10:49776718ae90 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/raceid3 commit 0ffa71ef9f8d020fe7ba94502db8cec26fd8741f
author | iuc |
---|---|
date | Tue, 05 Nov 2024 16:33:40 +0000 |
parents | 0bff0ee0683a |
children |
line wrap: on
line diff
--- a/scripts/trajectoryinspect.R Wed Aug 24 18:09:06 2022 +0000 +++ b/scripts/trajectoryinspect.R Tue Nov 05 16:33:40 2024 +0000 @@ -4,8 +4,8 @@ args <- commandArgs(trailingOnly = TRUE) if (length(args) != 1) { - message(paste("VERSION:", VERSION)) - stop("Please provide the config file") + message(paste("VERSION:", VERSION)) + stop("Please provide the config file") } suppressWarnings(suppressPackageStartupMessages(require(RaceID))) @@ -34,7 +34,8 @@ ) write.table( head(bra$diffgenes$z, trjsid.numdiffgenes), - file = out.diffgenes) + file = out.diffgenes + ) par(mfrow = c(3, 2), cex = 0.5) print(do.call(plotmap, c(bra$scl, final = FALSE, fr = FALSE))) @@ -63,7 +64,7 @@ trjfid_procsom$s1d <- s1d ps <- do.call(procsom, c(trjfid_procsom)) - y <- ltr@sc@cpart[n$f] + y <- ltr@sc@cpart[n$f] fcol <- ltr@sc@fcol trjfid_plotheat$xpart <- y @@ -72,26 +73,32 @@ test$side <- 3 test$line <- 3 - ##Plot average z-score for all modules derived from the SOM: + ## Plot average z-score for all modules derived from the SOM: trjfid_plotheat$x <- ps$nodes.z trjfid_plotheat$ypart <- unique(ps$nodes) print(do.call(plotheatmap, c(trjfid_plotheat))) - print(do.call(mtext, c("Average z-score for all modules derived from SOM", - test))) - ##Plot z-score profile of each gene ordered by SOM modules: + print(do.call(mtext, c( + "Average z-score for all modules derived from SOM", + test + ))) + ## Plot z-score profile of each gene ordered by SOM modules: trjfid_plotheat$x <- ps$all.z trjfid_plotheat$ypart <- ps$nodes print(do.call(plotheatmap, c(trjfid_plotheat))) - print(do.call(mtext, c(paste0("z-score profile of each gene", - "ordered by SOM modules"), test))) - ##Plot normalized expression profile of each gene ordered by SOM modules: + print(do.call(mtext, c(paste0( + "z-score profile of each gene", + "ordered by SOM modules" + ), test))) + ## Plot normalized expression profile of each gene ordered by SOM modules: trjfid_plotheat$x <- ps$all.e trjfid_plotheat$ypart <- ps$nodes print(do.call(plotheatmap, c(trjfid_plotheat))) - print(do.call(mtext, c(paste0("Normalized expression profile of each", - "gene ordered by SOM modules"), test))) - ##Plot binarized expression profile of each gene - ##(z-score < -1, -1 < z-score < 1, z-score > 1) + print(do.call(mtext, c(paste0( + "Normalized expression profile of each", + "gene ordered by SOM modules" + ), test))) + ## Plot binarized expression profile of each gene + ## (z-score < -1, -1 < z-score < 1, z-score > 1) trjfid_plotheat$x <- ps$all.b trjfid_plotheat$ypart <- ps$nodes print(do.call(plotheatmap, c(trjfid_plotheat)))