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

Class BwaBwaswCommandline

source code

                     object --+    
                              |    
Application.AbstractCommandline --+
                                  |
                                 BwaBwaswCommandline

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

Align query sequences from FASTQ files. Equivalent to:

$ bwa bwasw [...] <in.db.fasta> <in.fq>

See http://bio-bwa.sourceforge.net/bwa.shtml for details.

Example:

>>> from Bio.Sequencing.Applications import BwaBwaswCommandline
>>> reference_genome = "/path/to/reference_genome.fasta"
>>> read_file = "/path/to/read_1.fq"
>>> bwasw_cmd = BwaBwaswCommandline(reference=reference_genome, read_file=read_file)
>>> print(bwasw_cmd)
bwa bwasw /path/to/reference_genome.fasta /path/to/read_1.fq

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

Instance Methods [hide private]
 
__init__(self, cmd='bwa', **kwargs)
Create a new instance of a command line wrapper object.
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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Create a new instance of a command line wrapper object.
Overrides: object.__init__
(inherited documentation)