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

Implementation for the FastaReader and FastaFile classes. More...

#include "FastaReader.h"
#include "../formats/fasta.h"
#include "FastaBuff.h"
#include "unicodeobject.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for FastaReader.c:

Macros

#define BUFFER_GROWTH   2
 

Functions

static int FastaFile_init (FastaFile *self, PyObject *args, PyObject *kwds)
 Saves the provided filename and checks if it exists.
 
static PyObject * FastaFile_iter (FastaFile *self)
 Creates a FastaReader object from the FastaFile.
 
static int FastaReader_init (FastaReader *self, PyObject *args, PyObject *kwds)
 Initialize a FastaReader object.
 
static PyObject * FastaReader_next (FastaReader *restrict self)
 Read the next sequence from the FastaReader object.
 
static void FastaReader_dealloc (FastaReader *restrict self)
 Deallocate the FastaReader object.
 

Variables

static PyMethodDef FastaFile_methods []
 Methods for the FastaFile class.
 
PyTypeObject FastaFileType
 The Python type definition for the FastaFile object.
 
PyTypeObject FastaReaderType
 The Python type definition for the FastaReader object.
 

Detailed Description

Implementation for the FastaReader and FastaFile classes.

Macro Definition Documentation

◆ BUFFER_GROWTH

#define BUFFER_GROWTH   2

Variable Documentation

◆ FastaFile_methods

PyMethodDef FastaFile_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 FastaFile class.