semvec/pypi-packages huggingface dataset:
AminoExtract 0.4.1
Extract amino acid sequences from a fasta file based on a GFF
Requires Python: >=3.10

[![CodeFactor](https://www.codefactor.io/repository/github/rivm-bioinformatics/aminoextract/badge)](https://www.codefactor.io/repository/github/rivm-bioinformatics/aminoextract)
![GitHub](https://img.shields.io/github/license/RIVM-bioinformatics/AminoExtract)  

# AminoExtract

AminoExtract is a CLI tool and library to work with GFF files, and extract amino acid sequences from nucleotide sequences based on a GFF input file.


AminoExtract is able to filter the genomic features in the input files to make sure your output makes sense and to write the resulting amino acid sequences to either a single file or to individual files for every feature, depending on your inputs as a user.

Additionally, AminoExtract allows you to use GFF data in python by making it accessible in a pandas dataframe structure.

## Why this tool?
Because sometimes you just want a dedicated tool to do a mundane task. And sometimes it's just simply necessary to, for example, ensure reproducibility, portability or to facilitate long-term maintainability of larger projects.

Instead of copying this one script used for translating and writing amino acids across all projects, we can now point to AminoExtract for just that.

## Installation requirements

AminoExtract requires python 3.10 or later to work.  

Dependencies such as Pandas, Biopython and python-magic are installed during the installation procedure.

## Installation instructions

AminoExtract can be instsalled easily with [conda](https://anaconda.org/bioconda/aminoextract) or [pip](https://pypi.org/project/AminoExtract/).  
Installation through conda is recommended.

### Installation with conda

```bash
conda install -c bioconda -c conda-forge aminoextract
```

### Installation with pip

```bash
pip install AminoExtract
```

### Installation from source

1. Download the latest version of AminoExtract by cloning this repository and navigate to the newly created directory.  
Copy and paste the code-snippet below in order to do so.  
```
git clone https://github.com/RIVM-bioinformatics/AminoExtract.git && cd AminoExtract/
```

2. If necessary, create a conda-environment and install the necessary dependencies.  
Copy and paste the code-snippet below in order to do so.  
```
mamba env create -f env.yml && conda activate AminoExtract
```

3. Now install AminoExtract into the conda environment with the following:  
```
pip install .
```

AminoExtract is now installed!  
You can use AminoExtract from anywhere on your system as long as the conda-environment in which it is installed is active.  
You can test if installation was succesful by typing `AminoExtract -v` which should display the installed version.
debmutate 0.75
manipulation of Debian package control files
Requires Python: >=3.8

Debmutate is a set of Python modules for manipulating the control files of
Debian packages, with the ability to preserve the existing formatting of
the control files.

It's built on top of the excellent
[python-debian](https://salsa.debian.org/python-debian-team/python-debian)
library, and was originally extracted from
[lintian-brush](https://salsa.debian.org/jelmer/lintian-brush).

To modify one of the control files, use one of the context managers to edit the file.

For example, for debian/control:

```python

from debmutate.control import ControlEditor

with ControlEditor(path='debian/control') as control:
    print(control.source['Maintainer'])
    control.source['Maintainer'] = "Jelmer Vernooĳ <jelmer@debian.org>"
```

Or for debian/changelog:

```python

from debmutate.changelog import ChangelogEditor

with ChangelogEditor(path='debian/changelog') as editor:
   editor.add_entry(['Some entry'])
```

Once you leave the context manager, the changes will be written to disk if
there were any. If the editor is unable to preserve the formatting of the
control file, it will raise a FormattingUnpreservable error.

If the control file that was edited was generated from another control file
(e.g. debian/control.in), debmutate will attempt to update that file instead
and then regenerate debian/control. If it is unable to do so, it will raise
a GeneratedFile exception.

The file will be left as-is if an exception is raised, or if the .cancel()
method is called.

debmutate currently provides editors for the following control files:

 * debian/changelog
 * debian/copyright
 * debian/control
 * debian/patches/series
 * debian/tests/control
 * debian/watch
 * debian/maintscripts, debian/\*.maintscripts
 * debian/source/lintian-overrides, debian/\*.lintian-overrides
 * debian/debcargo.toml