# HG changeset patch # User chmaramis # Date 1521371125 14400 # Node ID 91cea576e15280bf3911eb17886a24aaf8140a39 # Parent 32d2f321b0e9f50d76e029e71a876249486312d0 Deleted selected files diff -r 32d2f321b0e9 -r 91cea576e152 cmpb2016/appending.py --- 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)) diff -r 32d2f321b0e9 -r 91cea576e152 cmpb2016/appending.xml --- 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 @@ - -Concatenate IMGT Report Files - -appending.py "${output1}" -#for x in $imgt_files - "$x.igfile" -#end for - - - - - - - - - - - -This tool concatenates two or more IMGT Report Files of the same type. - -