# HG changeset patch # User iuc # Date 1620238928 0 # Node ID 64f11cf59c6edcb9ed9747829ef1d31e8ce1e1c5 # Parent 3fe632431b6803383ad5b17dbaa0a737ac651686 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 055c6c3de6c9e0f219f5792f6580244815c1cd31" diff -r 3fe632431b68 -r 64f11cf59c6e bwa-mem.xml --- a/bwa-mem.xml Tue May 19 11:29:11 2020 -0400 +++ b/bwa-mem.xml Wed May 05 18:22:08 2021 +0000 @@ -1,5 +1,5 @@ - + - map medium and long reads (> 100 bp) against reference genome read_group_macros.xml @@ -14,7 +14,12 @@ ## Begin BWA-MEM command line bwa mem --t "\${GALAXY_SLOTS:-1}" + +#if str( $output_sort ) == "unsorted": + -t 1 +#else + -t "\${GALAXY_SLOTS:-1}" +#end if ## Verbosity is set to 1 (errors only) -v 1 @@ -106,7 +111,15 @@ '${fastq_input.fastq_input1}' #end if -| samtools sort -@\${GALAXY_SLOTS:-2} -T "\${TMPDIR:-.}" -O bam -o '$bam_output' +#if str( $output_sort ) == "coordinate": + | samtools sort -@\${GALAXY_SLOTS:-2} -T "\${TMPDIR:-.}" -O bam -o '$bam_output' +#elif str( $output_sort ) == "name": + | samtools sort -n -@\${GALAXY_SLOTS:-2} -T "\${TMPDIR:-.}" -O bam -o '$bam_output' +#else + | samtools view -@ \${GALAXY_SLOTS:-2} -bS - -o '$bam_output' +#end if + + ]]> @@ -247,11 +260,20 @@ + + + + + + + + + @@ -296,6 +318,26 @@ + + + + + + + + + + + + + + + + + + + + 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 -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-aln-test1-fasta.bam Binary file test-data/bwa-aln-test1-fasta.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-aln-test1.bam Binary file test-data/bwa-aln-test1.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-aln-test2.bam Binary file test-data/bwa-aln-test2.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-aln-test3.bam Binary file test-data/bwa-aln-test3.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-mem-test1-fasta.bam Binary file test-data/bwa-mem-test1-fasta.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-mem-test1.bam Binary file test-data/bwa-mem-test1.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-mem-test2.bam Binary file test-data/bwa-mem-test2.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-mem-test3.bam Binary file test-data/bwa-mem-test3.bam has changed diff -r 3fe632431b68 -r 64f11cf59c6e test-data/bwa-mem-test4.bam Binary file test-data/bwa-mem-test4.bam has changed