public class VcfUtils extends Object
| Constructor and Description |
|---|
VcfUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkPreviouslyAnnotatedAndAddMetadata(File inputVcfFile,
PrintWriter outputVCFWriter,
List<AttributeMetaData> infoFields,
String checkAnnotatedBeforeValue)
Checks for previous annotations
|
static String |
convertToVCF(Entity vcfEntity)
Convert an vcfEntity to a VCF line
|
static HashMap<String,Trio> |
getPedigree(File inputVcfFile)
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}));
|
public static final String TAB
public static String convertToVCF(Entity vcfEntity) throws MolgenisDataException
vcfEntity - ExceptionMolgenisDataExceptionpublic static boolean checkPreviouslyAnnotatedAndAddMetadata(File inputVcfFile, PrintWriter outputVCFWriter, List<AttributeMetaData> infoFields, String checkAnnotatedBeforeValue) throws MolgenisInvalidFormatException, FileNotFoundException
inputVcfFile - outputVCFWriter - infoFields - checkAnnotatedBeforeValue - ExceptionMolgenisInvalidFormatExceptionFileNotFoundExceptionpublic static HashMap<String,Trio> getPedigree(File inputVcfFile) throws FileNotFoundException
inputVcfFile - FileNotFoundExceptionCopyright © 2015. All Rights Reserved.