public class PdbBlock extends Object
Constructor and Description |
---|
PdbBlock(String aBlock,
int aStart_protein,
int aEnd_protein,
int aStart_block,
int aEnd_block)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBlock()
Returns the block.
|
String |
getBlockSequence(String aPdbAccession)
Get the blocked sequence.
|
int |
getDifference()
Returns the difference.
|
int |
getEndBlock()
Returns the block end.
|
int |
getEndProtein()
Returns the protein end.
|
Integer[] |
getSelectedPositions()
Returns the selected positions.
|
boolean |
getSelection()
Returns true if there is a selection.
|
int |
getStartBlock()
Returns the block start.
|
int |
getStartProtein()
Returns the protein start.
|
String |
readFasta(String lFasta,
String aPdbAccession)
Read a FASTA.
|
String |
readUrl(String aUrl,
String aPdbAccession)
Read a URL.
|
void |
setBlock(String aBlock)
Sets the block.
|
void |
setEndBlock(int aEndBlock)
Set the block end.
|
void |
setEndProtein(int aEndProtein)
Set the protein end.
|
void |
setSelectedPositions(Integer[] aSelectedPositions)
Set the selected positions.
|
void |
setStartBlock(int aStartBlock)
Set the block start.
|
void |
setStartProtein(int aStartProtein)
Set the protein start.
|
public PdbBlock(String aBlock, int aStart_protein, int aEnd_protein, int aStart_block, int aEnd_block)
aBlock
- the blockaStart_protein
- the protein start positionaEnd_protein
- the protein end positionaStart_block
- the block start positionaEnd_block
- the block end positionpublic String getBlock()
public void setBlock(String aBlock)
aBlock
- the blockpublic int getStartProtein()
public void setStartProtein(int aStartProtein)
aStartProtein
- the protein startpublic int getEndProtein()
public void setEndProtein(int aEndProtein)
aEndProtein
- the protein endpublic int getStartBlock()
public void setStartBlock(int aStartBlock)
aStartBlock
- the start blockpublic int getEndBlock()
public void setEndBlock(int aEndBlock)
aEndBlock
- the end blockpublic int getDifference()
public boolean getSelection()
public Integer[] getSelectedPositions()
public void setSelectedPositions(Integer[] aSelectedPositions)
aSelectedPositions
- the selected positionspublic String getBlockSequence(String aPdbAccession)
aPdbAccession
- the PDB accessionpublic String readUrl(String aUrl, String aPdbAccession)
aUrl
- the URLaPdbAccession
- the PDB accessionCopyright © 2016. All rights reserved.