diff autogenJB2.py @ 113:878c27dfea9d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 45375b64cbc99173525a2b374d71a13e650ce1b0
author bgruening
date Sun, 28 Jul 2024 02:42:43 +0000
parents b1260bca5fdc
children
line wrap: on
line diff
--- a/autogenJB2.py	Thu Jul 04 08:40:21 2024 +0000
+++ b/autogenJB2.py	Sun Jul 28 02:42:43 2024 +0000
@@ -92,6 +92,11 @@
             # foo.paf must have a foo_paf.fasta or fasta.gz to match
             tnames = [x[2] for x in listtracks]
             texts = [x[1] for x in listtracks]
+            if len(listtracks) == 0:
+                sys.stderr.write(
+                    "Please add at least one track (bam,bed,bigwig,blastxml,cram,gff,hic,maf,paf or vcf) to the collection. No suitable track files for autogenJB2 - nothing to process"
+                )
+                sys.exit(5)
             for i, track in enumerate(listtracks):
                 track_conf = {
                     "trackfiles": [],
@@ -224,5 +229,5 @@
             # jc.text_index() not sure what broke here.
     else:
         sys.stderr.write(
-            "Collection has no suitable trackfiles for autogenJB2 - nothing to process"
+            "Please add a fasta genome reference to the collection. No suitable reference fasta for autogenJB2 - nothing to process"
         )