diff --git a/tools/metagene_annotator/.shed.yml b/tools/metagene_annotator/.shed.yml index 0137fe19d..ae2c8a1b7 100644 --- a/tools/metagene_annotator/.shed.yml +++ b/tools/metagene_annotator/.shed.yml @@ -25,3 +25,4 @@ name: metagene_annotator owner: galaxyp remote_repository_url: https://github.com/galaxyproteomics/tools-galaxyp/tree/master/metagene_annotator type: unrestricted +homepage_url: http://metagene.nig.ac.jp/ \ No newline at end of file diff --git a/tools/metagene_annotator/convert_mga.py b/tools/metagene_annotator/convert_mga.py index 68c377139..527ba8774 100755 --- a/tools/metagene_annotator/convert_mga.py +++ b/tools/metagene_annotator/convert_mga.py @@ -35,7 +35,7 @@ def __main__(): 'complete/partial', 'gene score', 'used model', 'rbs start', 'rbs end', 'rbs score'])) - gc_rbs_pat = '# gc = (-?[0-9]*[.]?[0-9]+), rbs = (-?[0-9]*[.]?[0-9]+)' + gc_rbs_pat = '# gc = (-?[0-9]*[.]?[0-9]+), rbs = (-?[0-9]*[.]?[0-9]+)' seq_count = 0 gene_count = 0 for i, line in enumerate(input_rdr): @@ -46,12 +46,12 @@ def __main__(): try: m = re.match(gc_rbs_pat, line.strip()) seq_gc, seq_rbs = m.groups() - except: + except ValueError: seq_gc = seq_rbs = '' elif line.startswith('# self:'): seq_type = re.sub('# self:', '', line.rstrip()) elif line.startswith('# '): - seq_name = re.sub('# (\S+).*$', '\\1', line.rstrip()) + seq_name = re.sub(r'# (\S+).*$', '\\1', line.rstrip()) seq_count += 1 else: fields = line.split('\t') diff --git a/tools/metagene_annotator/metagene_annotator.xml b/tools/metagene_annotator/metagene_annotator.xml index 34205a74c..16480d7a6 100644 --- a/tools/metagene_annotator/metagene_annotator.xml +++ b/tools/metagene_annotator/metagene_annotator.xml @@ -1,14 +1,16 @@ - + gene-finding program for prokaryote and phage (used by sixgill) + + 1.0 + 1 + + + metageneannotator + - metagene_annotator - python + metagene_annotator + python - - - metageneannotator - - - + @@ -66,7 +68,7 @@ - +