changeset 4:91cea576e152 draft

Deleted selected files
author chmaramis
date Sun, 18 Mar 2018 07:05:25 -0400
parents 32d2f321b0e9
children e69b5e717346
files cmpb2016/appending.py cmpb2016/appending.xml
diffstat 2 files changed, 0 insertions(+), 64 deletions(-) [+]
line wrap: on
line diff
--- a/cmpb2016/appending.py	Sun Mar 18 07:05:15 2018 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-Created on Wed Nov 05 14:17:24 2014
-
-@author: chmaramis
-"""
-
-import numpy as np
-from pandas import *
-from numpy import nan as NA
-import sys
-import time
-
-def appending(arg):
-
-    appfr = DataFrame()
-    for path in arg:
-        frame = DataFrame()
-        tp = read_csv(path, iterator=True, chunksize=1000,sep='\t', index_col=0 )
-        frame = concat([chunk for chunk in tp])
-        appfr = appfr.append(frame)
-    appfr = appfr[frame.columns]
-    appfr.index = range(1,len(appfr)+1)
-    return appfr
-
-if __name__ == '__main__':   
-
-    start=time.time()
-
-    # Parse input arguments    
-    arg=sys.argv[2:]
-    lastEl = sys.argv[1]
-            
-    # Execute basic function
-    appfr = appending(arg)
-    
-    # Save output to CSV files
-    if not appfr.empty:        
-        appfr.to_csv(lastEl, sep= '\t')
-        
-    # Print execution time
-    stop=time.time()
-    print('Runtime:' + str(stop-start))
--- a/cmpb2016/appending.xml	Sun Mar 18 07:05:15 2018 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-<tool id="append" name="IMGT Report Concatenation" version="0.9" >
-<description>Concatenate IMGT Report Files</description>
-<command interpreter="python">
-appending.py  "${output1}"
-#for x in $imgt_files
- "$x.igfile"
-#end for
-</command>
-<inputs>
-<param format="txt" name="Name" type="text" label="Output Name"/>
-<repeat name="imgt_files" title="IMGT Report File" min="2">
-<param name="igfile" type="data" label="IMGT Report File" format="txt"/>
-</repeat>
-</inputs>
-<outputs>
-<data format="tabular" name="output1" label="${Name}"/>
-</outputs>
-<help>
-This tool concatenates two or more IMGT Report Files of the same type.
-</help>
-</tool>