def dive_export_sc(sc):
sc = sc.add_parser('export', help='Writes props for DiVE visualization')
sc.add_argument('fragmentsdb', type=str,
help='Name of fragments db input file')
uniprot_annot_help = '''Uniprot download accession 2 gene symbol, family mapping.
Fetch "http://www.uniprot.org/uniprot/?query=database:pdb&format=tab&columns=id,genes(PREFERRED),families,database(PDB)"
'''
sc.add_argument('uniprot_annot', type=argparse.FileType('r'), help=uniprot_annot_help)
sc.add_argument('--propnames',
type=argparse.FileType('w'),
help='Name of prop names file',
default='kripo.propnames.txt')
sc.add_argument('--props',
type=argparse.FileType('w'),
help='Name of props file',
default='kripo.props.txt')
sc.add_argument('--pdbtags', type=argparse.FileType('r'), action='append', help='Tag pdb in file by filename')
sc.set_defaults(func=dive_export)
评论列表
文章目录