changeset 0:dee6d2dd558c draft

planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272
author anmoljh
date Thu, 31 May 2018 11:28:57 -0400
parents
children 6fd1efe69a78
files remove_redundant_entries.R remove_redundant_entries.xml tool_dependencies.xml
diffstat 3 files changed, 43 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/remove_redundant_entries.R	Thu May 31 11:28:57 2018 -0400
@@ -0,0 +1,11 @@
+args <- commandArgs(TRUE)
+
+
+res1 <- read.csv(args[1])
+#res11 <- duplicated(res1[,1:length(res1) - 1])
+res11 <- duplicated(res1[,1])
+result <- res1[!res11,]
+names1 <- result[,1]
+rownames(result) <- names1
+result$Name <- NULL
+write.csv(result,file=args[2])
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/remove_redundant_entries.xml	Thu May 31 11:28:57 2018 -0400
@@ -0,0 +1,26 @@
+<tool id="remove_reduandant_entries" name="Remove Redundancy" version="1.0">
+    <description>"Removes repeated entry from file"</description>
+    <requirements>
+        <requirement type="package" version="3.2.1">R</requirement>
+    </requirements>
+    <stdio>
+            <exit_code range="1:" />
+    </stdio>
+    <command interpreter="Rscript">remove_redundant_entries.R $Input1 $Non_redudant_mega_file</command>
+    <inputs>
+	    <param format="txt" name="Input1" type="data" label="Merged Descriptor File" help="csv format"/>
+    </inputs>
+    <outputs>
+	    <data format="csv" name="Non_redudant_mega_file" label="Non-redundant Mega Descriptor File"/> 
+    </outputs>
+    <tests>
+        <test>
+            <param name="Input1"  value="merged.csv"  />
+            <output name="Non_redudant_mega_file" file="non_redundant.csv" compare="sim_size" delta="9000000" />
+        </test>
+    </tests>
+
+    <help>
+        run command with Descriptor file and in csv format only .output file will be in CSV format.
+    </help>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Thu May 31 11:28:57 2018 -0400
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<tool_dependency>
+   <package name="R" version="3.2.1">
+          <repository changeset_revision="d9f7d84125b7" name="package_r_3_2_1" owner="iuc" prior_installation_required="True" toolshed="https://toolshed.g2.bx.psu.edu/" />
+   </package>
+</tool_dependency>