Commit 714c56f6 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Backup last dev changes

parent 6750205c
......@@ -87,10 +87,7 @@ if __name__ == '__main__':
parser.add_argument('-o', '--output', type=str, required=True, help="Output PAF file")
args = parser.parse_args()
if args["--version"]:
print(__NAME__, __VERSION__)
else:
if not os.path.exists(args.input):
raise Exception("Input PAF file %s does not exists" % args.input)
sorter = Sorter(args.input, args.output)
sorter.sort()
if not os.path.exists(args.input):
raise Exception("Input PAF file %s does not exists" % args.input)
sorter = Sorter(args.input, args.output)
sorter.sort()
......@@ -134,7 +134,7 @@ def parse_args():
parser = argparse.ArgumentParser(description="Split huge contigs")
parser.add_argument('-i', '--input', type=str, required=True, help="Input fasta file")
parser.add_argument('-n', '--name', type=str, required=True, help="Input fasta name")
parser.add_argument('-s', '--size', type=int, required=False, default=10, help="Max size of contigs (Mb)")
parser.add_argument('-s', '--size', type=int, required=False, default=10000, help="Max size of contigs (Kb)")
parser.add_argument('-o', '--output', type=str, required=True, help="Output fasta file")
args = parser.parse_args()
......@@ -146,7 +146,7 @@ def parse_args():
def __main__():
args = parse_args()
splitter = Splitter(args.input, args.name, args.output, args.size * 1000000)
splitter = Splitter(args.input, args.name, args.output, args.size * 1000)
return not splitter.split()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment