@files( [ (None, "clone.log" ),] )
def clone( infile, outfile):

    src_dir, level = sys.argv[-2:]
    
    if not os.path.exists( src_dir ):
        raise IOError( "directory '%s' does not exist" % src_dir )

    if not os.path.exists( os.path.join( src_dir, "pipeline.ini" )):
        raise IOError( "directory '%s' is not a pipeline" % src_dir )
    
    if level in ("data", ):
        P.execute( "ln -fs %(src_dir)s/*.pileup.* . ")
        P.execute( "ln -fs %(src_dir)s/genome.* . ")
        

###################################################################
Create a new node.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_snps.py/clone--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/api/controllers/v1/node.py/NodesController.post