Package Bio :: Package Sequencing :: Package Applications :: Module _bwa :: Class BwaIndexCommandline
[hide private]
[frames] | no frames]

Class BwaIndexCommandline

source code

                     object --+    
Application.AbstractCommandline --+

Command line wrapper for Burrows Wheeler Aligner (BWA) index.

Index database sequences in the FASTA format, equivalent to:

$ bwa index [-p prefix] [-a algoType] [-c] <in.db.fasta>

See for details.


>>> from Bio.Sequencing.Applications import BwaIndexCommandline
>>> reference_genome = "/path/to/reference_genome.fasta"
>>> index_cmd = BwaIndexCommandline(infile=reference_genome, algorithm="bwtsw")
>>> print(index_cmd)
bwa index -a bwtsw /path/to/reference_genome.fasta

You would typically run the command using index_cmd() or via the Python subprocess module, as described in the Biopython tutorial.

Instance Methods [hide private]
__init__(self, cmd='bwa', **kwargs)
Initialize the class.
source code

Inherited from Application.AbstractCommandline: __call__, __repr__, __setattr__, __str__, set_parameter

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from Application.AbstractCommandline: parameters

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmd='bwa', **kwargs)

source code 
Initialize the class.
Overrides: object.__init__