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

Main library file. More...

#include "eccLib.h"
#include <Python.h>
#include "../classes/FastaBuff/FastaBuff.h"
#include "../classes/FastaBuff/FastaBuffViews.h"
#include "../classes/FastaReader.h"
#include "../classes/GtfDict/GtfDict.h"
#include "../classes/GtfDict/GtfDictViews.h"
#include "../classes/GtfList/GtfList.h"
#include "../classes/GtfList/GtfListViews.h"
#include "../classes/GtfReader.h"
#include "../formats/fasta.h"
#include "../formats/gtf.h"
#include "../functions.h"
Include dependency graph for eccLib.c:

Functions

int main (int argc, char *argv[])
 Main function that initializes the Python interpreter and imports the eccLib module.
 

Variables

static PyMethodDef eccLibMethods []
 
struct PyModuleDef eccLibModule
 The eccLib module definition.
 

Detailed Description

Main library file.

This file initializes all the features according to the Python ABI.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main function that initializes the Python interpreter and imports the eccLib module.

Parameters
argcthe number of arguments
argvthe arguments
Returns
0 on success

Variable Documentation

◆ eccLibMethods

PyMethodDef eccLibMethods[]
static
Initial value:
= {
{"parseFASTA", (PyCFunction)parseFasta, METH_KEYWORDS | METH_VARARGS,
parseFASTAdoc},
{"parseGTF", (PyCFunction)parseGTF, METH_KEYWORDS | METH_VARARGS,
parseGTFdoc},
{NULL}
}
PyObject * parseFasta(PyObject *self, PyObject *args, PyObject *restrict kwargs)
Python function that parses provided raw FASTA content.
Definition functions.c:328
PyObject * parseGTF(PyObject *restrict self, PyObject *restrict args, PyObject *restrict kwargs)
Python function for parsing raw GTF file contents.
Definition functions.c:433

◆ eccLibModule

struct PyModuleDef eccLibModule
Initial value:
= {
PyModuleDef_HEAD_INIT,
"eccLib",
moduledoc,
sizeof(struct eccLib_state),
.m_slots = NULL}
static PyMethodDef eccLibMethods[]
Definition eccLib.c:40
The state struct, returned by calling PyModule_GetState on the eccLib module.
Definition eccLib.h:33

The eccLib module definition.

This struct defines the eccLib module, including its name, version, and state initialization function.