https://github.com/romerogroup/pyprocar
Raw File
Tip revision: 5ac3d3150529711cedaa6ed93f7d3e95facf39bb authored by Uthpala Herath on 25 March 2018, 16:14:06 UTC
Update README.md
Tip revision: 5ac3d31
scriptCat.py
from utilsprocar import UtilsProcar



def cat(inFiles,outFile,gz=False):
    print   "Concatenating:"
    print   "Input         : ", ', '.join(inFiles)
    print   "Output        : ", outFile
    if gz==True:
        print "out compressed: True"
    
    if gz=="True" and outFile[-3:] is not '.gz':
      outFile += '.gz'
      print ".gz extension appended to the outFile"
    
    handler = UtilsProcar()
    handler.MergeFiles(inFiles,outFile, gzipOut=gz)
    return
back to top