eccLib 1.1.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
FastaReader

A module providing a reader for Fasta files. More...

Data Structures

struct  FastaReader
 A reader that reads Fasta files. More...
 

Functions

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

PyTypeObject FastaReaderType
 The Python type definition for the FastaReader object.
 

Detailed Description

A module providing a reader for Fasta files.

Function Documentation

◆ FastaReader_dealloc()

static void FastaReader_dealloc ( FastaReader *restrict  self)
static

Deallocate the FastaReader object.

Parameters
selfThe FastaReader object to deallocate.
Here is the call graph for this function:

◆ FastaReader_init()

static int FastaReader_init ( FastaReader self,
PyObject *  args,
PyObject *  kwds 
)
static

Initialize a FastaReader object.

Parameters
selfThe FastaReader object to initialize.
argsThe positional arguments passed to the constructor.
kwdsThe keyword arguments passed to the constructor.
Returns
0 on success, -1 on failure.

◆ FastaReader_next()

static PyObject * FastaReader_next ( FastaReader *restrict  self)
static

Read the next sequence from the FastaReader object.

Parameters
selfThe FastaReader object to read from.
Returns
The next sequence as a tuple (title, sequence), or NULL on error.
Here is the call graph for this function:

Variable Documentation

◆ FastaReaderType

PyTypeObject FastaReaderType
extern

The Python type definition for the FastaReader object.