|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectblrevcomp.BioSeq
public class BioSeq
Biological sequence
| Nested Class Summary | |
|---|---|
class |
BioSeq.Nuchar
Nuchar.INuc.get() returns the character to be written if the sequence is being printed from the input strand. Nuchar.CNuc.get() returns the character to be written if the sequence is being printed from the complementary strand. The case of nucleotides in the input sequence is preserved in the output sequence. |
| Field Summary | |
|---|---|
int |
LEN
Length of sequence |
int |
MAXSEQ
Maximum number of sequence elements |
java.lang.String |
Name
Sequence name |
char[] |
seq
Sequence |
char |
SFlag
Flag character that indicates beginning of a sequence |
| Constructor Summary | |
|---|---|
BioSeq()
|
|
| Method Summary | |
|---|---|
boolean |
readFasta(BufferedTextInputFile In)
Read a sequence in Pearson format: |
void |
writeFasta(BufferedTextOutputFile Out,
java.lang.String SUFFIX,
char STRAND,
int SENSE,
int WIDTH)
Write sequence in Pearson/FASTA format |
void |
writeRAW(BufferedTextOutputFile Out,
char STRAND,
int SENSE,
java.util.HashMap N,
int WIDTH)
Write sequence in raw format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int MAXSEQ
public java.lang.String Name
public char SFlag
public char[] seq
public int LEN
| Constructor Detail |
|---|
public BioSeq()
| Method Detail |
|---|
public boolean readFasta(BufferedTextInputFile In)
>name
sequence
sequence
...
In - Input file
public void writeRAW(BufferedTextOutputFile Out,
char STRAND,
int SENSE,
java.util.HashMap N,
int WIDTH)
Out - BufferedTextOutputFileSTRAND - 'i': input strand 'c': complimentary strandSENSE - 1 : original direction, -1 : reverse directionN - - Nuchar.INuc for input strand; Nuchar.CNuc for complimentary strandWIDTH - number of characters in output line
public void writeFasta(BufferedTextOutputFile Out,
java.lang.String SUFFIX,
char STRAND,
int SENSE,
int WIDTH)
Out - - Output fieSUFFIX - - Add SUFFIX to name of sequence:
STRAND - - 'i' - input; 'c' - complementSENSE - 1 - forward direction; -1 reverse directionWIDTH - - number of nucleotides to print per line
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||