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
- 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).
- GeneBankToAlignmentBank - Uses Muscle (must be installed locally) to transform a folder of .fasta files into a folder of matching alignment files.
- 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.
- 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
- 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.
- MatrixBankToAverageMatrix - Take a folder of distance matricices and produce an 'average' distance matrix with weights.
- MatrixBankStats - Find the statistics of each gene in a folder of distance matricies, such as one produced by AlignmentBankToMatrixBank.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FastaTransformer-0.0.11.tar.gz.
File metadata
- Download URL: FastaTransformer-0.0.11.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d52d496246222f1b7688d31b29d15310e4563c3066c5eea8a5ff72e4360b8b81
|
|
| MD5 |
9ad8fb48436763f4de161cd824b33f19
|
|
| BLAKE2b-256 |
a4e324e64625cf5b1fd54bc409b845e1fd27f7999e412af1f016a8a9526393e8
|
File details
Details for the file FastaTransformer-0.0.11-py3-none-any.whl.
File metadata
- Download URL: FastaTransformer-0.0.11-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
395497ae4f001379062dfaef5eb5d4445b5945c717d817dc5e08d92e4b0050ee
|
|
| MD5 |
8256c0d61b9e479ac07951db32d655b1
|
|
| BLAKE2b-256 |
3da69b4d45cf02ed241748a872fba4cc2e6576899ecd96933ddd304fc7500de7
|