GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — biojava.github.io/_wiki/BioJava_CookBook3_AddProtMod.md at master · biojava/biojava.github.io

Expand file tree

/

BioJava_CookBook3_AddProtMod.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
111 lines (89 loc) · 4.26 KB
/

BioJava_CookBook3_AddProtMod.md

Copy path

File metadata and controls

111 lines (89 loc) · 4.26 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
title BioJava:CookBook3:AddProtMod
permalink wiki/BioJava%3ACookBook3%3AAddProtMod

How can I define a new protein modification?

The protmod module automatically loads a list of protein modifications into the protein modification registry. In case you have a protein modification that is not preloaded, it is possible to define it by yourself and add it into the registry.

Example: define and register disulfide bond in Java code

(CYS) List<Component> components = new ArrayList<Component>(2);
components.add(Component.of("CYS"));
components.add(Component.of("CYS"));

// define the atom linkages between the components, in this case the SG
atoms on both CYS groups ModificationLinkage linkage = new
ModificationLinkage(components, 0, "SG", 1, "SG");

// define the modification condition, i.e. what components are involved
and what atoms are linked between them ModificationCondition condition =
new ModificationConditionImpl(components,
Collections.singletonList(linkage));

// build a modification ProteinModification mod =

`       new ProteinModificationImpl.Builder("0018_test", `  
`       ModificationCategory.CROSS_LINK_2,`  
`       ModificationOccurrenceType.NATURAL,`  
`       condition)`  
`       .setDescription("A protein modification that effectively cross-links two L-cysteine residues to form L-cystine.")`  
`       .setFormula("C 6 H 8 N 2 O 2 S 2")`  
`       .setResidId("AA0025")`  
`       .setResidName("L-cystine")`  
`       .setPsimodId("MOD:00034")`  
`       .setPsimodName("L-cystine (cross-link)")`  
`       .setSystematicName("(R,R)-3,3'-disulfane-1,2-diylbis(2-aminopropanoic acid)")`  
`       .addKeyword("disulfide bond")`  
`       .addKeyword("redox-active center")`  
`   .build();`

//register the modification ProteinModificationRegistry.register(mod);

Example: definedisulfide bond in XML file and register by Java code

   
       0018
       A protein modification that effectively cross-links two L-cysteine residues to form L-cystine.
       (R,R)-3,3'-disulfane-1,2-diylbis(2-aminopropanoic acid)
       
           

RESID

           AA0025
           L-cystine
       
       
           

PSI-MOD

           MOD:00034
           L-cystine (cross-link)
       
       
           
               CYS
           
           
               CYS
           
           
               SG
               SG
           
       
       natural
       crosslink2
       redox-active center
       disulfide bond
   

ProteinModificationXmlReader.registerProteinModificationFromXml(fis);

See also

- [How can I identify protein modifications in a structure?](/wiki/BioJava:CookBook3:ProtMod "wikilink") - [How can I get the list of supported protein modifications?](/wiki/BioJava:CookBook3:SupportedProtMod "wikilink")
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.