Package org.rcsb.strucmotif.config
Class MotifSearchConfig
java.lang.Object
org.rcsb.strucmotif.config.MotifSearchConfig
@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix="strucmotif")
public class MotifSearchConfig
extends Object
All properties used throughout the strucmotif-search application.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the inverted index directory.static final StringRCSB URL that reports currently present identifiers in archive.static final StringName of the renumbered directory.static final StringList of all identifiers needed to recover if update operation fails.static final StringList of all identifiers ever registered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe URL where (Binary)CIF data will be fetched from if not present locally.Optional path to a local collection of structure data.intHow many digits to write for matrices.intHow many digits to write (e.g.floatMaximum distance of residue pairs.intHow many tries are allowed for connection failures/timeouts during update.How is index and structure data acquired at runtime?intMaximum number of residues in a motif.intMaximum number of results returned.intHow many threads to use?intHow many digits to write for renumbered files.The root path where data is read/written.floatConvenience method to get squared distance cutoff.intHow many structures to process before flushing to inverted index.booleanGzip renumbered files?voidsetCifFetchUrl(String cifFetchUrl) The URL where (Binary)CIF data will be fetched from if not present locally.voidsetDataSource(String dataSource) Optional path to a local collection of structure data.voidsetDecimalPlacesMatrix(int decimalPlacesMatrix) Set how many digits to write for matrices.voidsetDecimalPlacesScore(int decimalPlacesScore) Set how many digits to write (e.g.voidsetDistanceCutoff(float distanceCutoff) Set maximum distance of residue pairs.voidsetDownloadTries(int downloadTries) Set how many tries should be allowed for connection failures/timeouts during update.voidsetInMemoryStrategy(InMemoryStrategy inMemoryStrategy) Set how index and structure data is acquired at runtime.voidsetMaxMotifSize(int maxMotifSize) Set maximum number of residues in a motif.voidsetMaxResults(int maxResults) Set maximum number of results returned.voidsetNumberThreads(int numberThreads) Set how many threads to use?voidsetRenumberedCoordinatePrecision(int renumberedCoordinatePrecision) Set how many digits to write for renumbered files.voidsetRenumberedGzip(boolean renumberedGzip) Set gzip renumbered files?voidsetRootPath(String rootPath) Set the root path where data is read/written.voidsetUpdateChunkSize(int updateChunkSize) Set how many structures to process before flushing to inverted index.
-
Field Details
-
STATE_KNOWN_LIST
List of all identifiers ever registered.- See Also:
-
STATE_DIRTY_LIST
List of all identifiers needed to recover if update operation fails.- See Also:
-
RENUMBERED_DIRECTORY
Name of the renumbered directory.- See Also:
-
INDEX_DIRECTORY
Name of the inverted index directory.- See Also:
-
RCSB_ENTRY_LIST
RCSB URL that reports currently present identifiers in archive.- See Also:
-
-
Constructor Details
-
MotifSearchConfig
public MotifSearchConfig()
-
-
Method Details
-
getDistanceCutoff
public float getDistanceCutoff()Maximum distance of residue pairs.- Returns:
- threshold in Angstrom
-
setDistanceCutoff
public void setDistanceCutoff(float distanceCutoff) Set maximum distance of residue pairs.- Parameters:
distanceCutoff- threshold in Angstrom
-
getRootPath
The root path where data is read/written.- Returns:
- a path
-
setRootPath
Set the root path where data is read/written.- Parameters:
rootPath- a path
-
getDataSource
Optional path to a local collection of structure data. This will be used during update operations. If not set or not valid, corresponding data will be fetched frombcif-fetch-url.{id}refers to the PDB-ID,{middle}can be used to represent the middle hash of an ID (e.g. 'ab' for '1abc').- Returns:
- a path
-
setDataSource
Optional path to a local collection of structure data. This will be used during update operations. If not set or not valid, corresponding data will be fetched frombcif-fetch-url.{id}refers to the PDB-ID,{middle}can be used to represent the middle hash of an ID (e.g. 'ab' for '1abc').- Parameters:
dataSource- a path
-
getNumberThreads
public int getNumberThreads()How many threads to use?- Returns:
- an int
-
setNumberThreads
public void setNumberThreads(int numberThreads) Set how many threads to use?- Parameters:
numberThreads- an int greater than 0
-
getMaxResults
public int getMaxResults()Maximum number of results returned.- Returns:
- an int
-
setMaxResults
public void setMaxResults(int maxResults) Set maximum number of results returned.- Parameters:
maxResults- an int
-
getDecimalPlacesScore
public int getDecimalPlacesScore()How many digits to write (e.g. for RMSD).- Returns:
- an int
-
setDecimalPlacesScore
public void setDecimalPlacesScore(int decimalPlacesScore) Set how many digits to write (e.g. for RMSD).- Parameters:
decimalPlacesScore- an int
-
getDecimalPlacesMatrix
public int getDecimalPlacesMatrix()How many digits to write for matrices.- Returns:
- an int
-
setDecimalPlacesMatrix
public void setDecimalPlacesMatrix(int decimalPlacesMatrix) Set how many digits to write for matrices.- Parameters:
decimalPlacesMatrix- an int
-
getUpdateChunkSize
public int getUpdateChunkSize()How many structures to process before flushing to inverted index.- Returns:
- an int
-
setUpdateChunkSize
public void setUpdateChunkSize(int updateChunkSize) Set how many structures to process before flushing to inverted index.- Parameters:
updateChunkSize- an int
-
getMaxMotifSize
public int getMaxMotifSize()Maximum number of residues in a motif.- Returns:
- an int
-
setMaxMotifSize
public void setMaxMotifSize(int maxMotifSize) Set maximum number of residues in a motif.- Parameters:
maxMotifSize- an int
-
getCifFetchUrl
The URL where (Binary)CIF data will be fetched from if not present locally.{id}refers to the PDB-ID,{middle}can be used to represent the middle hash of an ID (e.g. 'ab' for '1abc').- Returns:
- a URL
-
setCifFetchUrl
The URL where (Binary)CIF data will be fetched from if not present locally.{id}refers to the PDB-ID,{middle}can be used to represent the middle hash of an ID (e.g. 'ab' for '1abc').- Parameters:
cifFetchUrl- a URL
-
getSquaredDistanceCutoff
public float getSquaredDistanceCutoff()Convenience method to get squared distance cutoff.- Returns:
- a float
-
getRenumberedCoordinatePrecision
public int getRenumberedCoordinatePrecision()How many digits to write for renumbered files.- Returns:
- an int
-
setRenumberedCoordinatePrecision
public void setRenumberedCoordinatePrecision(int renumberedCoordinatePrecision) Set how many digits to write for renumbered files.- Parameters:
renumberedCoordinatePrecision- an int
-
isRenumberedGzip
public boolean isRenumberedGzip()Gzip renumbered files?- Returns:
- a Boolean
-
setRenumberedGzip
public void setRenumberedGzip(boolean renumberedGzip) Set gzip renumbered files?- Parameters:
renumberedGzip- a Boolean
-
getDownloadTries
public int getDownloadTries()How many tries are allowed for connection failures/timeouts during update.- Returns:
- an int
-
setDownloadTries
public void setDownloadTries(int downloadTries) Set how many tries should be allowed for connection failures/timeouts during update.- Parameters:
downloadTries- an int
-
getInMemoryStrategy
How is index and structure data acquired at runtime?- Returns:
- the InMemoryStrategy
-
setInMemoryStrategy
Set how index and structure data is acquired at runtime.- Parameters:
inMemoryStrategy- the new value
-