Code Monkey home page Code Monkey logo

chatgpt_sandbox's Introduction

chatGPT_sandbox

Repository created to store scripts created with ChatGPT IA.

Script 01_global_alignment.py

I asked to ChatGPT: Could you write a script in python to perform a pairwise nucletide alignment using a global approach? the score matrix should be declared as a table inside the code, and the fasta with sequencies should be parsed as a input fasta file using the click lib and read with seqIO method of biopython lib. The output should be a fasta file with the aligned sequences.

Moreover, the IA explained how can I run the script:

python align_sequences.py --input_file sequences.fasta --output_file aligned_sequences.fasta

So, I asked: Could you create a requirements.txt file with the dependencies of the aforementioned code that can be used with pip? And that is! the requirements.txt was created!!

And tested with:

conda create -n "test_chat" python=3.9
conda activate test_chat
pip install -r requirements/01_requirements.txt
python 01_global_alignment.py --input_file test_files/01_input.fa --output_file test_files/01_output.fa

PS: This one is not the first code that ChatGPT returned, I made at least 4 attempts with the same question, the first fours returned codes that broke in different parts...

chatgpt_sandbox's People

Contributors

dezordi avatar

Watchers

 avatar

Forkers

aipythonguy

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.