Public Member Functions | Public Attributes

bbcflib::btrack::Track Class Reference

Inheritance diagram for bbcflib::btrack::Track:
bbcflib::btrack::bin::BinTrack bbcflib::btrack::sql::SqlTrack bbcflib::btrack::text::TextTrack bbcflib::btrack::bin::BamTrack bbcflib::btrack::bin::BigWigTrack bbcflib::btrack::text::BedGraphTrack bbcflib::btrack::text::BedTrack bbcflib::btrack::text::GffTrack bbcflib::btrack::text::SgaTrack bbcflib::btrack::text::WigTrack

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__
def __iter__
def open
def close
def save
def read
def write

Public Attributes

 path
 filehandle
 format
 fields
 assembly
 chrmeta
 info

Detailed Description

Metaclass regrouping the track properties. Subclasses for each specific format
are in `btrack/text.py` and are instanciated when ``btrack.track()`` is called on a file.

.. attribute:: path

    Path to the file the Track was generated from.

.. attribute:: filehandle

    The Python opened file object from the file found in *self.path*. Can read() and write() it.

.. attribute:: format

    Format of the file the track was generated from.

.. attribute:: fields

    Fields defining the info contained in the track items.

.. attribute:: assembly

    GenRep assembly ID.

.. attribute:: chrmeta

    A dictionary with information about the species' chromosomes, or a genrep assembly name.

.. attribute:: info

    A dictionary with meta-data about the track, e.g. data type, such as::

        {'datatype': 'signal'}


Member Function Documentation

def bbcflib::btrack::Track::__enter__ (   self  ) 
Called when evaluating the 'with' statement.
def bbcflib::btrack::Track::__iter__ (   self  ) 
Iterates on the list of features.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions