Class SiftsChainToUniprotMapping
java.lang.Object
org.biojava.nbio.structure.io.sifts.SiftsChainToUniprotMapping
A mapping between UniProt entries and PDB chains.
 For example
 
 SiftsChainToUniprot sifts = SiftsChainToUniprot.load();
 SiftsChainEntry entry1 = sifts.getByUniProtId("P04585");
 System.out.println(entry1.getPdbId() + "." + entry1.getChainId()); // 1hiv.A
 System.out.println(entry1.getPdbStart() + "-" + entry1.getPdbStop()); // 1-99
 SiftsChainEntry entry2 = sifts.getByChainId("1hiv", "A");
 System.out.println(entry1.equals(entry2)); // true
 - Since:
 - 3.0.7
 - Author:
 - dmyersturnbull
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsChainId(String pdbId, String chainId) booleancontainsUniProtId(String uniProtId) getByChainId(String pdbId, String chainId) getByUniProtId(String uniProtId) keySet()static SiftsChainToUniprotMappingload()Loads the SIFTS mapping.static SiftsChainToUniprotMappingload(boolean useOnlyLocal) Loads the SIFTS mapping.intsize()Returns the number of mapped entries.values() 
- 
Method Details
- 
load
Loads the SIFTS mapping. Attempts to load the mapping file in the PDB cache directory. If the file does not exist or could not be parsed, downloads and stores a GZ-compressed file.- Returns:
 - Throws:
 IOException- If the local file could not be read and could not be downloaded
 - 
load
Loads the SIFTS mapping. Attempts to load the mapping file in the PDB cache directory. If the file does not exist or could not be parsed, downloads and stores a GZ-compressed file.- Parameters:
 useOnlyLocal- If true, will throw an IOException if the file needs to be downloaded- Returns:
 - Throws:
 IOException- If the local file could not be read and could not be downloaded (including if onlyLocal is true)
 - 
chainEntrySet
 - 
containsChainId
 - 
containsUniProtId
 - 
getByChainId
 - 
getByUniProtId
 - 
keySet
 - 
size
public int size()Returns the number of mapped entries. - 
uniProtEntrySet
 - 
values
 
 -