# HG changeset patch # User iuc # Date 1682086157 0 # Node ID 3a083c78896e152394e2b04835aaa3b39063c513 # Parent d1f7fa5bb3cb0b8d6424c64b791bc12861a4c583 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ruvseq commit 30117fce22f3771c9c0c13e70c3ad14b694de6e2 diff -r d1f7fa5bb3cb -r 3a083c78896e get_deseq_dataset.R --- a/get_deseq_dataset.R Fri Jul 23 22:37:45 2021 +0000 +++ b/get_deseq_dataset.R Fri Apr 21 14:09:17 2023 +0000 @@ -14,7 +14,7 @@ } } - if (!use_txi & has_header) { + if (!use_txi && has_header) { countfiles <- lapply(as.character(sample_table$filename), read.delim, row.names = 1) tbl <- do.call("cbind", countfiles) colnames(tbl) <- rownames(sample_table) # take sample ids from header @@ -35,7 +35,7 @@ colData = subset(sample_table, select = -filename), design = design_formula ) - } else if (!use_txi & !has_header) { + } else if (!use_txi && !has_header) { # construct the object from HTSeq files dds <- DESeqDataSetFromHTSeqCount( diff -r d1f7fa5bb3cb -r 3a083c78896e ruvseq.R --- a/ruvseq.R Fri Jul 23 22:37:45 2021 +0000 +++ b/ruvseq.R Fri Apr 21 14:09:17 2023 +0000 @@ -1,7 +1,8 @@ # setup R error handling to go to stderr library("getopt") -options(show.error.messages = F, error = function() { - cat(geterrmessage(), file = stderr()); q("no", 1, F) +options(show.error.messages = FALSE, error = function() { + cat(geterrmessage(), file = stderr()) + q("no", 1, FALSE) }) options(stringAsFactors = FALSE, useFancyQuotes = FALSE) @@ -17,7 +18,8 @@ "plots", "p", 1, "character", "header", "H", 0, "logical", "txtype", "y", 1, "character", - "tx2gene", "x", 1, "character"), # a space-sep tx-to-gene map or GTF file (auto detect .gtf/.GTF) + "tx2gene", "x", 1, "character", # a space-sep tx-to-gene map or GTF file (auto detect .gtf/.GTF) + "ruv_ncounts", "ruv_ncounts", 0, "logical"), byrow = TRUE, ncol = 4) opt <- getopt(spec) @@ -155,6 +157,7 @@ min_k <- opt$min_k max_k <- opt$max_k min_c <- opt$min_mean_count +ruv_ncounts <- ifelse(is.null(opt$ruv_ncounts), FALSE, TRUE) sample_json <- fromJSON(opt$sample_json) sample_paths <- sample_json$path sample_names <- sample_json$label @@ -183,8 +186,14 @@ df <- data.frame(identifier = rownames(unwanted_variation)) df <- cbind(df, unwanted_variation) colnames(df)[2] <- "condition" - write.table(df, file = paste0("batch_effects_", name, ".tabular"), sep = "\t", quote = F, row.names = F) + write.table(df, file = paste0("uv_batch_effects_", name, ".tabular"), sep = "\t", quote = FALSE, row.names = FALSE) + if (ruv_ncounts) { + ruvnorm_counts <- normCounts(set) + ruvnorm_df <- data.frame(geneID = rownames(ruvnorm_counts), ruvnorm_counts) + write.table(ruvnorm_df, file = paste0("ruv_norm_counts_", name, ".tabular"), sep = "\t", quote = FALSE, row.names = FALSE) + } } + } # close the plot device diff -r d1f7fa5bb3cb -r 3a083c78896e ruvseq.xml --- a/ruvseq.xml Fri Jul 23 22:37:45 2021 +0000 +++ b/ruvseq.xml Fri Apr 21 14:09:17 2023 +0000 @@ -1,8 +1,12 @@ from RNA-seq data + + ruvseq + ruvseq + 1.26.0 - 0 + 1 bioconductor-ruvseq @@ -60,6 +64,10 @@ --tx2gene mapping.txt #end if #end if + +#if $ruv_ncounts == 1: + --ruv_ncounts +#end if ]]> @@ -117,10 +125,17 @@ + - + + + + ruv_ncounts == True + pdf == True @@ -232,6 +247,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +