Пример #1
0
def main():

    args = getArgs()
    key = encodedcc.ENC_Key(args.keyfile, args.key)
    connection = encodedcc.ENC_Connection(key)

    encodedcc.patch_set(args, connection)
def main():

    args = getArgs()
    key = encodedcc.ENC_Key(args.keyfile, args.key)
    connection = encodedcc.ENC_Connection(key)

    encodedcc.patch_set(args, connection)
Пример #3
0
def main():
    args = getArgs()
    key = encodedcc.ENC_Key(args.keyfile, args.key)
    connection = encodedcc.ENC_Connection(key)
    encodedcc.get_fields(args, connection)
    data = []
    with open(args.outfile, "r") as tsvfile:
        reader = csv.DictReader(tsvfile, delimiter='\t')
        for row in reader:
            data.append(row)
    for x in data:
        for key in x.keys():
            if key != "accession":
                x[key] = format_number(x[key])
    header = ["accession", args.onefield]
    with open(args.outfile, "w") as tsvfile:
        writer = csv.DictWriter(tsvfile, delimiter='\t', fieldnames=header)
        writer.writeheader()
        for x in data:
            writer.writerow(x)
    args.infile = args.outfile
    encodedcc.patch_set(args, connection)
Пример #4
0
def main():
    args = getArgs()
    key = encodedcc.ENC_Key(args.keyfile, args.key)
    connection = encodedcc.ENC_Connection(key)
    encodedcc.get_fields(args, connection)
    data = []
    with open(args.outfile, "r") as tsvfile:
        reader = csv.DictReader(tsvfile, delimiter='\t')
        for row in reader:
                data.append(row)
    for x in data:
        for key in x.keys():
            if key != "accession":
                x[key] = format_number(x[key])
    header = ["accession", args.onefield]
    with open(args.outfile, "w") as tsvfile:
        writer = csv.DictWriter(tsvfile, delimiter='\t', fieldnames=header)
        writer.writeheader()
        for x in data:
            writer.writerow(x)
    args.infile = args.outfile
    encodedcc.patch_set(args, connection)