-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for transglutaminase (tg) cross-linker.
- Loading branch information
Showing
2 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...eb_app/src_shared_code/org/yeastrc/xlink/linkable_positions/linkers/Transglutaminase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package org.yeastrc.xlink.linkable_positions.linkers; | ||
|
||
import java.util.Collection; | ||
import java.util.HashSet; | ||
|
||
import org.yeastrc.xlink.utils.ProteinSequenceUtils; | ||
|
||
public class Transglutaminase implements ILinker { | ||
|
||
@Override | ||
public Collection<Integer> getLinkablePositions(String proteinSequence) throws Exception { | ||
|
||
Collection<Integer> linkablePositions = ProteinSequenceUtils.getPositionsOfResidueForProteinSequence( proteinSequence, "K" ); | ||
|
||
linkablePositions.addAll( ProteinSequenceUtils.getPositionsOfResidueForProteinSequence( proteinSequence, "Q" ) ); | ||
|
||
return linkablePositions; | ||
} | ||
|
||
@Override | ||
public Collection<Integer> getLinkablePositions( String querySequence, String subjectSequence, int subjectPosition ) throws Exception { | ||
|
||
String subjectResidue = subjectSequence.substring( subjectPosition - 1, subjectPosition ); | ||
Collection<Integer> linkablePositions = new HashSet<Integer>(); | ||
|
||
if( subjectResidue.equals( "K" ) ) { | ||
|
||
// lysines interact with E, D, and C-terminus | ||
linkablePositions.addAll( ProteinSequenceUtils.getPositionsOfResidueForProteinSequence( querySequence, "Q" ) ); | ||
|
||
} else if( subjectResidue.equals( "Q" ) ) { | ||
|
||
// E and D interact with K and the two N-terminal residues | ||
linkablePositions.addAll( ProteinSequenceUtils.getPositionsOfResidueForProteinSequence( querySequence, "K" ) ); | ||
|
||
} | ||
|
||
return linkablePositions; | ||
} | ||
|
||
|
||
@Override | ||
public double getLinkerLength() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public Collection<String> getCrosslinkFormulas() { | ||
|
||
Collection<String> formulas = new HashSet<>(); | ||
formulas.add( "-NH3" ); | ||
|
||
return formulas; | ||
} | ||
|
||
@Override | ||
public String getCrosslinkFormula(double mass) throws Exception { | ||
return "-NH3"; | ||
} | ||
|
||
} |