https://github.com/noracodes/helicase
A Python3 script to simulate genetic transcription, translation, mutation, and repair on lists of DNA bases.
https://github.com/noracodes/helicase
Last synced: over 1 year ago
JSON representation
A Python3 script to simulate genetic transcription, translation, mutation, and repair on lists of DNA bases.
- Host: GitHub
- URL: https://github.com/noracodes/helicase
- Owner: NoraCodes
- License: apache-2.0
- Created: 2015-10-18T19:37:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T21:22:05.000Z (over 8 years ago)
- Last Synced: 2025-03-30T17:04:39.692Z (over 1 year ago)
- Language: Python
- Size: 30.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# helicase
A Python3 script to simulate genetic transcription, translation, mutation, and repair on lists of DNA bases.
## Example:
Assuming a file example.dna with the contents:
```
CATGTAACC
catgccccccccctaatct
```
helicase could be used thus:
```
print("Loading from File:")
strands = helicase.load_strands_from_file("example.dna")
print(strands)
framed_strands = []
for strand in strands:
framed_strands.append(helicase.frame_strand(strand))
print(framed_strands)
polypeptides = []
for strand in strands:
polypeptides.append(helicase.represent_polypeptide(helicase.translate_unframed_strand(strand),1))
print(polypeptides)
```
to produce:
```
['catgtaacc', 'catgccccccccctaatct']
[['atg', 'taa', 'cc'], ['atg', 'ccc', 'ccc', 'ccc', 'taa', 'tct']]
['Met', 'Met/Pro/Pro/Pro']
```
A better example can be found at example.py.