public class SiftsChainToUniprotMapping extends Object
SiftsChainToUniprot 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/
SiftsChainEntry
Modifier and Type | Field and Description |
---|---|
protected static File |
DEFAULT_FILE |
Modifier and Type | Method and Description |
---|---|
protected static SiftsChainToUniprotMapping |
build()
Builds the mapping by reading SIFTS the tsv file set in
DEFAULT_FILE variable. |
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() |
protected static File DEFAULT_FILE
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)protected static SiftsChainToUniprotMapping build() throws IOException
DEFAULT_FILE
variable.IOException
public Set<Map.Entry<String,SiftsChainEntry>> chainEntrySet()
public boolean containsChainId(String pdbId, String chainId)
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–2018 BioJava. All rights reserved.