# HG changeset patch
# User guerler
# Date 1606325904 0
# Node ID 80a4b98121b6cab655a5348850471609dd5641c3
# Parent 0be0af9e695dd2da16541d60be71a0287c4dc154
"planemo upload commit 22cd6b0fa88ce0ddc4052beab306f5ba10754f12"
diff -r 0be0af9e695d -r 80a4b98121b6 spring_cross.py
--- a/spring_cross.py Wed Nov 25 14:35:35 2020 +0000
+++ b/spring_cross.py Wed Nov 25 17:38:24 2020 +0000
@@ -7,7 +7,9 @@
def getId(line):
- line = line.split()[0]
+ 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]
@@ -61,8 +63,8 @@
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='List filtering.')
parser.add_argument('-l', '--list', help='List of PDB chains [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('-i', '--index', help='PDB Database Index file (ffindex)', required=True)
+ parser.add_argument('-d', '--database', help='PDB Database files (ffdata)', required=True)
parser.add_argument('-o', '--output', help='Output file', required=True)
parser.add_argument('-t', '--temp', help='Temporary Directory', required=True)
parser.add_argument('-g', '--log', help='Log File', required=True)
diff -r 0be0af9e695d -r 80a4b98121b6 spring_cross.xml
--- a/spring_cross.xml Wed Nov 25 14:35:35 2020 +0000
+++ b/spring_cross.xml Wed Nov 25 17:38:24 2020 +0000
@@ -4,9 +4,9 @@
python3 '$__tool_directory__/spring_cross.py' -l '$list' -i '$index' -d '$database' -o '$output' -g '$log' -t temp
]]>
-
-
-
+
+
+
diff -r 0be0af9e695d -r 80a4b98121b6 spring_map.py
--- 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)
diff -r 0be0af9e695d -r 80a4b98121b6 spring_map.xml
--- a/spring_map.xml Wed Nov 25 14:35:35 2020 +0000
+++ b/spring_map.xml Wed Nov 25 17:38:24 2020 +0000
@@ -7,10 +7,10 @@
python3 '$__tool_directory__/spring_map.py' -l '$list' -i '$index' -d '$database' -c '$cross' -o '$output' -g '$log' -t temp
]]>
-
-
-
-
+
+
+
+
diff -r 0be0af9e695d -r 80a4b98121b6 spring_roc.xml
--- a/spring_roc.xml Wed Nov 25 14:35:35 2020 +0000
+++ b/spring_roc.xml Wed Nov 25 17:38:24 2020 +0000
@@ -83,8 +83,8 @@
-
-
+
+