|
eccLib 1.1.0
Python library for bioinformatics written in C
|
All methods and objects related to the GtfDict object. More...
Data Structures | |
| struct | GtfDict |
| A dict that holds GTF data. More... | |
Functions | |
| static int | GtfDict_init (GtfDict *restrict self, PyObject *restrict args, PyObject *restrict kwargs) |
| GtfDict.__init__() | |
| static PyObject * | GtfDict_getattro (GtfDict *restrict self, PyObject *restrict attr) |
| A wrapper over the dict getattro that also acts as a getter for the 7 key GTF keys. | |
| static int | GtfDict_setattro (GtfDict *restrict self, PyObject *restrict attr, PyObject *restrict value) |
| A wrapper over the dict setattro that also acts as a setter for the 7 key GTF keys. | |
| static PyObject * | GtfDict_richcompare (GtfDict *restrict self, PyObject *restrict other, const int op) |
| A custom GtfDict richcompare. | |
| static PyObject * | GtfDict_overlaps (GtfDict *restrict self, PyObject *restrict args) |
| A custom method that determines if self overlaps with a different GtfDict. | |
| static PyObject * | GtfDict_contains (GtfDict *restrict self, PyObject *restrict args) |
| Wrapper over GtfDict_containsValue() that allows for this method to be used as standalone. | |
| static PyObject * | GtfDict_coverage (GtfDict *restrict self, PyObject *restrict args) |
| A custom method that returns the percentage of the gene that is covered by the other GtfDict or iterable of GtfDicts. | |
| static Py_ssize_t | GtfDict_len (GtfDict *restrict self) |
| Custom len method that returns actually the result of subtracting start from end. | |
| static PyObject * | GtfDict_str (GtfDict *restrict self) |
| returns the GTF representation of the GtfDict | |
| static int | GtfDict_setitem (GtfDict *restrict self, PyObject *restrict key, PyObject *restrict value) |
| A custom setitem that also checks the core attributes. | |
| static PyObject * | GtfDict_values (GtfDict *restrict self) |
| A function that returns the values of the GtfDict. | |
| static PyObject * | GtfDict_items (GtfDict *restrict self) |
| A custom items method that also checks the core attributes. | |
| static PyObject * | GtfDict_iter (GtfDict *restrict self) |
| Returns the iterator for the GtfDict. | |
| static PyObject * | GtfDict_pop (GtfDict *restrict self, PyObject *restrict args) |
| A custom pop method that also checks the core attributes. | |
| static PyObject * | GtfDict_get (GtfDict *restrict self, PyObject *restrict args) |
| A custom get method that also allows for a default value to be provided. | |
| static PyObject * | GtfDict_update (GtfDict *restrict self, PyObject *restrict args, PyObject *restrict kwargs) |
| A custom update method that also checks the core attributes. | |
| static void | GtfDict_dealloc (GtfDict *restrict self) |
| Custom deallocator that deallocates all the core attributes. | |
| static Py_hash_t | GtfDict_hash (GtfDict *restrict self) |
| A GtfDict hash function that XORs the hashes of the core attributes and the attributes. | |
| static PyObject * | GtfDict_repr (PyObject *restrict self) |
| A custom repr method that returns a dict representation of the GtfDict. | |
| PyObject * | GtfDict_keys (GtfDict *restrict self) |
| GtfDict.keys() | |
| PyObject * | GtfDict_getitem (GtfDict *restrict self, PyObject *restrict key) |
| A custom getitem that also checks the core attributes. | |
Variables | |
| PyTypeObject | GtfDictType |
| The Python type definition for the GtfDict object. | |
All methods and objects related to the GtfDict object.
|
static |
Wrapper over GtfDict_containsValue() that allows for this method to be used as standalone.
| self | |
| args | the standard Python argument tuple |

|
static |
A custom method that returns the percentage of the gene that is covered by the other GtfDict or iterable of GtfDicts.
| self | |
| args | a python argument tuple |

|
static |
Custom deallocator that deallocates all the core attributes.
| self |

|
static |
A custom get method that also allows for a default value to be provided.
| self | |
| args | the argument tuple |

|
static |
A wrapper over the dict getattro that also acts as a getter for the 7 key GTF keys.
| self | |
| attr | PyUnicode encoded attribute name string |
| PyObject * GtfDict_getitem | ( | GtfDict *restrict | self, |
| PyObject *restrict | key | ||
| ) |
A custom getitem that also checks the core attributes.
| self | |
| key | the key to get |

|
static |
A GtfDict hash function that XORs the hashes of the core attributes and the attributes.
| self |

|
static |
GtfDict.__init__()
| self | the GtfDict instance being instantiated |
| args | the passed argument tuple |
| kwargs | the passed keywords argument as a dict |

|
static |
A custom items method that also checks the core attributes.
| self |

|
static |
Returns the iterator for the GtfDict.
| self |

| PyObject * GtfDict_keys | ( | GtfDict *restrict | self | ) |
GtfDict.keys()
| self |


|
static |
Custom len method that returns actually the result of subtracting start from end.
| self |
|
static |
A custom method that determines if self overlaps with a different GtfDict.
| self | |
| args | a python argument tuple |
|
static |
A custom pop method that also checks the core attributes.
| self | |
| args | the argument tuple |

|
static |
A custom repr method that returns a dict representation of the GtfDict.
| self |
|
static |
|
static |
A wrapper over the dict setattro that also acts as a setter for the 7 key GTF keys.
| self | |
| attr | PyUnicode encoded attribute name string |
| value | the value that the attribute should be set to. Doesn't steal the reference. Hopefully that's the expected behaviour |
|
static |
A custom setitem that also checks the core attributes.
| self | |
| key | the key to set |
| value | borrowed value to set |


|
static |
returns the GTF representation of the GtfDict
| self |

|
static |
A custom update method that also checks the core attributes.
| self | |
| args | the argument tuple |

|
static |
A function that returns the values of the GtfDict.
| self |

|
extern |
The Python type definition for the GtfDict object.