项目作者: ying-li-python

项目描述 :
Analyze a DNA sequence for primer construction
高级语言: Python
项目地址: git://github.com/ying-li-python/DNA-analyze.git
创建时间: 2018-09-22T15:28:40Z
项目社区:https://github.com/ying-li-python/DNA-analyze

开源协议:

下载


DNA analysis for primer construction contributions welcome

Tired of generating primers by guessing and trying to predict which nucleotide sequence fits the requirements for PCR/qPCR? This was extremely time-consuming because I had to do this for every gene I wanted to investigate.

To make my PhD research easier, I created a Python program that will tell you whether your primer sequence meets the criteria for efficiency.

Getting Started

You will need to download this folder, and in command line, route to this folder using cd command and run this script.

  1. git clone https://github.com/ying-li-python/DNA-analyze.git
  2. cd DNA-analyze
  3. python main.py

The script will run and will ask you to paste a DNA sequence.

  1. Please paste a DNA sequence (5'->3'):

Output:

After printing the results, script will automatically asks the user if you would like to analyze another DNA sequence.

Errors

If your DNA sequence contains a non-DNA letter, an error will pop-up and the script will not run.

  1. This is not a valid DNA sequence! Please try again.

Methods

We would like the script to show:

  • %GC content
  • Sequence length
  • Reverse complemntary sequence (5’ -> 3’)

For this script, we created nested for-loops and while loops, if else statements, .replace() and len() function.

Author

  • Ying Li

Acknowledgements