.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "MAF_INDEX" "1" "August 2012" "BioRuby" "BioRuby Manual" . .SH "NAME" \fBmaf_index\fR \- build and examine MAF indexes . .SH "SYNOPSIS" \fBmaf_index\fR [\-t] \fImaf\fR \fIindex\fR . .br \fBmaf_index\fR \fB\-d\fR|\fB\-\-dump\fR \fIindex\fR . .SH "DESCRIPTION" \fBmaf_index\fR is part of the bioruby\-maf library and creates Kyoto Cabinet indexes for Multiple Alignment Format (MAF) files\. These indexes enable other MAF tools to selectively extract alignment blocks of interest\. . .P In its default mode, \fBmaf_index\fR parses the \fImaf\fR file given as an argument and creates an index in \fIindex\fR\. . .P The index data is stored in binary form, so with the \fB\-\-dump\fR argument, \fBmaf_index\fR can dump out the index data in human\-readable form for debugging\. . .SH "FILES" The \fImaf\fR input file must be a valid MAF file of any length\. It can optionally be BGZF\-compressed, as produced by bgzip(1) from samtools\. . .P The index created is a Kyoto Cabinet TreeDB (B+ tree) database; \fIindex\fR must have a \fB\.kct\fR extension\. . .SH "OPTIONS" . .TP \fB\-a\fR, \fB\-\-all\fR All sequences, not just the reference sequence, will be indexed for searching\. . .TP \fB\-d\fR, \fB\-\-dump\fR Instead of creating an index, dump out the given \fIindex\fR in human\-readable form\. Index records will appear like: . .IP "" 4 . .nf 0 [bin 1195] 80082334:80082368 offset 16, length 1087 text size: 54 sequences in block: 10 species vector: 00000000000003ff . .fi . .IP "" 0 . .TP \fB\-\-time\fR Print elapsed time for index creation\. Mainly useful for measuring performance with different Ruby implementations, I/O subsystems, etc\. . .TP \fB\-q\fR, \fB\-\-quiet\fR Run quietly, with warnings suppressed\. . .TP \fB\-v\fR, \fB\-\-verbose\fR Run verbosely, with additional informational messages\. . .TP \fB\-\-debug\fR Log debugging information\. . .SH "EXAMPLES" Build an index on a MAF file: . .IP "" 4 . .nf $ maf_index chr22\.maf chr22\.kct . .fi . .IP "" 0 . .P Dump out an index: . .IP "" 4 . .nf $ maf_index \-d chr22\.kct > /tmp/chr22\.dump . .fi . .IP "" 0 . .SH "ENVIRONMENT" \fBmaf_index\fR is a Ruby program and relies on ordinary Ruby environment variables\. . .SH "BUGS" \fBmaf_index\fR does not currently allow Kyoto Cabinet database parameters to be set\. . .SH "COPYRIGHT" \fBmaf_index\fR is copyright (C) 2012 Clayton Wheeler\. . .SH "SEE ALSO" ruby(1), kctreemgr(1), bgzip(1) . .IP "\(bu" 4 \fIhttps://github\.com/csw/bioruby\-maf/\fR . .IP "\(bu" 4 \fIhttp://fallabs\.com/kyotocabinet/\fR . .IP "" 0