# HG changeset patch # User iuc # Date 1620238887 0 # Node ID 8a98cfb7ea5596f4fc75a4c8921ed536880625a2 # Parent ceed4b724f0b158847dc29e0bf533e05e51f8763 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bwa commit 055c6c3de6c9e0f219f5792f6580244815c1cd31" diff -r ceed4b724f0b -r 8a98cfb7ea55 bwa-mem.xml --- a/bwa-mem.xml Tue May 19 15:25:41 2020 +0000 +++ b/bwa-mem.xml Wed May 05 18:21:27 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 ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-aln-test1-fasta.bam Binary file test-data/bwa-aln-test1-fasta.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-aln-test1.bam Binary file test-data/bwa-aln-test1.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-aln-test2.bam Binary file test-data/bwa-aln-test2.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-aln-test3.bam Binary file test-data/bwa-aln-test3.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-mem-test1-fasta.bam Binary file test-data/bwa-mem-test1-fasta.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-mem-test1.bam Binary file test-data/bwa-mem-test1.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-mem-test2.bam Binary file test-data/bwa-mem-test2.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-mem-test3.bam Binary file test-data/bwa-mem-test3.bam has changed diff -r ceed4b724f0b -r 8a98cfb7ea55 test-data/bwa-mem-test4.bam Binary file test-data/bwa-mem-test4.bam has changed