|
eccLib 1.3.0
Python library for bioinformatics written in C
|
Implementations for the FastaBuff object. More...
#include "FastaBuff.h"#include <stdbool.h>#include <stdint.h>#include <Python.h>#include "../../formats/fasta.h"#include "../../formats/gtf.h"#include "../../modules/eccLib.h"#include "../GtfDict/GtfDict.h"#include "FastaBuffViews.h"
Functions | |
| static FastaBuff * | FastaBuff_new (PyTypeObject *type, PyObject *args, PyObject *kwargs) |
| Allocates a new FastaBuff object. | |
| static int | FastaBuff_init (FastaBuff *self, PyObject *restrict args, PyObject *restrict kwds) |
| Initializes a FastaBuff object. Equivalent to the constructor in Python. | |
| static Py_ssize_t | FastaBuff_len (FastaBuff *self) |
| Returns the length of the FastaBuff. | |
| static PyObject * | FastaBuff_str (FastaBuff *self) |
| Converts the FastaBuff to a string. | |
| uint8_t | FastaBuff_getItem (FastaBuff *self, Py_ssize_t index) |
| Gets an item from the FastaBuff. | |
| static int | FastaBuff_setItem (FastaBuff *self, Py_ssize_t index, PyObject *value) |
| Sets a part of the sequence. | |
| static int | FastaBuff_strindex (FastaBuff *self, size_t offset, size_t end, const char *value, size_t len) |
| Returns the index of the first occurrence of the specified sequence in this FastaBuff, or -1 if this FastaBuff does not contain the sequence. | |
| static int | FastaBuff_buffindex (FastaBuff *self, size_t offset, size_t end, FastaBuff *restrict other) |
| Returns the index of the first occurrence of the specified sequence in this FastaBuff. | |
| static int | FastaBuff_contains (FastaBuff *restrict self, PyObject *restrict value) |
| Checks if the FastaBuff contains the specified value. | |
| static PyObject * | FastaBuff_index (FastaBuff *restrict self, PyObject *restrict args) |
| Returns the index of the first occurrence of the specified value in this FastaBuff. | |
| static PyObject * | FastaBuff_count (FastaBuff *restrict self, PyObject *restrict value) |
| Counts the number of occurrences of the specified value in this FastaBuff. | |
| static PyObject * | FastaBuff_dump (FastaBuff *restrict self) |
| Converts the FastaBuff to a bytes object. | |
| static PyObject * | FastaBuff_get_annotated (FastaBuff *restrict self, PyObject *restrict first) |
| Returns the annotated sequence. | |
| static PyObject * | FastaBuff_richcompare (FastaBuff *restrict self, PyObject *restrict other, const int op) |
| FastaBuff comparison function. | |
| PyObject * | FastaBuff_getSubscript (FastaBuff *restrict self, PyObject *restrict key) |
| Gets a subsequence of the FastaBuff. | |
| static PyObject * | FastaBuff_find (FastaBuff *restrict self, PyObject *restrict firstArg) |
| Finds occurrences of the specified sequence in this FastaBuff. | |
| static PyObject * | FastaBuff_iter (FastaBuff *self) |
| static PyObject * | FastaBuff_reversed (FastaBuff *self) |
| static void | FastaBuff_dealloc (FastaBuff *self) |
| Deallocates the FastaBuff. | |
| FastaBuff * | FastaBuff_New (uint8_t *restrict buff, size_t buffSize, size_t buffLen, bool RNA) |
| Creates a new FastaBuff object. | |
| static PyObject * | FastaBuff_getstate (FastaBuff *self) |
| static PyObject * | FastaBuff_setstate (FastaBuff *self, PyObject *state) |
| Sets the state of the FastaBuff from a tuple. | |
Variables | |
| static PyMethodDef | FastaBuffMethods [] |
| The FastaBuff methods. | |
| static PyMappingMethods | FastaBuffMap |
| The FastaBuff mapping methods. | |
| static PySequenceMethods | FastaBuffSeq |
| The FastaBuff sequence methods. | |
| PyTypeObject | FastaBuffType |
| The Python type definition for the FastaBuff object. | |
Implementations for the FastaBuff object.
|
static |
Returns the index of the first occurrence of the specified sequence in this FastaBuff.
| self | the FastaBuff to search in |
| offset | the offset to start searching from |
| end | the end offset to stop searching at |
| other | the other FastaBuff to search for |

|
static |

|
static |

|
static |

|
static |
|
static |
Returns the index of the first occurrence of the specified sequence in this FastaBuff, or -1 if this FastaBuff does not contain the sequence.
| self | the FastaBuff to search in |
| offset | the offset to start searching from |
| end | the end offset to stop searching at |
| value | substring |
| len | length of substring |

|
static |
The FastaBuff mapping methods.
|
static |
The FastaBuff methods.
|
static |
The FastaBuff sequence methods.