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.

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.10.tar.gz (18.0 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.10-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FastaTransformer-0.0.10.tar.gz
  • Upload date:
  • Size: 18.0 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.10.tar.gz
Algorithm Hash digest
SHA256 3b6d0457154fe5866697a05c697dc42decf584ad1083fe87fccd871be589d440
MD5 29cf8f7d68e15df3f1d7733a965c37e8
BLAKE2b-256 275e546bfeff77576830fe0bb811451826c264496cfbef3ab1eb5414bc20183b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for FastaTransformer-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9395da36f93a3fef2567c4c26c43a48bb01c1e1dce7aabc4f82209aeaa8b1e48
MD5 caeaa88ffb99757ae1100591f8ea5350
BLAKE2b-256 e77cd1df984bf300577cb987e42e28caf07d6ab6671ac785ad4cb1bd1c6b1a9e

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