public class FastaIndex extends ExperimentObject
Constructor and Description |
---|
FastaIndex(java.util.HashMap<java.lang.String,java.lang.Long> indexes,
java.lang.String fileName,
java.lang.String name,
boolean concatenatedTargetDecoy,
boolean isDefaultReversed,
int nTarget,
long lastModified,
Header.DatabaseType databaseType,
java.lang.String decoyTag,
java.lang.String version)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Header.DatabaseType |
getDatabaseType()
Indicates the database type.
|
java.lang.String |
getDecoyTag()
Returns the decoy tag.
|
static java.lang.String |
getDefaultVersion(long lastModified)
Returns the default version based on the time the file was last modified.
|
java.lang.String |
getFileName()
Returns the file name of the inspected FASTA file.
|
java.lang.Long |
getIndex(java.lang.String accession)
Returns the index of the accession of interest.
|
java.util.HashMap<java.lang.String,java.lang.Long> |
getIndexes()
Returns a map of all indexes of the FASTA file (accession -> index).
|
java.lang.Long |
getLastModified()
Returns when the file was last modified.
|
java.lang.String |
getName()
Returns the name of the database.
|
int |
getNSequences()
Returns the number of sequences in the database.
|
int |
getNTarget()
Returns the number of target sequences in the database.
|
java.lang.String |
getVersion()
Returns the database version.
|
boolean |
isConcatenatedTargetDecoy()
Indicates whether the database is a concatenated target/decoy database.
|
boolean |
isDefaultReversed()
Indicates whether the decoy sequences are reversed versions of the target
and the decoy accessions built based on the sequence factory methods.
|
void |
setConcatenatedTargetDecoy(boolean concatenatedTargetDecoy)
Sets whether the database is a concatenated target/decoy database.
|
void |
setDatabaseType(Header.DatabaseType databaseType)
Sets the database type.
|
void |
setDecoyTag(java.lang.String decoyTag)
Sets the decoy tag.
|
void |
setName(java.lang.String name)
Sets a new name for the database.
|
void |
setVersion(java.lang.String version)
Sets the database version.
|
addUrParam, getParameterKey, getUrParam
public FastaIndex(java.util.HashMap<java.lang.String,java.lang.Long> indexes, java.lang.String fileName, java.lang.String name, boolean concatenatedTargetDecoy, boolean isDefaultReversed, int nTarget, long lastModified, Header.DatabaseType databaseType, java.lang.String decoyTag, java.lang.String version)
indexes
- The indexes of the inspected FASTA filefileName
- The FASTA file namename
- the name of the databaseconcatenatedTargetDecoy
- If the FASTA file is a concatenated
target/decoy databaseisDefaultReversed
- is this a default reversed databasenTarget
- Number of target sequences found in the databaselastModified
- a long indicating the last time the indexed file was
modifieddatabaseType
- the database typedecoyTag
- the decoy tagversion
- the database versionpublic java.util.HashMap<java.lang.String,java.lang.Long> getIndexes()
public java.lang.Long getIndex(java.lang.String accession)
accession
- the accession of interestpublic java.lang.String getFileName()
public boolean isDefaultReversed()
public int getNTarget()
public int getNSequences()
public java.lang.Long getLastModified()
public Header.DatabaseType getDatabaseType()
public void setDatabaseType(Header.DatabaseType databaseType)
databaseType
- the database typepublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- the database versionpublic boolean isConcatenatedTargetDecoy()
public void setConcatenatedTargetDecoy(boolean concatenatedTargetDecoy)
concatenatedTargetDecoy
- whether the database is a concatenated
target/decoy databasepublic java.lang.String getDecoyTag()
public void setDecoyTag(java.lang.String decoyTag)
decoyTag
- the decoy tagpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- a new name for the databasepublic static java.lang.String getDefaultVersion(long lastModified)
lastModified
- long indicating when the database was last modifiedCopyright © 2013. All Rights Reserved.