public class RegBase
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Closeable
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭数据库
|
static RegBase |
load(java.lang.Object fileObj)
获取 regBase 查询器
|
Variant |
query(Chromosome chromosome,
int position,
edu.sysu.pmglab.container.ByteCode refAllele,
edu.sysu.pmglab.container.ByteCode altAllele)
通过指定坐标查询数据库字段
|
boolean |
query(Variant variant)
通过指定坐标查询数据库字段
|
void |
reset()
重置数据库指针
|
public static RegBase load(java.lang.Object fileObj) throws java.io.IOException
fileObj
- 文件对象java.io.IOException
- IO 异常public Variant query(Chromosome chromosome, int position, edu.sysu.pmglab.container.ByteCode refAllele, edu.sysu.pmglab.container.ByteCode altAllele)
chromosome
- 染色体position
- 坐标值refAllele
- 参考等位基因altAllele
- 替代等位基因public boolean query(Variant variant)
variant
- 待注释的变异位点public void reset()
public void close() throws java.io.IOException
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
java.io.IOException
- IO 异常