public class GTBExporter extends GTBEditor
限定符和类型 | 方法和说明 |
---|---|
GTBExporter |
addField(java.util.Map<java.lang.String,edu.sysu.pmglab.ccf.FieldType> fields)
添加字段或更改字段值类型
|
GTBExporter |
addField(java.lang.String fieldName)
添加筛选字段
|
GTBExporter |
addField(java.lang.String fieldName,
edu.sysu.pmglab.ccf.FieldType fieldType)
添加字段或更改字段值类型
|
GTBExporter |
addFields(java.lang.Iterable<java.lang.String> fieldNames)
添加筛选字段
|
GTBExporter |
addFields(java.lang.String... fieldNames)
添加筛选字段
|
GTBExporter |
addValueConverter(java.util.function.Consumer<Variant> valueConverter)
添加值转换器
|
GTBIndexer |
getIndexer()
获取索引器
|
GTBExporter |
liftOver(LiftOver liftOver)
位点版本转换
|
GTBExporter |
liftOver(RefGenomeVersion fromGenomeVersion,
RefGenomeVersion toGenomeVersion)
位点版本转换
|
GTBExporter |
normalize(boolean normalize)
将位点转为二等位基因位点
|
static GTBExporter |
of(java.lang.Object managerObject)
构造器方法
|
static GTBExporter |
of(java.lang.Object managerObject,
java.io.File outputFile)
构造器方法
|
GTBExporter |
selectSubjects(int[] subjectIndexes)
筛选储存的子样本
|
GTBExporter |
selectSubjects(java.lang.Iterable<?> subjectIndexes)
筛选储存的子样本
|
GTBExporter |
selectSubjects(java.lang.String[] subjects)
筛选储存的子样本
|
GTBExporter |
sort(boolean sortVariants)
排序输出的文件
|
GTBExporter |
storeOriginCoordinate(java.lang.String prefix)
储存原始坐标
|
GTBExporter |
storeOriginCoordinate(java.lang.String chromosomeField,
java.lang.String positionField)
储存原始坐标
|
GTBExporter |
storeOriginPointer(java.lang.String fieldName)
储存原始指针字段
|
GTBManager |
submit()
提交计算任务, 需要子类进行实现
|
java.lang.String |
toString() |
addMeta, addMeta, addMeta, addVariantFilter, clearFields, clearMeta, dropDuplicationMeta, getManager, getOutputFile, loadGenotype, renameField, renameFields, renameSubject, renameSubjects, renameSubjects, setFormat, setOutputFile, setThreads
public static GTBExporter of(java.lang.Object managerObject) throws java.io.IOException
managerObject
- 管理器对象java.io.IOException
- IO 异常public static GTBExporter of(java.lang.Object managerObject, java.io.File outputFile) throws java.io.IOException
managerObject
- 管理器对象outputFile
- 输出文件对象java.io.IOException
- IO 异常public GTBIndexer getIndexer()
public GTBExporter selectSubjects(java.lang.String[] subjects)
subjects
- 子样本序列public GTBExporter selectSubjects(int[] subjectIndexes)
subjectIndexes
- 子样本序列public GTBExporter selectSubjects(java.lang.Iterable<?> subjectIndexes)
subjectIndexes
- 子样本序列public GTBExporter addField(java.lang.String fieldName, edu.sysu.pmglab.ccf.FieldType fieldType)
fieldName
- 字段名fieldType
- 字段类型public GTBExporter addField(java.util.Map<java.lang.String,edu.sysu.pmglab.ccf.FieldType> fields)
fields
- 字段名及其类型public GTBExporter addField(java.lang.String fieldName)
public GTBExporter addFields(java.lang.String... fieldNames)
public GTBExporter addFields(java.lang.Iterable<java.lang.String> fieldNames)
public GTBExporter addValueConverter(java.util.function.Consumer<Variant> valueConverter)
valueConverter
- 值转换器public GTBExporter liftOver(LiftOver liftOver)
liftOver
- 版本转换工具链信息区间树
public GTBExporter liftOver(RefGenomeVersion fromGenomeVersion, RefGenomeVersion toGenomeVersion) throws java.io.IOException
fromGenomeVersion
- 输入文件参考基因组版本toGenomeVersion
- 输出文件参考基因组版本java.io.IOException
- IO 异常链信息区间树
public GTBExporter normalize(boolean normalize)
normalize
- 位点转为二等位基因位点public GTBExporter sort(boolean sortVariants)
sortVariants
- 排序位点public GTBExporter storeOriginCoordinate(java.lang.String chromosomeField, java.lang.String positionField)
chromosomeField
- 染色体字段positionField
- 坐标字段public GTBExporter storeOriginCoordinate(java.lang.String prefix)
prefix
- 原始坐标前缀, 例如 hg19, 将会储存 hg19_CHROM, hg19_POSpublic GTBExporter storeOriginPointer(java.lang.String fieldName)
fieldName
- 字段名 (例如为 POINTER, 它用于建立输入与输出之间的关联)public GTBManager submit() throws java.io.IOException
GTBEditor
public java.lang.String toString()
toString
在类中 java.lang.Object