Revision bd2fba7c5c41b0ef380f4434ed269cbd690057a2 authored by Mikhail Kolmogorov on 19 August 2019, 19:26:42 UTC, committed by Mikhail Kolmogorov on 19 August 2019, 19:26:42 UTC
1 parent 2d93fe7
Raw File

#(c) 2013-2015 by Authors
#This file is a part of Ragout program.
#Released under the BSD license (see LICENSE file)

This script converts synteny blocks file from Ragout internal format
to one that MLGO recognizes

from __future__ import print_function
import sys
from collections import defaultdict

def main():
    if len(sys.argv) != 2:
        print("Usage: genome_permutations")
        return 1

    filename = sys.argv[1]
    blocks = defaultdict(list)
    with open(filename, "r") as f:
        while True:
            name_str = f.readline().strip()
            if not name_str:

            blocks_str = f.readline().strip()

    for genome, seqs in blocks.items():
        for seq in seqs:

    return 0

if __name__ == "__main__":
back to top