public class SiftsChainToUniprotMapping extends Object
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
SiftsChainEntry
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,SiftsChainEntry>> |
chainEntrySet() |
boolean |
containsChainId(String pdbId,
String chainId) |
boolean |
containsUniProtId(String uniProtId) |
SiftsChainEntry |
getByChainId(String pdbId,
String chainId) |
SiftsChainEntry |
getByUniProtId(String uniProtId) |
Set<String> |
keySet() |
static SiftsChainToUniprotMapping |
load()
Loads the SIFTS mapping.
|
static SiftsChainToUniprotMapping |
load(boolean useOnlyLocal)
Loads the SIFTS mapping.
|
int |
size()
Returns the number of mapped entries.
|
Set<Map.Entry<String,SiftsChainEntry>> |
uniProtEntrySet() |
Collection<SiftsChainEntry> |
values() |
public static SiftsChainToUniprotMapping load() throws IOException
IOException
- If the local file could not be read and could not be downloadedpublic static SiftsChainToUniprotMapping load(boolean useOnlyLocal) throws IOException
useOnlyLocal
- If true, will throw an IOException if the file needs to be downloadedIOException
- If the local file could not be read and could not be downloaded (including if onlyLocal is true)public Set<Map.Entry<String,SiftsChainEntry>> chainEntrySet()
public boolean containsUniProtId(String uniProtId)
public SiftsChainEntry getByChainId(String pdbId, String chainId)
public SiftsChainEntry getByUniProtId(String uniProtId)
public int size()
public Set<Map.Entry<String,SiftsChainEntry>> uniProtEntrySet()
public Collection<SiftsChainEntry> values()
Copyright © 2000–2016 BioJava. All rights reserved.