83 citations
8 runs

bamtools random

By Barnett D., Marth G., Last update 1494698999
All tools Run this tool

bamtools random description

Bamtools_random grabs a random subset of alignments. With the option -n 100, 100 randomly chosen alignments are stored in the output file output_alignments_100.bam. Note: this tool requires you to have an index for the input BAM file. You can create such index with bamtools index tool


Parent program: bamtools

BAMTools is a toolkit for managing genome alignment data in BAM and SAM formatted files. It is consists of set of tools for conversion, filtration, sorting, merging, and splitting files, or printing some basic and statistical information. BamTools can also generate BAI or BTI index files for BAM file. This suite shows some overlaps of manipulation modules with SAMtools toolkit but supports features that extend the abilities in genome alignment data analysis.