Skip to main content

Description

MSA4u is a simple visualisation tool for Multiple Sequence Alignments.

Programming language: Python3
OS: MacOS, Linux
Python dependencies: biopython, configs, argparse, reportlab
OS-level dependencies: mafft (v. 7.490 is included in the package)
License: WTFPL
Version: 0.4.0 (January 2022)

Installation

  • The most stable release of uorf4u can be installed directly from pypi:
python3 -m pip install msa4u
  • The development version is available at github :
git clone https://github.com/GCA-VH-lab//msa4u.git
cd msa4u
python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 setup.py sdist bdist_wheel
python3 -m pip install -e .

! If you're a linux user, run msa4u --linux post-install command once to update paths in the premade config files that set by default for MacOS users.

Quickstart guide

Here we present several examples of msa4u vizualisations. The necessary data samples are provided by msa4u at the post-install step:
msa4u --data

Command-line interface

Aligmnent and visualisation.

You can use a fasta file with unaligned sequences as input. In this case, msa4u will use mafft to align your sequences (with --auto parameter: mafft --auto input.fa) and then perform visualisation.

msa4u -fa msa4u_data/aa_sequences.fa

With default parameters you will get alignments file (aa_sequences.aln.fa) and pdf file with visualisaton (aa_sequences.pdf) in your working directory.

Visualisation of a pre-made alignments file

You can use a pre-made alignments file as input with -aln parameter:

msa4u -aln aa_sequences.aln.fa -label description -o visualisation.pdf

In this case we also used optional arguments: -label to set labels style (can be id, description or all - full header of sequences); and -o to set output file name.
See help message for more detailed parameters description (msa4u -h)

Output:


API

MSA4u has a simple API allowing it programmatic usage from within a Python program.
Below we descrive several Python snippets that mimic results of command-line calls.

Aligmnent and visualisation

import msa4u

parameters = msa4u.manager.Parameters()
unaligned_fasta_file = "msa4u_data/aa_sequences.fa"
fasta = msa4u.manager.Fasta(fasta=unaligned_fasta_file, parameters=parameters)
mafft_output = fasta.run_mafft()
msa = msa4u.manager.MSA(mafft_output, parameters)
msa.plot()

Visualisation of a pre-made alignments file.

import msa4u

parameters = msa4u.manager.Parameters()
parameters.arguments["label"] = "description"
parameters.arguments["output_filename"] = "visualisation.pdf"

alignments = "aa_sequences.aln.fa"
msa = msa4u.manager.MSA(alignments, parameters)
msa.plot()

Reference

If you find msa4u useful, please cite uorf4u paper. msa4u initially was developed as a sublibrary of uorf4u.
Artyom. A. Egorov, Gemma C. Atkinson, uORF4u: a tool for annotation of conserved upstream open reading frames, bioRxiv 2022.10.27.514069; doi: 10.1101/2022.10.27.514069

Contact

Please contact us by e-mail artemdotegorovATmeddotludotse or use Issues to report any technical problems.

Authors

mas4u is developed by Artyom Egorov at the Atkinson Lab, Department of Experimental Medical Science, Lund University, Sweden. We are open for suggestions to extend and improve msa4u functionality. Please don't hesitate to share your ideas or feature requests.

Metadata

Release files for msa4u 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for msa4u 0.4.0
File Size Uploaded Provenance Actions
msa4u-0.4.0.tar.gz 38.5 MB Without provenance Details for msa4u-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for msa4u 0.4.0
File Interpreter ABI Platform Actions
msa4u-0.4.0-py3-none-any.whl Python 3 none any Details for msa4u-0.4.0-py3-none-any.whl

Total release size: 77.1 MB

Release files / msa4u-0.4.0.tar.gz

Download URL msa4u-0.4.0.tar.gz
Size 38.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0471f334bbc1fbb8ea6c0974c39f9aed59030b32d3d790caf814c8f53c393c17
BLAKE2b-256 checksum
How to use checksums
ec7175e4271d78aa32e3b723fb8f9977900d65078c3a1043465d2af482b8ac0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / msa4u-0.4.0-py3-none-any.whl

Download URL msa4u-0.4.0-py3-none-any.whl
Size 38.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
48ce07508bbe3374b850b6ca3bd9241fb2132eda5340fc623e34ff2b23efbda6
BLAKE2b-256 checksum
How to use checksums
6f3760eff93efc3cf0f3a55f23f9c479f1821e100210de1c7e4e8b9118922877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for msa4u 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page