Repository 'rename_tracks'
hg clone https://toolshed.g2.bx.psu.edu/repos/yating-l/rename_tracks

Changeset 1:72ccb2f848a0 (2018-07-26)
Previous changeset 0:8b19a698d90e (2018-06-25)
Commit message:
planemo upload commit 869adf4bb92923a8a5cb0d62ae40cdab9bf6e1d7
modified:
rename_tracks.py
rename_tracks.xml
added:
rename_tracks.pyc
b
diff -r 8b19a698d90e -r 72ccb2f848a0 rename_tracks.py
--- a/rename_tracks.py Mon Jun 25 15:01:41 2018 -0400
+++ b/rename_tracks.py Thu Jul 26 15:16:02 2018 -0400
[
@@ -14,7 +14,7 @@
         lines = f.readlines()
         for l in lines:
             if not l.startswith("#"):
-                scaffold_name = l.split()[0]
+                scaffold_name = l.split('\t')[0]
                 if scaffold_name in nameDict:
                     l = l.replace(scaffold_name, nameDict[scaffold_name])
             writer.write(l)
b
diff -r 8b19a698d90e -r 72ccb2f848a0 rename_tracks.pyc
b
Binary file rename_tracks.pyc has changed
b
diff -r 8b19a698d90e -r 72ccb2f848a0 rename_tracks.xml
--- a/rename_tracks.xml Mon Jun 25 15:01:41 2018 -0400
+++ b/rename_tracks.xml Thu Jul 26 15:16:02 2018 -0400
b
@@ -1,4 +1,4 @@
-<tool id="rename_tracks" name="rename the tracks" version="1.2">
+<tool id="rename_tracks" name="rename the tracks" version="1.3">
 <description>a Galaxy tool to rename the scaffold names in the custom track files</description>
     <requirements>
         <requirement type="package" version="1.2">samtools</requirement>