Mercurial > repos > artbio > small_rna_signatures
changeset 12:aa5e2c64dff8 draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_signatures commit 6806c0677e53d52164707faeb36947987f5c500a
| author | artbio |
|---|---|
| date | Sat, 22 Oct 2022 23:49:52 +0000 |
| parents | 8d3ca9652a5b |
| children | 124f404b0fe7 |
| files | overlapping_reads.xml signature.r signature.xml test-data/global.pdf test-data/lattice.pdf |
| diffstat | 5 files changed, 21 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/overlapping_reads.xml Sat Oct 23 22:55:19 2021 +0000 +++ b/overlapping_reads.xml Sat Oct 22 23:49:52 2022 +0000 @@ -1,16 +1,16 @@ -<tool id="overlapping_reads" name="Get overlapping reads" version="3.3"> +<tool id="overlapping_reads" name="Get overlapping reads" version="3.4.1"> <description /> <requirements> - <requirement type="package" version="0.16.0.1=py37h45aed0b_3">pysam</requirement> - <requirement type="package" version="1.13=h8c37831_0">samtools</requirement> + <requirement type="package" version="0.18.0">pysam</requirement> </requirements> <stdio> <exit_code range="1:" level="fatal" description="Tool exception" /> </stdio> <command detect_errors="exit_code"><![CDATA[ - samtools index '$input' && + ln -f -s $input.metadata.bam_index input.bam.bai && + ln -s $input input.bam && python '$__tool_directory__'/overlapping_reads.py - --input '$input' + --input input.bam --minquery '$minquery' --maxquery '$maxquery' --mintarget '$mintarget'
--- a/signature.r Sat Oct 23 22:55:19 2021 +0000 +++ b/signature.r Sat Oct 22 23:49:52 2022 +0000 @@ -1,8 +1,8 @@ ## Setup R error handling to go to stderr -options(show.error.messages = F, +options(show.error.messages = FALSE, error = function() { cat(geterrmessage(), file = stderr()) - q("no", 1, F) + q("no", 1, FALSE) } ) warnings() @@ -26,12 +26,12 @@ ) parser <- OptionParser(usage = "%prog [options] file", option_list = option_list) args <- parse_args(parser) - + # data frames implementation -h_dataframe <- read.delim(args$h_dataframe, header = F) +h_dataframe <- read.delim(args$h_dataframe, header = FALSE) colnames(h_dataframe) <- c("chrom", "overlap", "sig", "z-score") h_dataframe$sig <- h_dataframe$sig * 100 # to get probs in % -z_dataframe <- read.delim(args$z_dataframe, header = F) +z_dataframe <- read.delim(args$z_dataframe, header = FALSE) colnames(z_dataframe) <- c("chrom", "overlap", "sig", "z-score") # functions @@ -77,7 +77,7 @@ pch = 19, lwd = 2, as.table = TRUE, layout = c(2, 12), - newpage = T, + newpage = TRUE, ...) plot(p) dev.off()
--- a/signature.xml Sat Oct 23 22:55:19 2021 +0000 +++ b/signature.xml Sat Oct 22 23:49:52 2022 +0000 @@ -1,20 +1,20 @@ -<tool id="signature" name="Small RNA Signatures" version="3.3>"> +<tool id="signature" name="Small RNA Signatures" version="3.4.1>"> <description /> <requirements> - <requirement type="package" version="1.13=h8c37831_0">samtools</requirement> - <requirement type="package" version="1.21.3=py37h31617e3_0">numpy</requirement> - <requirement type="package" version="0.16.0.1=py37h45aed0b_3">pysam</requirement> - <requirement type="package" version="1.7.1=r40hc72bb7e_0">r-optparse</requirement> - <requirement type="package" version="0.6_29=r40hc72bb7e_1">r-latticeextra</requirement> - <requirement type="package" version="2.3=r40hc72bb7e_1003">r-gridextra</requirement> + <requirement type="package" version="1.23.4">numpy</requirement> + <requirement type="package" version="0.18.0">pysam</requirement> + <requirement type="package" version="1.7.3">r-optparse</requirement> + <requirement type="package" version="0.6_30">r-latticeextra</requirement> + <requirement type="package" version="2.3">r-gridextra</requirement> </requirements> <stdio> <exit_code range="1:" level="fatal" description="Tool exception" /> </stdio> <command detect_errors="exit_code"><