public class GenBank<T extends BioSequence> extends ReadableSeqFormatBase<T> implements WritableSeqFormat<T>
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT_ATTR |
static String |
CONTIG_ATTR |
static String |
NCBI_GI_ATTR |
Constructor and Description |
---|
GenBank(BioSequenceFactory<T> inSeqFactory) |
Modifier and Type | Method and Description |
---|---|
static Logger |
getLogger() |
boolean |
hasJanusDelimiter()
A format has a Janus delimiter if the line that indicates that the previous record is over is also part of the
next record.
|
boolean |
isEndOfRecord(String inLine) |
protected List<String> |
parsePatentApplicants(String inApplicantString) |
T |
readRecord(BufferedReader inReader) |
GenBank<T> |
setMaxExceptionsPerRecord(int inValue)
Specify the maximum number of Exceptions to tolerate per record.
|
String |
write(Collection<T> inSeqs) |
String |
write(T inSeq) |
void |
write(T inSeq,
OutputStream inStream) |
void |
write(T inSeq,
Writer inWriter) |
getBioSequenceFactory, read, read, readRecord
public static final String COMMENT_ATTR
public static final String NCBI_GI_ATTR
public static final String CONTIG_ATTR
public GenBank(BioSequenceFactory<T> inSeqFactory)
public boolean isEndOfRecord(String inLine)
isEndOfRecord
in interface ReadableSeqFormat<T extends BioSequence>
public boolean hasJanusDelimiter()
ReadableSeqFormat
hasJanusDelimiter
in interface ReadableSeqFormat<T extends BioSequence>
public GenBank<T> setMaxExceptionsPerRecord(int inValue)
inValue
- the maximum number of Exceptions to tolerate per recordpublic T readRecord(BufferedReader inReader) throws SeqIOException
readRecord
in interface ReadableSeqFormat<T extends BioSequence>
SeqIOException
public String write(Collection<T> inSeqs) throws SeqIOException
SeqIOException
public String write(T inSeq) throws SeqIOException
write
in interface WritableSeqFormat<T extends BioSequence>
SeqIOException
public void write(T inSeq, OutputStream inStream) throws SeqIOException
SeqIOException
public void write(T inSeq, Writer inWriter) throws SeqIOException
write
in interface WritableSeqFormat<T extends BioSequence>
SeqIOException
protected List<String> parsePatentApplicants(String inApplicantString)
jataylor@hairyfatguy.com