Package Bio :: Package Sequencing :: Package Applications :: Module _samtools :: Class SamtoolsVersion1xSortCommandline
[hide private]
[frames] | no frames]

Class SamtoolsVersion1xSortCommandline

source code

                     object --+    
Application.AbstractCommandline --+

Command line wrapper for samtools version 1.3.x sort.

Concatenate BAMs, equivalent to:

$ samtools sort [-n] [-T FREFIX] [-o file] [-I INT] [-m maxMem] <in.bam>

See for more details


>>> from Bio.Sequencing.Applications import SamtoolsVersion1xSortCommandline
>>> input_bam = "/path/to/input_bam"
>>> FREFIX = "/path/to/out_prefix"
>>> file_name = "/path/to/out_file"
>>> samtools_sort_cmd = SamtoolsVersion1xSortCommandline(input=input_bam, T=FREFIX, o=file_name)
>>> print(samtools_sort_cmd)
samtools sort -o /path/to/out_file -T /path/to/out_prefix /path/to/input_bam
Instance Methods [hide private]
__init__(self, cmd='samtools', **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='samtools', **kwargs)

source code 
Initialize the class.
Overrides: object.__init__