semvec/pypi-packages huggingface dataset:
ptyx 30.0.0
pTyX is a python precompiler for LaTeX.
Requires Python: >=3.10
Keywords: exam, latex, mcq, pdf, python, student, tikz

pTyX
====

Overview
--------
pTyX is a LaTeX precompilator, written in Python.
pTyX enables to generate LaTeX documents, using custom commands or plain python code.
One single pTyX file may generate many latex documents, with different values.
I developped and used pTyX to make several different versions of a same test in exams,
for my student, to discourage cheating.
Since it uses sympy library, pTyX has symbolic calculus abilities too.

Installation
------------
pTyX is only tested on GNU/Linux (Ubuntu), but should work on MacOs X too.

Obviously, pTyX needs a working Python installation.
Python version 3.8 (at least) is required for pTyX to run.

pTyX also needs a working LaTeX installation. Command *pdflatex* must be available in your terminal.

The easiest way to install it is using pip.

    $ pip install ptyx

You may also download and install the latest version from Github:

    $ git clone https://github.com/wxgeo/ptyx.git
    $ cd ptyx
    $ pip install -e .

Usage
-----

To compile a pTyX file (see below), open a terminal, go to pTyX directory, and write:

    $ ptyx my_file.ptyx

For more options:

    $ ptyx --help


pTyX file specification
-----------------------
A pTyX file is essentially a LaTeX file, with a .ptyx extension, (optionally) some custom commands, and embedded python code.

To include python code in a pTyX file, use the #PYTHON and #END balise.
A special *write()* command is available, to generate latex code on the flow from python.

    This a simple \emph{addition}:\quad
    #PYTHON
    from random import randint
    a = randint(5, 9)
    b = randint(2, 4)
    write('%s + %s = %s\\' % (a, b, a + b))
    #END
    Now, some basic \emph{subtraction}:\quad
    #PYTHON
    write('%s - %s = %s\\' % (a, b, a - b))
    #END

To access any python variable outside python code scope, simply add a hashtag before the variable name.

Any valid python expression can also be evaluated this way, using syntax #{python_expr}.

    $#a\mul#b=#{a*b}$

However, pTyX has also reserved tags, like conditionals statements #IF, #ELSE, #ENDIF...

(More to come...)
genelingo 0.1.0
Visualize DNA mutations with colored boxes
Requires Python: >=3.7

 GeneLingo ًں§¬

GeneLingo is a Python library developed by Sarah for visualizing genetic mutations in an intuitive way. It allows you to compare reference and mutated sequences, detect SNPs, insertions, deletions, and display them as colored boxes for easy interpretation.

1- Features


- Compare reference and mutated DNA sequences  
- Detect SNPs, insertions, and deletions  
- Manual mutation entry  
- Visualize sequences with colored boxes:

| Base / Mutation | Color   |
|-----------------|---------|
| A               | Green   |
| T               | Blue    |
| G               | Red     |
| C               | Yellow  |
| SNP             | Orange  |
| Deletion (DEL)  | Black   |
| Insertion (INS) | Purple  |


2- Installation

Install GeneLingo directly via pip:

```bash
pip install genelingo
Make sure you have the dependencies installed (Biopython and Matplotlib):

pip install biopython matplotlib

3- Usage:

Here's a simple example:

from genelingo import load_fasta, compare_sequences, apply_manual_mutations, draw_sequence

# Load sequences
ref_seq = load_fasta("reference.fasta")
mut_seq = load_fasta("mutated.fasta")

# Compare sequences
displayed_seq, report = compare_sequences(ref_seq, mut_seq)

# Apply manual mutations
manual_mutations = ["A5G", "خ”10", "+12"]
displayed_seq, manual_report = apply_manual_mutations(displayed_seq, manual_mutations)

# Visualize
draw_sequence(displayed_seq)

# Print mutation report
for line in report + manual_report:
    print(line)

4- Example Visualization

Here's an example of how GeneLingo displays mutations:

![GeneLingo Example](images/gen.png)



5- Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve GeneLingo.

6- License

This project is licensed under the MIT License.