# HG changeset patch
# User iuc
# Date 1649160668 0
# Node ID e6799e98c5fbed60fef21fb0a24c6c2b2a7acb46
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/blast commit 15fc6c06f743bae276ff02dc405e7da61a07bd08"
diff -r 000000000000 -r e6799e98c5fb macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,33 @@
+
+ 1.6.0
+ 0
+ 20.09
+
+
+ magicblast
+ samtools
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 10.1186/s12859-019-2996-x
+
+
+
diff -r 000000000000 -r e6799e98c5fb magicblast.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/magicblast.xml Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,362 @@
+
+ against a whole genome or transcriptome
+
+ macros.xml
+
+
+ 0:
+ -max_edit_dist $mapping.max_edit_dist
+#end if
+-splice '$mapping.splice'
+-reftype '$mapping.reftype'
+
+## Output unaligned options
+#if str($output_options.report_unaligned_cond.report_unaligned) == 'yes':
+ #if str($output_options.report_unaligned_cond.report_unaligned_separately_cond.report_unaligned_separately) == 'yes':
+ -out_unaligned 'out_unaligned'
+ #if str($output_options.report_unaligned_cond.report_unaligned_separately_cond.unaligned_fmt_cond.unaligned_fmt) == 'bam':
+ -unaligned_fmt 'sam'
+ #else:
+ -unaligned_fmt '$output_options.report_unaligned_cond.report_unaligned_separately_cond.unaligned_fmt_cond.unaligned_fmt'
+ #end if
+ #end if
+#else:
+ -no_unaligned
+#end if
+
+## Additional output options
+$output_options.no_discordant
+## Switch default SAM output to be BAM.
+#if str($output_options.outfmt_cond.outfmt) == 'bam':
+ $output_options.outfmt_cond.md_tag
+ #if $query_mate:
+ $output_options.outfmt_cond.no_query_id_trim
+ #end if
+ -out 'output.sam'
+ #if str($output_options.outfmt_cond.output_sort) == 'coordinate':
+ && samtools sort -@\${GALAXY_SLOTS:-4} -O bam 'output.sam' > '$output'
+ #elif str($output_options.outfmt_cond.output_sort) == 'name':
+ && samtools sort -n -@\${GALAXY_SLOTS:-4} -O bam -o 'output.sam' > '$output'
+ #else:
+ && samtools view -@\${GALAXY_SLOTS:-4} -bS 'output.sam' > '$output'
+ #end if
+#else:
+ -out '$output'
+ -outfmt '$output_options.outfmt_cond.outfmt'
+#end if
+
+## Convert out_unaligned from SAM to BAM if necessary
+
+#if str($output_options.report_unaligned_cond.report_unaligned) == 'yes':
+ #if str($output_options.report_unaligned_cond.report_unaligned_separately_cond.report_unaligned_separately) == 'yes':
+ #if str($output_options.report_unaligned_cond.report_unaligned_separately_cond.unaligned_fmt_cond.unaligned_fmt) == 'bam':
+ #if str($output_options.report_unaligned_cond.report_unaligned_separately_cond.unaligned_fmt_cond.output_sort) == 'coordinate':
+ && samtools sort -@\${GALAXY_SLOTS:-4} -O bam -o 'out_unaligned' > '$output_unaligned'
+ #elif str($output_options.report_unaligned_cond.report_unaligned_separately_cond.unaligned_fmt_cond.output_sort) == 'name':
+ && samtools sort -n -@\${GALAXY_SLOTS:-4} -O bam -o 'out_unaligned' > '$output_unaligned'
+ #else:
+ && samtools view -@\${GALAXY_SLOTS:-4} -bS 'out_unaligned' > '$output_unaligned'
+ #end if
+ #else:
+ && mv 'out_unaligned' '$output_unaligned'
+ #end if
+ #end if
+#end if
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ output_options['report_unaligned_cond']['report_unaligned'] == 'yes' and output_options['report_unaligned_cond']['report_unaligned_separately_cond']['report_unaligned_separately'] == 'yes'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `_.
+ ]]>
+
+
diff -r 000000000000 -r e6799e98c5fb test-data/blastdb.loc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/blastdb.loc Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,4 @@
+# This file is just a placeholder since Galxy does
+# not yet suppoort uploading a BLAST database, which
+# is required for functional tests.
+phiX174 phiX174 ${__HERE__}/phiX174
diff -r 000000000000 -r e6799e98c5fb test-data/gilist1.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/gilist1.tabular Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,1 @@
+57163782
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nhd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/phiX174/blastdb.nhd Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,7 @@
+15495040301
+25770063902
+2660043075
+27122163083
+3427376816
+40885395164
+7819003870
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nhi
Binary file test-data/phiX174/blastdb.nhi has changed
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nhr
Binary file test-data/phiX174/blastdb.nhr has changed
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nin
Binary file test-data/phiX174/blastdb.nin has changed
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nog
Binary file test-data/phiX174/blastdb.nog has changed
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nsd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/phiX174/blastdb.nsd Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,7 @@
+gnl|bl_ord_id|00
+gnl|bl_ord_id|11
+gnl|bl_ord_id|22
+gnl|bl_ord_id|33
+gnl|bl_ord_id|44
+gnl|bl_ord_id|55
+gnl|bl_ord_id|66
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nsi
Binary file test-data/phiX174/blastdb.nsi has changed
diff -r 000000000000 -r e6799e98c5fb test-data/phiX174/blastdb.nsq
Binary file test-data/phiX174/blastdb.nsq has changed
diff -r 000000000000 -r e6799e98c5fb test-data/query1.fasta.gz
Binary file test-data/query1.fasta.gz has changed
diff -r 000000000000 -r e6799e98c5fb test-data/query_forward1.fastqsanger.gz
Binary file test-data/query_forward1.fastqsanger.gz has changed
diff -r 000000000000 -r e6799e98c5fb test-data/query_reverse1.fastqsanger.gz
Binary file test-data/query_reverse1.fastqsanger.gz has changed
diff -r 000000000000 -r e6799e98c5fb test-data/subject1.fasta.gz
Binary file test-data/subject1.fasta.gz has changed
diff -r 000000000000 -r e6799e98c5fb test-data/taxids.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/taxids.tabular Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,1 @@
+57163782
diff -r 000000000000 -r e6799e98c5fb tool-data/blastdb.loc.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool-data/blastdb.loc.sample Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,44 @@
+# This is a sample file distributed with Galaxy that is used to define a
+# list of nucleotide BLAST databases, using three columns tab separated:
+#
+# {tab}{tab}
+#
+# The captions typically contain spaces and might end with the build date.
+# It is important that the actual database name does not have a space in
+# it, and that there are only two tabs on each line.
+#
+# You can download the NCBI provided protein databases like NR from here:
+# ftp://ftp.ncbi.nlm.nih.gov/blast/db/
+#
+# For simplicity, many Galaxy servers are configured to offer just a live
+# version of each NCBI BLAST database (updated with the NCBI provided
+# Perl scripts or similar). In this case, we recommend using the case
+# sensistive base-name of the NCBI BLAST databases as the unique id.
+# Consistent naming is important for sharing workflows between Galaxy
+# servers.
+#
+# For example, consider the NCBI partially non-redundant nucleotide
+# nt BLAST database, where you have downloaded and decompressed the
+# files under /data/blastdb/ meaning at the command line BLAST+ would
+# would look at the files /data/blastdb/nt.n* when run with:
+#
+# $ blastn -db /data/blastdb/nt -query ...
+#
+# In this case use nr (lower case to match the NCBI file naming) as the
+# unique id in the first column of blastdb_p.loc, giving an entry like
+# this:
+#
+# nt{tab}NCBI partially non-redundant (nt){tab}/data/blastdb/nt
+#
+# Alternatively, rather than a "live" mirror of the NCBI databases which
+# are updated automatically, for full reproducibility the Galaxy Team
+# recommend saving date-stamped copies of the databases. In this case
+# your blastdb.loc file should include an entry per line for each
+# version you have stored. For example:
+#
+# nt_05Jun2010{tab}NCBI nt (partially non-redundant) 05 Jun 2010{tab}/data/blastdb/05Jun2010/nt
+# nt_15Aug2010{tab}NCBI nt (partially non-redundant) 15 Aug 2010{tab}/data/blastdb/15Aug2010/nt
+# ...etc...
+#
+# See also blastdb_p.loc which is for any protein BLAST database, and
+# blastdb_d.loc which is for any protein domains databases (like CDD).
diff -r 000000000000 -r e6799e98c5fb tool_data_table_conf.xml.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.sample Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,6 @@
+
+
+
diff -r 000000000000 -r e6799e98c5fb tool_data_table_conf.xml.test
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.test Tue Apr 05 12:11:08 2022 +0000
@@ -0,0 +1,6 @@
+
+
+