Commit 6578edd8 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Added subparsers for analysis and info actions

parent 0d7c6137
#!/usr/bin/env python3
import argparse
from config import load_config
parser = argparse.ArgumentParser(description='Make bioinformatic observations on aminoacid sequences')
parser.add_argument('--fasta', '-f', help='A fasta file with aminoacid sequences')
parser.add_argument('--listanalyses', '-l', action='store_true', help='Show available analysis steps')
args = parser.parse_args()
config = load_config()
def show_analyses():
for profile in config['profiles']:
print(' {0:<20} - {1}'.format(profile['name'], profile['info']))
if 'modules' in profile:
for module in profile['modules']:
print(' {0:<20}'.format(module))
print('Available modules for custom profile:')
for module in config['modules']:
print(' {0:<20} - {1}'.format(module['name'], module['info']))
if args.listanalyses:
Supports Markdown
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