scripts/preprocessing/relabel_seed.py
def merge_seeds(seed1, seed2, filename=None, dest_dir=None):
    """
    Merges two alignments into one using esl-alimerge

    seed1: The path to SEED alignment 1
    seed2: The path to SEED alignment 2
    filename: A string specifying the filename of the merged alignment
    dest_dir: The path to the destination directory. If None uses current
    working directory

    return: The path to the merged SEED if it exists, None otherwise
    """

    if dest_dir is None:
        dest_dir = os.getcwd()

    merged_seed_loc = os.path.join(dest_dir, filename + '_merged.stk')

    cmd = "esl-alimerge -o %s %s %s" % (merged_seed_loc, seed1, seed2)

    subprocess.call(cmd, shell=True)

    if os.path.exists(merged_seed_loc) and os.path.getsize(merged_seed_loc) > 0:
        return merged_seed_loc

    return None

    Merges two alignments into one using esl-alimerge

    seed1: The path to SEED alignment 1
    seed2: The path to SEED alignment 2
    filename: A string specifying the filename of the merged alignment
    dest_dir: The path to the destination directory. If None uses current
    working directory

    return: The path to the merged SEED if it exists, None otherwise
    
Merges two alignments into one using esl-alimerge
seed1: The path to SEED alignment 1
seed2: The path to SEED alignment 2
filename: A string specifying the filename of the merged alignment
dest_dir: The path to the destination directory. If None uses current
working directory

The path to the merged SEED if it exists, None otherwise
Merges two alignments into one using esl - alimerge seed1 : The path to SEED alignment 1 seed2 : The path to SEED alignment 2 filename : A string specifying the filename of the merged alignment dest_dir : The path to the destination directory . If None uses current working directory The path to the merged SEED if it exists None otherwise
def merge_seeds(seed1, seed2, filename=None, dest_dir=None):
    if dest_dir is None:
        dest_dir = os.getcwd()
    merged_seed_loc = os.path.join(dest_dir, filename + '_merged.stk')
    cmd = "esl-alimerge -o %s %s %s" % (merged_seed_loc, seed1, seed2)
    subprocess.call(cmd, shell=True)
    if os.path.exists(merged_seed_loc) and os.path.getsize(merged_seed_loc) > 0:
        return merged_seed_loc
    return None
def merge_seeds ( seed1 , seed2 , filename = None , dest_dir = None ) : if dest_dir is None : dest_dir = os . getcwd ( ) merged_seed_loc = os . path . join ( dest_dir , filename + '_merged.stk' ) cmd = "esl-alimerge -o %s %s %s" % ( merged_seed_loc , seed1 , seed2 ) subprocess . call ( cmd , shell = True ) if os . path . exists ( merged_seed_loc ) and os . path . getsize ( merged_seed_loc ) > 0 : return merged_seed_loc return None
Merges two alignments into one using esl-alimerge
seed1: The path to SEED alignment 1
seed2: The path to SEED alignment 2
filename: A string specifying the filename of the merged alignment
dest_dir: The path to the destination directory.
Merges two alignments into one using esl - alimerge seed1 : The path to SEED alignment 1 seed2 : The path to SEED alignment 2 filename : A string specifying the filename of the merged alignment dest_dir : The path to the destination directory .
"""
    Merges two alignments into one using esl-alimerge

    seed1: The path to SEED alignment 1
    seed2: The path to SEED alignment 2
    filename: A string specifying the filename of the merged alignment
    dest_dir: The path to the destination directory. If None uses current
    working directory

    return: The path to the merged SEED if it exists, None otherwise
    """
seed1
seed2
filename
dest_dir