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

Class BwaBwaswCommandline

source code

                     object --+    
Application.AbstractCommandline --+

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 for details.


>>> 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)
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__