Class SiftsChainToUniprotMapping
- java.lang.Object
- 
- org.biojava.nbio.structure.io.sifts.SiftsChainToUniprotMapping
 
- 
 public class SiftsChainToUniprotMapping extends Object A mapping between UniProt entries and PDB chains. For exampleSiftsChainToUniprot sifts = SiftsChainToUniprot.load(); SiftsChainEntry entry1 = sifts.getByUniProtId("P04585"); System.out.println(entry1.getPdbId() + "." + entry1.getChainName()); // 1hiv.A System.out.println(entry1.getPdbStart() + "-" + entry1.getPdbStop()); // 1-99 SiftsChainEntry entry2 = sifts.getByChainId("1hiv", "A"); System.out.println(entry1.equals(entry2)); // trueSee SIFTS project documentation: https://www.ebi.ac.uk/pdbe/docs/sifts/- Since:
- 3.0.7
- Author:
- dmyersturnbull
- See Also:
- SiftsChainEntry
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static FileDEFAULT_FILE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static SiftsChainToUniprotMappingbuild()Builds the mapping by reading SIFTS the tsv file set inDEFAULT_FILEvariable.Set<Map.Entry<String,SiftsChainEntry>>chainEntrySet()booleancontainsChainId(String pdbId, String chainId)booleancontainsUniProtId(String uniProtId)SiftsChainEntrygetByChainId(String pdbId, String chainId)SiftsChainEntrygetByUniProtId(String uniProtId)Set<String>keySet()static SiftsChainToUniprotMappingload()Loads the SIFTS mapping.static SiftsChainToUniprotMappingload(boolean useOnlyLocal)Loads the SIFTS mapping.intsize()Returns the number of mapped entries.Set<Map.Entry<String,SiftsChainEntry>>uniProtEntrySet()Collection<SiftsChainEntry>values()
 
- 
- 
- 
Field Detail- 
DEFAULT_FILEprotected static File DEFAULT_FILE 
 
- 
 - 
Method Detail- 
loadpublic static SiftsChainToUniprotMapping load() throws IOException 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
 
 - 
loadpublic static SiftsChainToUniprotMapping load(boolean useOnlyLocal) throws IOException 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)
 
 - 
buildprotected static SiftsChainToUniprotMapping build() throws IOException Builds the mapping by reading SIFTS the tsv file set inDEFAULT_FILEvariable.- Returns:
- Throws:
- IOException
 
 - 
chainEntrySetpublic Set<Map.Entry<String,SiftsChainEntry>> chainEntrySet() 
 - 
containsChainIdpublic boolean containsChainId(String pdbId, String chainId) 
 - 
containsUniProtIdpublic boolean containsUniProtId(String uniProtId) 
 - 
getByChainIdpublic SiftsChainEntry getByChainId(String pdbId, String chainId) 
 - 
getByUniProtIdpublic SiftsChainEntry getByUniProtId(String uniProtId) 
 - 
sizepublic int size() Returns the number of mapped entries.
 - 
uniProtEntrySetpublic Set<Map.Entry<String,SiftsChainEntry>> uniProtEntrySet() 
 - 
valuespublic Collection<SiftsChainEntry> values() 
 
- 
 
-