public class VcfUtils extends Object
| Constructor and Description |
|---|
VcfUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Entity> |
createEntityStructureForVcf(EntityMetaData entityMetaData,
String attributeName,
java.util.stream.Stream<Entity> inputStream) |
static List<Entity> |
createEntityStructureForVcf(EntityMetaData entityMetaData,
String attributeName,
java.util.stream.Stream<Entity> inputStream,
List<AttributeMetaData> annotatorAttributes) |
static String |
createId(Entity vcfEntity)
Creates a internal molgenis id from a vcf entity
|
static List<AttributeMetaData> |
getAtomicAttributesFromList(Iterable<AttributeMetaData> outputAttrs) |
static Map<String,AttributeMetaData> |
getAttributesMapFromList(Iterable<AttributeMetaData> outputAttrs) |
static String |
getIdFromInfoField(String line) |
static HashMap<String,Trio> |
getPedigree(Scanner inputVcfFileScanner)
Get pedigree data from VCF Now only support child, father, mother No fancy data structure either Output:
result.put(childID, Arrays.asList(new String[]{motherID, fatherID}));
|
static Iterator<Entity> |
reverseXrefMrefRelation(Iterator<Entity> annotatedRecords) |
static String |
toVcfDataType(MolgenisFieldTypes.FieldTypeEnum dataType) |
public static String createId(Entity vcfEntity)
vcfEntity - public static List<AttributeMetaData> getAtomicAttributesFromList(Iterable<AttributeMetaData> outputAttrs)
public static Map<String,AttributeMetaData> getAttributesMapFromList(Iterable<AttributeMetaData> outputAttrs)
public static String toVcfDataType(MolgenisFieldTypes.FieldTypeEnum dataType)
public static Iterator<Entity> reverseXrefMrefRelation(Iterator<Entity> annotatedRecords)
public static List<Entity> createEntityStructureForVcf(EntityMetaData entityMetaData, String attributeName, java.util.stream.Stream<Entity> inputStream)
public static List<Entity> createEntityStructureForVcf(EntityMetaData entityMetaData, String attributeName, java.util.stream.Stream<Entity> inputStream, List<AttributeMetaData> annotatorAttributes)
public static HashMap<String,Trio> getPedigree(Scanner inputVcfFileScanner) throws FileNotFoundException
inputVcfFileScanner - FileNotFoundExceptionCopyright © 2016. All Rights Reserved.