public class FastaIndex extends ExperimentObject
Constructor and Description |
---|
FastaIndex(HashMap<String,Long> indexes,
String fileName,
boolean isDecoy,
int nTarget)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Returns the file name of the inspected FASTA file.
|
Long |
getIndex(String accession)
Returns the index of the accession of interest.
|
HashMap<String,Long> |
getIndexes()
Returns a map of all indexes of the FASTA file (accession -> index).
|
int |
getNTarget()
Returns the number of target sequences in the database.
|
boolean |
isDecoy()
Returns a boolean indicating whether the database contains decoy sequences.
|
addUrParam, getParameterKey, getUrParam
public FastaIndex(HashMap<String,Long> indexes, String fileName, boolean isDecoy, int nTarget)
indexes
- The indexes of the inspected FASTA filefileName
- The FASTA file nameisDecoy
- If the FASTA file contains decoys or nornTarget
- Number of target sequences found in the databasepublic HashMap<String,Long> getIndexes()
public Long getIndex(String accession)
accession
- the accession of interestpublic String getFileName()
public boolean isDecoy()
public int getNTarget()
Copyright © 2013. All Rights Reserved.