From c8422b2e35891bd2fb5bb94086e39ffe0ea69837 Mon Sep 17 00:00:00 2001 From: Jarvis Lab Date: Wed, 13 Nov 2024 09:53:10 -0500 Subject: [PATCH] Add bwa-mem2-idx --- tools/bwa_mem2/bwa-mem2-idx.xml | 72 +++++++++++++++++++++++++++++++++ tools/bwa_mem2/macros-index.xml | 13 ++++++ 2 files changed, 85 insertions(+) create mode 100644 tools/bwa_mem2/bwa-mem2-idx.xml create mode 100644 tools/bwa_mem2/macros-index.xml diff --git a/tools/bwa_mem2/bwa-mem2-idx.xml b/tools/bwa_mem2/bwa-mem2-idx.xml new file mode 100644 index 00000000000..6ed25585f66 --- /dev/null +++ b/tools/bwa_mem2/bwa-mem2-idx.xml @@ -0,0 +1,72 @@ + + - creates indexes + + macros-index.xml + + + '$output' && +mkdir '$output.files_path' && +cd '$output.files_path' && +bwa-mem2 index -p 'index' '${input_fasta}' + ]]> + + + + + + + + + + Support** link at the top of the interface and let us know that an index needs to be added + 2. Upload your genome of interest as a FASTA file to Galaxy history and selected **Use a genome from the history and build index** option. + +----- + +**Galaxy-specific option** + +Galaxy allows four levels of control over bwa-mem options provided by **Select analysis mode** menu option. These are: + + 1. *Simple Illumina mode*: The simplest possible bwa mem application in which it alignes single or paired-end data to reference using default parameters. It is equivalent to the following command: bwa mem [fastq dataset2] + 2. *PacBio mode*: The mode adjusted specifically for mapping of long PacBio subreads. Equivalent to the following command: bwa mem -k17 -W40 -r10 -A1 -B1 -O1 -E1 -L0 + 3. *Full list of options*: Allows access to all options through Galaxy interface. + +----- + +**Bam sorting mode** + +The generated bam files can be sorted according to three criteria: coordinates, names and input order. + +In coordinate sorted mode the reads are sorted by coordinates. It means that the reads from the beginning of the first chromosome are first in the file. + +When sorted by read name, the file is sorted by the reference ID (i.e., the QNAME field). + +Finally, the *No sorted (sorted as input)* option yield a BAM file in which the records are sorted in an order corresponding to the order of the reads in the original input file. This option requires using a single thread to perform the conversion from SAM to BAM format, so the runtime is extended. + + +@RG@ + +@info@ + ]]> + diff --git a/tools/bwa_mem2/macros-index.xml b/tools/bwa_mem2/macros-index.xml new file mode 100644 index 00000000000..2ac38cdbe25 --- /dev/null +++ b/tools/bwa_mem2/macros-index.xml @@ -0,0 +1,13 @@ + + + + bwa-mem2 + + + + + + 2.2.1 + 0 + 21.05 +