Mercurial > repos > artbio > sr_bowtie_dataset_annotation
changeset 10:fd4a60fc3fca draft default tip
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sr_bowtie_dataset_annotation commit cf30b4fab90cf7910bb2900a05b85ca3344aae59
| author | artbio |
|---|---|
| date | Tue, 15 Nov 2022 00:45:36 +0000 |
| parents | 6bf9de09aa74 |
| children | |
| files | barplot.r sr_bowtie_dataset_annotation.xml test-data/unmatched_6.fa |
| diffstat | 3 files changed, 544 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/barplot.r Mon Apr 11 00:27:41 2022 +0000 +++ b/barplot.r Tue Nov 15 00:45:36 2022 +0000 @@ -1,13 +1,13 @@ if (length(commandArgs(TRUE)) == 0) { - system("Rscript barplot.r -h", intern = F) + system("Rscript barplot.r -h", intern = FALSE) q("no") } # load packages that are provided in the conda env -options(show.error.messages = F, +options(show.error.messages = FALSE, error = function() { cat(geterrmessage(), file = stderr()) - q("no", 1, F) + q("no", 1, FALSE) } ) loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") @@ -35,7 +35,7 @@ opt <- parse_args(OptionParser(option_list = option_list), args = commandArgs(trailingOnly = TRUE)) -annotations <- read.delim(opt$input, header = F) +annotations <- read.delim(opt$input, header = FALSE) colnames(annotations) <- c("sample", "class", "percent_of_reads", "total") annotations$percent <- round(annotations$percent_of_reads / annotations$total * 100, digits = 2) @@ -51,7 +51,7 @@ geom_bar(position = "fill", stat = "identity") + facet_wrap(~sample, ncol = 3) + geom_label_repel(aes(label = percent), position = position_fill(vjust = 0.5), - size = 2, show.legend = F) + + size = 2, show.legend = FALSE) + coord_polar(theta = "y") + labs(x = "Class fractions (%)") + scale_fill_manual(values = mycolors) +
--- a/sr_bowtie_dataset_annotation.xml Mon Apr 11 00:27:41 2022 +0000 +++ b/sr_bowtie_dataset_annotation.xml Tue Nov 15 00:45:36 2022 +0000 @@ -1,4 +1,4 @@ -<tool id="sr_bowtie_dataset_annotation" name="Annotate smRNA dataset" version="2.7"> +<tool id="sr_bowtie_dataset_annotation" name="Annotate smRNA dataset" version="2.8"> <description>by iterative alignments with sRbowtie</description> <requirements> <requirement type="package" version="1.3.1">bowtie</requirement> @@ -8,14 +8,14 @@ </requirements> <command detect_errors="exit_code"><