Package com.compomics.util.pdbfinder.pdb
Class PdbBlock
java.lang.Object
com.compomics.util.pdbfinder.pdb.PdbBlock
PdbBlock.
- Author:
- Niklaas Colaert, Yehia Farag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Returns the block.getBlockSequence(String aPdbAccession) Get the blocked sequence.intReturns the difference.intReturns the block end.intReturns the protein end.Integer[]Returns the selected positions.booleanReturns true if there is a selection.intReturns the block start.intReturns the protein start.Read a FASTA.Read a URL.voidSets the block.voidsetEndBlock(int aEndBlock) Set the block end.voidsetEndProtein(int aEndProtein) Set the protein end.voidsetSelectedPositions(Integer[] aSelectedPositions) Set the selected positions.voidsetStartBlock(int aStartBlock) Set the block start.voidsetStartProtein(int aStartProtein) Set the protein start.
-
Constructor Details
-
PdbBlock
public PdbBlock()Empty default constructor -
PdbBlock
public PdbBlock(String aBlock, int aStart_protein, int aEnd_protein, int aStart_block, int aEnd_block) Constructor.- Parameters:
aBlock- the blockaStart_protein- the protein start positionaEnd_protein- the protein end positionaStart_block- the block start positionaEnd_block- the block end position
-
-
Method Details
-
getBlock
Returns the block.- Returns:
- block
-
setBlock
Sets the block.- Parameters:
aBlock- the block
-
getStartProtein
public int getStartProtein()Returns the protein start.- Returns:
- the protein start
-
setStartProtein
public void setStartProtein(int aStartProtein) Set the protein start.- Parameters:
aStartProtein- the protein start
-
getEndProtein
public int getEndProtein()Returns the protein end.- Returns:
- the protein end
-
setEndProtein
public void setEndProtein(int aEndProtein) Set the protein end.- Parameters:
aEndProtein- the protein end
-
getStartBlock
public int getStartBlock()Returns the block start.- Returns:
- the block start
-
setStartBlock
public void setStartBlock(int aStartBlock) Set the block start.- Parameters:
aStartBlock- the start block
-
getEndBlock
public int getEndBlock()Returns the block end.- Returns:
- the block end
-
setEndBlock
public void setEndBlock(int aEndBlock) Set the block end.- Parameters:
aEndBlock- the end block
-
getDifference
public int getDifference()Returns the difference.- Returns:
- the difference
-
getSelection
public boolean getSelection()Returns true if there is a selection.- Returns:
- true if there is a selection.
-
getSelectedPositions
Returns the selected positions.- Returns:
- the selected positions
-
setSelectedPositions
Set the selected positions.- Parameters:
aSelectedPositions- the selected positions
-
getBlockSequence
Get the blocked sequence.- Parameters:
aPdbAccession- the PDB accession- Returns:
- the blocked sequence
-
readUrl
Read a URL.- Parameters:
aUrl- the URLaPdbAccession- the PDB accession- Returns:
- the sequence
-
readFasta
Read a FASTA.- Parameters:
lFasta- the FASTA entryaPdbAccession- the PDB accession- Returns:
- the sequence
-