eccLib 1.1.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Functions | Variables
GtfReader.c File Reference

Contains the implementation of the iterative GTF reader. More...

#include "GtfReader.h"
#include <Python.h>
#include <stdbool.h>
#include "../formats/gtf.h"
#include "object.h"
Include dependency graph for GtfReader.c:

Functions

static int GtfFile_init (GtfFile *self, PyObject *args, PyObject *kwds)
 Saves the provided filename and checks if it exists.
 
static PyObject * GtfFile_iter (GtfFile *self)
 Creates a GtfReader object from the GtfFile.
 
static void GtfFile_dealloc (GtfFile *self)
 
static int GtfReader_init (GtfReader *self, PyObject *args, PyObject *kwds)
 Initializes the GtfReader.
 
static PyObject * GtfReader_next (GtfReader *restrict self)
 Retrieves the next line of the opened file and tries parsing it.
 
static void GtfReader_dealloc (GtfReader *restrict self)
 Deallocates the GtfReader.
 

Variables

static PyMethodDef GtfFile_methods []
 Methods for the GtfFile class.
 
PyTypeObject GtfFileType
 The Python type definition for the GtfFile object.
 
PyTypeObject GtfReaderType
 The Python type definition for the GtfReader object.
 

Detailed Description

Contains the implementation of the iterative GTF reader.

Function Documentation

◆ GtfFile_dealloc()

static void GtfFile_dealloc ( GtfFile self)
static

◆ GtfReader_init()

static int GtfReader_init ( GtfReader self,
PyObject *  args,
PyObject *  kwds 
)
static

Initializes the GtfReader.

Parameters
self
argsstandard python argument tuple
kwdsunsupported!
Here is the call graph for this function:

Variable Documentation

◆ GtfFile_methods

PyMethodDef GtfFile_methods[]
static
Initial value:
= {
{"__enter__", (PyCFunction)file_enter, METH_NOARGS, ""},
{"__exit__", (PyCFunction)file_exit, METH_VARARGS, ""},
{NULL, NULL, 0, NULL}
}
PyObject * file_enter(struct file *self, PyObject *args)
enter method for file objects
Definition reader.c:11
PyObject * file_exit(struct file *self, PyObject *args, PyObject *kwds)
exit method for file objects
Definition reader.c:26

Methods for the GtfFile class.