https://github.com/romerogroup/pyprocar
Raw File
Tip revision: f1bf90cd15d576cf32ee9c0db17418ea7c6d4bef authored by Uthpala Herath on 04 March 2020, 06:33:30 UTC
Elk implementation
Tip revision: f1bf90c
scriptCat.py
from .utilsprocar import UtilsProcar
from .splash import welcome


def cat(inFiles,outFile,gz=False):
    """
    This module concatenates multiple PROCARs.
    """
    welcome()  

    print("Concatenating:")
    print("Input         : ", inFiles)    # ', '.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