Skip to main content

This package helps resolve bioprogramming problems

Project description

FastaTransformer

FastaTransformer is a python toolset containing fucntions to simplify the usage of .fasta files in analysis as well as transform them into useful states for other tools.

Authors

The primary author of the FastaTransformer package is MDinhobl.

Major Functions

The following list contains the most useful functions of FastaTransformer.

Creating Data Folders

  1. MakeGeneBank - Take a CSV or pandas Dataframe with columns representing Genomes, Gene (or other category), and Sequence and create a folder of .fasta files for each Gene (or chosen category).
  2. GeneBankToAlignmentBank - Uses Muscle (must be installed locally) to transform a folder of .fasta files into a folder of matching alignment files.
  3. AlignmentBankToMatrixBank - Take a folder of .fasta alignment files (such as one produced by GeneBankToAlignmentBank) and produce a folder of distance matricies using the BioPython package.
  4. MatrixBankToClusterBank - Take a folder of distance matricies and create a folder of clusters using DBSCAN.

The functionality of the above tools are combined in CSVToAllBanks - A tool that combines the functionality of MakeGeneBank, GeneBankToAlignmentBank, AlignmentBankToMatrixBank, and MatrixBankToClusterBank into one script.

Other Tools

  1. AlignmentChangeFinder - Searches a folder of .fasta alignment files an searches for novel changes in several designated ('new') genomes compared to reference ('old') genomes. These results can be further refined by AlignmentChangeFinderSelector and AlignmentChangeFinderCleanup.
  2. MatrixBankToAverageMatrix - Take a folder of distance matricices and produce an 'average' distance matrix with weights.
  3. MatrixBankStats - Find the statistics of each gene in a folder of distance matricies, such as one produced by AlignmentBankToMatrixBank.
  4. FastaDescriptionHunter - A tool used to search the descriptions of fasta entries (everything following the ">") downloaded from the NCBI Genbank for information in specific categories. This is especially useful when trying to search for speicfic sequences after gathering a large number of accession sequences, such as when using NCBI Batch Entrez.

Installation

To install the latest version of FastaTransformer, use pip install:

pip install FastaTransformer

What is a .fasta file?

A .fasta file is a text file format commonly used for storing sequence information for genomic analysis. Each .fasta file can contain information on multiple sequences. Each sequence includes the following information:

  • The first row consists of an ">" followed by a sequence id and possibly a description.
  • The next row (or rows) contain the sequence itself. It can either be an amino acid sequence or a nucleotide sequence.

Here is an example of text within a .fasta file with three sequences, two of which include a description:

>Genome1
ATATGCAC
>Genome2 [Gene = B602L]
ATATGCAT
>Genome2 [Gene = P72]
ATATGCATC

Documentation for .fasta files can be found at the NCBI and general examples provided at Wikipedia as well as Bioinformatics.nl.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FastaTransformer-0.0.13.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FastaTransformer-0.0.13-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file FastaTransformer-0.0.13.tar.gz.

File metadata

  • Download URL: FastaTransformer-0.0.13.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for FastaTransformer-0.0.13.tar.gz
Algorithm Hash digest
SHA256 83a035e50454f70295a796d361903caf02fa3c708b5777292793f1995b17b244
MD5 75a83c0024e5d8a31d186f8f4cc5b171
BLAKE2b-256 bc859411d8a51c8b31457e02649e64ed99370f2ca4ae5317019d8670e8462ee5

See more details on using hashes here.

File details

Details for the file FastaTransformer-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for FastaTransformer-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec223a62e121570d8945211c0f2646b2409e1af8d247c36db8e1433778edd29
MD5 9e7108f77a4d2f026c46c90f26328216
BLAKE2b-256 3f8d22f6dc5d41934acfe9910c1209953b3c3b88d7ae4c854f692d8a3a0f156f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page