Repository 're_utils'
hg clone https://toolshed.g2.bx.psu.edu/repos/petr-novak/re_utils

Changeset 11:16150c85fb3a (2020-02-04)
Previous changeset 10:768883847008 (2020-02-03) Next changeset 12:6b7d31026d1c (2020-02-04)
Commit message:
Uploaded
modified:
RM_custom_search.py
RM_custom_search.xml
b
diff -r 768883847008 -r 16150c85fb3a RM_custom_search.py
--- a/RM_custom_search.py Mon Feb 03 06:44:58 2020 -0500
+++ b/RM_custom_search.py Tue Feb 04 07:39:32 2020 -0500
[
@@ -19,7 +19,10 @@
         # extract only dirCLXXXX/reads.fas
         seq_list = []
         for filein in z.namelist():
-            if filein.lower().startswith("seqclust/clustering/clusters/dir_cl") and filein.endswith("reads.fas"):
+            c1 = filein.lower().startswith("seqclust/clustering/clusters/dir_cl")
+            c2 = filein.endswith("reads.fas")
+            c3 = filein.endswith("reads.fasta")  # in newer RE2 versions
+            if c1 and (c2 or c3):
                 outdir = filein.split("/")[3]
                 outfile = outdir +"/reads.fas"
                 source = z.open(filein)
b
diff -r 768883847008 -r 16150c85fb3a RM_custom_search.xml
--- a/RM_custom_search.xml Mon Feb 03 06:44:58 2020 -0500
+++ b/RM_custom_search.xml Tue Feb 04 07:39:32 2020 -0500
b
@@ -1,4 +1,4 @@
-<tool id="RMsearch" name="RepeatMasker custom search" version="1.0.1">
+<tool id="RMsearch" name="RepeatMasker custom search" version="1.0.2">
 
   <description>Scan clustering results using RepeatMasker against custom database of repeats</description>
   <requirements>