Raw File
Tip revision: 02e1849f4a611b8623bd449dbc8178ef785e68a9 authored by Wei Wei on 15 June 2022, 19:04:10 UTC
remove more unneeded files
Tip revision: 02e1849
import wgsunifrac as wu
import argparse

#Produces pairwise UniFrac distance matrix with user given input

def main():
    parser = argparse.ArgumentParser(description="Produces pairwise WGS UniFrac distance matrix with given user input.")
    parser.add_argument('-d', '--dir', type=str, help="A directory containing WGS profiles")
    parser.add_argument('-a', '--alpha', type=float, default=-1, help="The factor for branch length function. -1, -0.5, 0, 1, 2. Default=-1")
    parser.add_argument('-s', '--save', type=str, help="File name of the saved file. If not given, the matrix will be saved as pairwise_WGSUniFrac_matrix.csv")

    args = parser.parse_args()
    dir = args.dir
    save =
    wu.just_pairwise_unifrac(dir, alpha, save)

if __name__ == '__main__':

back to top