Mercurial > repos > guerler > springsuite
diff spring_map.py @ 38:80a4b98121b6 draft
"planemo upload commit 22cd6b0fa88ce0ddc4052beab306f5ba10754f12"
author | guerler |
---|---|
date | Wed, 25 Nov 2020 17:38:24 +0000 |
parents | 0be0af9e695d |
children | 172398348efd |
line wrap: on
line diff
--- a/spring_map.py Wed Nov 25 14:35:35 2020 +0000 +++ b/spring_map.py Wed Nov 25 17:38:24 2020 +0000 @@ -8,6 +8,8 @@ def getId(line): line = line.strip() + if len(line) != 6 or line[4:5] != "_": + raise Exception("Invalid list entry (`PDB_CHAIN`): %s." % line) return line[:4].upper() + line[4:6] @@ -131,7 +133,7 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description='Maps binding partners to template library') - parser.add_argument('-l', '--list', help='List of template entries [PDB_CHAIN]', required=True) + parser.add_argument('-l', '--list', help='List of template entries `PDB_CHAIN`', required=True) parser.add_argument('-i', '--index', help='PDB Database Index file (dbkit_index)', required=True) parser.add_argument('-d', '--database', help='PDB Database files (dbkit)', required=True) parser.add_argument('-c', '--cross', help='Cross reference (unmapped)', required=True)