A small example package
Project description
pybbiology
Freely available tools for Analsis of DNA
The Biopython Project is an international association of developers
of freely available Python tools for computational molecular biology.
List of functions and usage
- seq_percent(dna_sequence,*char)
- has_stop_codon(dna,frame=0)
1. compute DNA sequence
def seq_percent(dna_sequence,*char):
sum=0
listed=[]
dna_length=len(dna_sequence)
for arg in char:
if listed.count(arg)==0:
sum= sum + dna_sequence.count(arg)
listed.append(arg)
return (sum)*100.0/dna_length
2. This function checks if given DNA has in frame stop codons.
def has_stop_codon(dna,frame=0):
stop_codon_found=False
stop_codons=['tga','tag','taa']
for i in range(frame,len(dna),3):
codon=dna[i:i+3].lower()
if codon in stop_codons:
stop_codon_found=True
break
return stop_codon_found
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 pybiology-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pybiology-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
409e0891a457cfdbb7762bbe0b185a4deee8544670a5decd1e23d4d1d999d386
|
|
| MD5 |
888a22b67822b5d1b73e6185cc1d1389
|
|
| BLAKE2b-256 |
2ee0aa254837deb015061ba110df88166fb71bd212597463cc6da01a895fef42
|