Coder Social home page Coder Social logo

jacobfh1 / fasta-parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

The FASTA Parser Script is a Python tool for analyzing DNA or protein sequences, providing sequence statistics and generating tab-separated values (TSV) output files.

License: MIT License

Python 100.00%
dna-sequences fasta protein-sequences

fasta-parser's Introduction

FASTA Parser

This script is designed to perform sequence analysis on FASTA files. It calculates sequence statistics, generates a TSV output file, and provides various functionalities for analyzing protein sequences.

Features

  • Parsing FASTA files to extract sequence data
  • Calculating sequence statistics such as total sequences, average length, minimum length, and maximum length
  • Saving the analysis results to a tab-separated values (TSV) file
  • Identifying sequences with minimum and maximum lengths
  • Optional protein domain analysis using InterProScan or Pfam (not implemented)
  • Customizable alignment parameters for protein sequences (not implemented)
  • Comparison of sequences using pairwise alignment (not implemented)

Dependencies

The following dependencies are required to run the script:

Install the dependencies using the following command:

pip install biopython

Usage

  1. Ensure you have Python 3.x installed on your system.

  2. Install the required dependencies using the command mentioned above.

  3. Prepare a FASTA file containing the input sequences.

  4. Update the input_file and output_file variables in the script with the appropriate file paths.

  5. Run the script using the following command:

    python fasta_parser.py
    
  6. The output will be saved in the specified output file as a TSV format, containing the sequence names, lengths, and sequences themselves.

  7. You can modify the script parameters and alignment settings as needed for your specific analysis by editing the fasta_parser.py file.

Contributing

Contributions to the project are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

fasta-parser's People

Contributors

jacobfh1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.