|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.msu.cme.rdp.classifier.readseqwrapper.ParsedSequence
public class ParsedSequence
A Sequence containing the sequence information.
Field Summary | |
---|---|
private static int[] |
charIntegerLookup
|
private static char[] |
complementLookup
|
private java.lang.String |
docText
|
private java.lang.Integer |
goodWordCount
|
private static int[] |
intComplementLookup
|
private static int |
MAX_ASCII
|
private java.lang.String |
name
|
private boolean |
reverse
|
private java.lang.String |
seqString
|
private java.lang.String |
title
|
Fields inherited from interface edu.msu.cme.rdp.classifier.readseqwrapper.Sequence |
---|
MASK, RNA_BASES, WORDSIZE |
Constructor Summary | |
---|---|
ParsedSequence(java.lang.String name,
java.lang.String seq)
Creates new ParsedSequence. |
|
ParsedSequence(java.lang.String name,
java.lang.String title,
java.lang.String doc,
java.lang.String seq)
Creates new ParsedSequence. |
Method Summary | |
---|---|
int[] |
createWordIndexArr()
Fetches every overlapping word from the sequence string, changes each word to integer format and saves in an array. |
java.lang.String |
getDocumentText()
Returns the whole documentation in text. |
int |
getGoodWordCount()
Returns the number of words with valid bases. |
java.lang.String |
getName()
Returns the name of the sequence record. |
Sequence |
getReversedSeq()
Returns a Sequence object whose sequence string is the reverse complement of the current rRNA sequence string. |
static java.lang.String |
getReversedSeqString(java.lang.String seqString)
Returns the reverse complement string of the given rRNA sequence string . |
static int[] |
getReversedWord(int[] word)
Returns the reverse complement of the word in an integer array format. |
java.lang.String |
getSeqString()
Returns the sequence string. |
java.lang.String |
getTitle()
Returns the title of the documentation of the sequcence record. |
static int |
getWordIndex(int[] word)
Returns an integer representation of a single word. |
boolean |
isReverse()
Returns true if the sequence string is a minus strand. |
protected void |
setSeqString(java.lang.String s)
Sets the sequence string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String title
private java.lang.String seqString
private java.lang.String docText
private boolean reverse
private java.lang.Integer goodWordCount
private static final int MAX_ASCII
private static char[] complementLookup
private static int[] charIntegerLookup
private static int[] intComplementLookup
Constructor Detail |
---|
public ParsedSequence(java.lang.String name, java.lang.String seq)
public ParsedSequence(java.lang.String name, java.lang.String title, java.lang.String doc, java.lang.String seq)
Method Detail |
---|
protected void setSeqString(java.lang.String s)
public java.lang.String getName()
getName
in interface Sequence
public java.lang.String getSeqString()
getSeqString
in interface Sequence
public java.lang.String getTitle()
getTitle
in interface Sequence
public java.lang.String getDocumentText()
public boolean isReverse()
isReverse
in interface Sequence
public Sequence getReversedSeq()
getReversedSeq
in interface Sequence
public static java.lang.String getReversedSeqString(java.lang.String seqString)
public static int[] getReversedWord(int[] word)
public static int getWordIndex(int[] word)
public int[] createWordIndexArr()
createWordIndexArr
in interface Sequence
public int getGoodWordCount()
getGoodWordCount
in interface Sequence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |