|
'STRAP:multiple sequence alignments ' | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charite.christo.protein.Protein charite.christo.protein.ProteinNT
public class ProteinNT
This protein model extends JAVADOC:Protein. It has the additional feature that it can be defined from a nucleotide sequence which is translated into amino acid sequence. The class ProteinNT does not depend on classes of STRAP which reside in the folder charite/christo/strap/. STRAP extends ProteinNT by the class JAVADOC:charite.christo.strap.StrapProtein.
Field Summary | |
---|---|
static boolean |
AMINO_ACIDS
|
static String |
FORWARD
|
static String |
FORWARD_COMPLEMENT
|
static boolean |
NUCLEOTIDES
|
static String[] |
ORIENTATIONS
|
static String |
REVERSE
|
static String |
REVERSE_COMPLEMENT
|
Fields inherited from class charite.christo.protein.Protein |
---|
CDS_GENE, CDS_NOTE, CDS_PRODUCT, CDS_PROTEIN, CDS_XREFS, clientObjects_, FILE_MASKS, mANNO, mDNA, mGAPS, mICON, MODI_COUNTS, MODI_COUNTS_ALIGNMENT, mTIPS, mTRANS, PARSING_INFO, vProteinViewers, vResidueSelection, WEAK_REF |
Fields inherited from interface charite.christo.interfaces.ChRunnable |
---|
APPEND, DOWNLOAD_FINISHED, INTERPRET_LINE, SET_ICON_IMAGE |
Constructor Summary | |
---|---|
ProteinNT()
|
Method Summary | |
---|---|
int |
aminoAcidIndex2nucleotideIndex(int i)
Maps amino acid indices upon nucleotide indices See JAVADOC:ProteinNT#nucleotideIndex2aminoAcidIndex(int) |
void |
applyCDS_expression(String s)
join(7940..7996,8095..8174,8287..8368,8506..8686, complement(join(1787209..1787388,1787427.... |
boolean[] |
areNucleotidesCurrentStrandTranslated()
True means a nucleotide is part of an triplet (exons). |
boolean |
cdsExpressionApplied()
|
int |
countCodingNucleotides()
|
int |
countNucleotides()
Number of nucleotides or 0; |
byte |
getNucleotide(int i)
Get the nucleotide of index i or -1; |
byte |
getNucleotideCurrentStrand(int i)
|
byte[] |
getNucleotides()
All nucleotides (with introns) including the non-translated (introns) ones |
String |
getNucleotidesAsString()
This method is slow the first time after a change. |
String |
getNucleotidesAsStringUC()
This method is slow the first time after a change. |
byte[] |
getNucleotidesCurrentStrand()
The nucleotides after applying the necessary reverse and complement operations. |
String |
getNucleotidesCurrentStrandAsString()
|
byte[] |
getNucleotidesCurrentStrandExactLength()
|
String |
getNucleotidesReverseComplementAsStringUC()
|
byte[] |
getResidueTriplet(int iAa,
byte[] buffer)
The triplet at amino acid position iAs |
byte[] |
getResidueTypeFullLength()
|
boolean |
isComplement()
Complement for the translation of nucleotides. |
boolean |
isNucleotideCurrentStrandTranslated(int i)
True means a nucleotide is part of an triplet (exons). |
boolean |
isReverse()
Direction translation of nucleotides. |
int |
nucleotideIdx2translatedNucleotideIdx(int idx)
Given is the index of a nucleotide. |
int |
nucleotideIndex2aminoAcidIndex(int i)
Maps nucleotide indices upon amino acid indices See JAVADOC:ProteinNT#aminoAcidIndex2nucleotideIndex(int) |
int[] |
nucleotideIndices2translatedNucleotideIndices()
An array mapping nucleotide indices. |
boolean[] |
nucleotideSelection2aminoAcidSelection(boolean[] selNts,
int offset)
|
boolean |
parseFrameShift(byte[] z,
int l)
|
Object |
run(String id,
Object arg)
|
void |
setNucleotideCurrentStrandTranslated(int iNt,
boolean isTranslated)
the transformed nucleotide of index i is translated or not depending on b |
void |
setNucleotides(byte[] rawNtSequence,
String orientation)
Sets the sequence of nucleotides. |
void |
setNucleotides(String nts,
String orientation)
See JAVADOC:ProteinNT#setNucleotides(byte[],ProteinNT$Orientation) |
void |
setNucleotidesCurrentStrandTranslated(boolean[] bb)
Determines which nucleotide needs to be translated (coding sequence). |
void |
setTranslatedStrand(String orientation)
Set the way nucleotides are translated |
int |
translatedNucleotideIndex2nucleotideIndex(int idx)
computes the nucleotide index from the translated idx. |
int[] |
translatedNucleotideIndices2nucleotideIndices()
An array mapping nucleotide indices. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final boolean AMINO_ACIDS
public static final boolean NUCLEOTIDES
public static final String FORWARD
public static final String REVERSE
public static final String FORWARD_COMPLEMENT
public static final String REVERSE_COMPLEMENT
public static final String[] ORIENTATIONS
Constructor Detail |
---|
public ProteinNT()
Method Detail |
---|
public boolean parseFrameShift(byte[] z, int l)
public final boolean isReverse()
public final boolean isComplement()
public final void setTranslatedStrand(String orientation)
public final byte[] getNucleotides()
public final byte[] getNucleotidesCurrentStrand()
public final byte[] getNucleotidesCurrentStrandExactLength()
public String getNucleotidesAsString()
public String getNucleotidesAsStringUC()
public String getNucleotidesReverseComplementAsStringUC()
public String getNucleotidesCurrentStrandAsString()
public final byte getNucleotideCurrentStrand(int i)
public final byte getNucleotide(int i)
public final int countNucleotides()
public final void setNucleotides(byte[] rawNtSequence, String orientation)
public final void setNucleotides(String nts, String orientation)
public final void setNucleotidesCurrentStrandTranslated(boolean[] bb)
public final void setNucleotideCurrentStrandTranslated(int iNt, boolean isTranslated)
public final boolean[] areNucleotidesCurrentStrandTranslated()
public final boolean isNucleotideCurrentStrandTranslated(int i)
public final int countCodingNucleotides()
public final byte[] getResidueTypeFullLength()
public final int[] nucleotideIndices2translatedNucleotideIndices()
public final int nucleotideIdx2translatedNucleotideIdx(int idx)
public final int[] translatedNucleotideIndices2nucleotideIndices()
public final int translatedNucleotideIndex2nucleotideIndex(int idx)
public final int aminoAcidIndex2nucleotideIndex(int i)
public final int nucleotideIndex2aminoAcidIndex(int i)
public final byte[] getResidueTriplet(int iAa, byte[] buffer)
iAa
- the index of the amino acidbuffer
- a buffer of 3 bytespublic final boolean[] nucleotideSelection2aminoAcidSelection(boolean[] selNts, int offset)
public void applyCDS_expression(String s)
public boolean cdsExpressionApplied()
public Object run(String id, Object arg)
run
in interface ChRunnable
|
'STRAP:multiple sequence alignments ' | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |