Skip to content

A small demo of how to use sqlite in python and BioPy to read fasta files and put them in databases.

Notifications You must be signed in to change notification settings

nickdelgrosso/mini_proteindb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

ProteinDB

A small demo of how to use sqlite in python and BioPy to ready fasta files and put them in databases.

Provides a ProteinDB class that can be populated with fasta files and queried by uniprot id and sequence.

Installation

pip install proteindb

Usage

from proteindb import ProteinDB
>> db = ProteinDB()

>> db.populate('uniprot1.fasta')

>> db.query(uniprot_id='DFAFDA1')
>> db.result
'SDFYUONNAJDMAMDFHAABWQ'

>> db.query(sequence='SDFYUONNAJDMAMDFHAABWQ')
>> db.result
'DFAFDA1'

About

A small demo of how to use sqlite in python and BioPy to read fasta files and put them in databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published