# HG changeset patch # User iuc # Date 1638007413 0 # Node ID 09470ab960f165e35ed1ac6e0472633ab9d2902d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_split commit 1cacd14cfb2429fefa91fdd05c82d2e36d23283a" diff -r 000000000000 -r 09470ab960f1 bamtools_split_ref.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bamtools_split_ref.xml Sat Nov 27 10:03:33 2021 +0000 @@ -0,0 +1,89 @@ + + into dataset list collection + + macros.xml + + + + = 0 else n for n in str($input_bam.metadata.reference_names).split(',')]) + #end if + && mkdir -p outputs + && (export I=0; + for i in $ref_list; + do I=\$((++I)); SN=`printf "split_bam.REF_%s.bam" "\$i"`; + if [ -e \$SN ]; then FN=`printf "outputs/split_bam%05d%s.%s.bam" \$((I)) '$name' "\$i"`; mv \$SN \$FN; fi; + done) + ]]> + + + + + + + + + + + + + + + + + + + + + + + + +**What is does** + +BAMTools split is a utility for splitting BAM files. It is based on BAMtools suite of tools by Derek Barnett (https://github.com/pezmaster31/bamtools). + +----- + +.. class:: warningmark + +**DANGER: Multiple Outputs** + +As described below, splitting a BAM dataset(s) on reference name or a tag value can produce very large numbers of outputs. Read below and know what you are doing. + +----- + +**How it works** + +Split alignments by reference name into a dataset list collection. The collection will be in the same order as the input BAM references. + +In cases of unfinished genomes with very large number of reference sequences (scaffolds) +it can generate thousands (if not millions) of output datasets. + + +----- + +.. class:: infomark + +**More information** + +Additional information about BAMtools can be found at https://github.com/pezmaster31/bamtools/wiki + + + + 10.1093/bioinformatics/btr174 + + diff -r 000000000000 -r 09470ab960f1 macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Sat Nov 27 10:03:33 2021 +0000 @@ -0,0 +1,16 @@ + + + 2.5.1 + 0 + + + bamtools + samtools + + + + + 10.1093/bioinformatics/btr174 + + + \ No newline at end of file diff -r 000000000000 -r 09470ab960f1 test-data/bamtools-input-paired.bam Binary file test-data/bamtools-input-paired.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools-input-tags.bam Binary file test-data/bamtools-input-tags.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools-input1.bam Binary file test-data/bamtools-input1.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools-input2.bam Binary file test-data/bamtools-input2.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools-split-test1.bam Binary file test-data/bamtools-split-test1.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools_input2.chr1 Binary file test-data/bamtools_input2.chr1 has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools_input_tags.TAG_XG_N.bam Binary file test-data/bamtools_input_tags.TAG_XG_N.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/bamtools_input_tags.TAG_XG_V.bam Binary file test-data/bamtools_input_tags.TAG_XG_V.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/split_bam.MAPPED.bam Binary file test-data/split_bam.MAPPED.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/split_bam.PAIRED_END.bam Binary file test-data/split_bam.PAIRED_END.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/split_bam.SINGLE_END.bam Binary file test-data/split_bam.SINGLE_END.bam has changed diff -r 000000000000 -r 09470ab960f1 test-data/split_bam.UNMAPPED.bam Binary file test-data/split_bam.UNMAPPED.bam has changed