Proteolysis Of A Protein Sequence
4
1
Entering edit mode
13.3 years ago
Sandy Abs ▴ 10

Can any one help me for a python script to break the protein sequences by enzymatic action.( trypsin, etc). If trypsin breaks protein sequences at K and R, can i have a script for getting all the peptide fragments after cutting.. at K and R for a sequence.

enzyme python • 4.6k views
ADD COMMENT
0
Entering edit mode

I removed the tag "restriction" from question; restriction enzymes are nothing to do with proteolytic cleavage.

ADD REPLY
0
Entering edit mode

What's your input file? FASTA?

ADD REPLY
0
Entering edit mode

I just developed one today for the same problem. If you still the python script on trypsin_digest you email me ifess.fes@gmail.com

ADD REPLY
3
Entering edit mode
13.3 years ago
Prateek ★ 1.0k

Have a look at this http://www.expasy.ch/tools/peptidecutter/

ADD COMMENT
2
Entering edit mode
13.3 years ago
Dawe ▴ 270

There should be a plenty of such scripts. BTW, you can look at function "cleave" (line 764) in this source

http://code.google.com/p/nsilk/source/browse/trunk/xllib/sequence.py?r=143

Nsilk is a python tool to spot protein-protein interactions, but that function will predict peptides from a sequence. You only have to be inspired as it uses some classes and objects that you won't have.

d

ADD COMMENT
2
Entering edit mode
13.1 years ago
Mark Evans ▴ 50

This is pretty simple to do with python, no fancy scripts are required.

>>> protein = 'MLTFKFYLPKQATELKDLQCLEDELGPLRHVLDLTESKSFQLEDAENFIS'
>>> 
>>> print protein.replace('K','-').replace('R','-').split('-')
['MLTF', 'FYLP', 'QATEL', 'DLQCLEDELGPL', 'HVLDLTES', 'SFQLEDAENFIS']

You can plug this in anywhere in your program.

You could make the code a bit more dynamic I suppose by using a dictionary to hold the enzyme:recognition site combinations and building the command that way, rather than hardwiring it.

ADD COMMENT
1
Entering edit mode
13.3 years ago
Neilfws 49k

I'd start with a tool designed for this purpose. One option is digest, from the EMBOSS suite of programs.

It should not be too difficult to integrate this tool into a Python script, either by calling it and parsing the output, or running the EMBOSS tool independently then parsing. I believe that BioPython has some options for working with EMBOSS via the Bio.Emboss.Applications module.

ADD COMMENT
0
Entering edit mode

Thats what i am asking for.. I couldnt get that exactly. If possible. Can you do it and reply??

ADD REPLY

Login before adding your answer.

Traffic: 3088 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6