# HG changeset patch # User iuc # Date 1715980147 0 # Node ID 2477830927ecf200d964084e35aca07e5dab8c8d # Parent e188dc7a68e62a0ee7ce9729e75a5484282a3550 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 6e9628b1d92fdb358b79959ad54a456cfa46fa33 diff -r e188dc7a68e6 -r 2477830927ec bwa-mem.xml --- a/bwa-mem.xml Fri Aug 19 18:51:56 2022 +0000 +++ b/bwa-mem.xml Fri May 17 21:09:07 2024 +0000 @@ -1,13 +1,11 @@ - + - map medium and long reads (> 100 bp) against reference genome - - bwa - read_group_macros.xml bwa_macros.xml + - + @@ -279,35 +279,35 @@ - - + + - + - + - + - + - + - + @@ -319,9 +319,9 @@ - + - + @@ -329,9 +329,9 @@ - + - + @@ -339,11 +339,34 @@ - + + + + + + + + + + + + + + + + + + + [fastq dataset2] + 2. *PacBio mode* - 1. **Use a built-in genome index** - when selected (this is default), Galaxy provides the user with **Select reference genome index** dropdown. Genomes listed in this dropdown have been pre-indexed with bwa index utility and are ready to be mapped against. - 2. **Use a genome from the history and build index** - when selected, Galaxy provides the user with **Select reference genome sequence** dropdown. This dropdown is populated by all FASTA formatted files listed in your current history. If your genome of interest is uploaded into history it will be shown there. Selecting a genome from this dropdown will cause Galaxy to first transparently index it using `bwa index` command, and then run mapping with `bwa mem`. + This mode is adjusted specifically for mapping of long PacBio subreads. It is running bwa mame with the `-x pacbio` option. + 3. *Nanopore 2D-reads mode* + + This mode is running bwa mem with the `-x ont2d` option. + 4. *Intra-sepcies contigs mode* -If your genome of interest is not listed here you have two choices: + This mode is running bwa mem with the `-x intractg` option. - 1. Contact galaxy team using **Help->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. +.. class:: infomark + + Please note: minimap2_ is recommended over and outperforms BWA-MEM for most types of input data except for Illumina short reads. For Illumina short-read mapping you may also consider using `BWA-MEM2`_, which is about twice as fast as BWA-MEM. ----- -**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. @@ -392,7 +418,9 @@ @RG@ -@info@ +@links@ +.. _minimap2: https://github.com/lh3/minimap2 +.. _`BWA-MEM2`: https://github.com/bwa-mem2/bwa-mem2 ]]> 10.1093/bioinformatics/btp324 diff -r e188dc7a68e6 -r 2477830927ec bwa.xml --- a/bwa.xml Fri Aug 19 18:51:56 2022 +0000 +++ b/bwa.xml Fri May 17 21:09:07 2024 +0000 @@ -1,9 +1,6 @@ - + - map short reads (< 100 bp) against reference genome - - bwa - read_group_macros.xml bwa_macros.xml @@ -77,6 +74,7 @@ + @@ -314,41 +312,42 @@ - + + - + - + - + - + - + - + - + - + @@ -358,57 +357,34 @@ - + 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. - +@ref_genomes@ @RG@ -@info@ +@links@ ]]> 10.1093/bioinformatics/btp324 diff -r e188dc7a68e6 -r 2477830927ec bwa_macros.xml --- a/bwa_macros.xml Fri Aug 19 18:51:56 2022 +0000 +++ b/bwa_macros.xml Fri May 17 21:09:07 2024 +0000 @@ -1,7 +1,7 @@ read_group_macros.xml - 0.7.17 + 0.7.18 @@ -36,11 +36,17 @@ - bwa - samtools + bwa + samtools + + + bwa + + + @@ -103,6 +109,26 @@ + +**Indices: Selecting reference genomes for BWA** + +The Galaxy wrapper for BWA allows you to select between precomputed and user-defined indices for reference genomes +using the **Will you select a reference genome from your history or use a built-in index?** select box. + +This select box has two options: + + 1. **Use a built-in genome index** + + With this option (which is the default), Galaxy provides you with a dropdown select menu populated with genomes that have been pre-indexed with the bwa index utility and are ready to map sequenced reads against. + + The collection of pre-indexed genomes is managed by the administrators of your Galaxy instance. If your genome of interest is missing and its impractical to use the second option below to work with it, consider contacting the support team for the Galaxy server you are working on to let them know that you would like to have an additional genome indexed. + + 2. **Use a genome from history and build index** + + With this option, Galaxy provides you with a dropdown select menu populated with all FASTA formatted files listed in your current history. If you have uploaded your genome of interest into your history it will be shown there. + + Selecting a genome from this dropdown will cause Galaxy to index it transparently first using the `bwa index` command, and then map against it with `bwa aln`. + ----- @@ -155,19 +181,8 @@ Note the hierarchical relationship between read groups (unique for each lane) to libraries (sequenced on two lanes) and samples (across four lanes, two lanes for each library). - ------ - -.. class:: infomark - -**More info** - -To obtain more information about BWA and ask questions use these resources: - - 1. https://biostar.usegalaxy.org/ - 2. https://www.biostars.org/ - 3. https://github.com/lh3/bwa - 4. http://bio-bwa.sourceforge.net/ - + +.. _BWA: https://github.com/lh3/bwa +.. _`BWA manual`: https://bio-bwa.sourceforge.net/bwa.shtml diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-aln-test1-fasta.bam Binary file test-data/bwa-aln-test1-fasta.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-aln-test1.bam Binary file test-data/bwa-aln-test1.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-aln-test2.bam Binary file test-data/bwa-aln-test2.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-mem-test1-fasta.bam Binary file test-data/bwa-mem-test1-fasta.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-mem-test1.bam Binary file test-data/bwa-mem-test1.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-mem-test2.bam Binary file test-data/bwa-mem-test2.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-mem-test3.bam Binary file test-data/bwa-mem-test3.bam has changed diff -r e188dc7a68e6 -r 2477830927ec test-data/bwa-mem-test4.bam Binary file test-data/bwa-mem-test4.bam has changed