public class HapCallingUtils extends Object
| Constructor and Description |
|---|
HapCallingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
callSNPsFromHaplotypeNodes(List<HaplotypeNode> listOfNodes,
HashMap<Integer,String> hapIdToFileNameMapping,
String vcfFileDir,
String exportVCFFileName,
String referenceFileName,
String taxonName) |
static void |
callSNPsFromHaplotypePath(HaplotypeGraph graph,
HaplotypePath bestPath,
String vcfFileDir,
String exportVCFFileName,
String referenceFileName,
String taxonName) |
static void |
callSNPsFromSomeVCFs(String inputVCFFileDir,
String exportVCFFileName,
String referenceFileName,
String taxonName) |
static HashMap<Integer,String> |
createHapIdToFileNameMapping(HaplotypeGraph graph,
String pangenomeDir) |
static List<htsjdk.variant.variantcontext.VariantContext> |
getVariantContextFromHaplotypeNodeList(List<HaplotypeNode> nodeList)
Method to extract the VCF VariantContexts from a List of HaplotypeNodes
|
static List<htsjdk.variant.variantcontext.VariantContext> |
getVariantContextFromHaplotypePath(HaplotypePath bestPath)
Method to extract the VCF VariantContexts from the HaplotypePath.
|
static void |
writeVariantContextsToVCF(List<htsjdk.variant.variantcontext.VariantContext> variantContextList,
String exportVCFFileName,
String referenceFileName,
List<String> taxa) |
static void |
writeVariantContextsToVCF(List<htsjdk.variant.variantcontext.VariantContext> variantContextList,
String exportVCFFileName,
String referenceFileName,
String taxonName)
Method to write the list of VariantContexts out to a vcf file.
|
public static List<htsjdk.variant.variantcontext.VariantContext> getVariantContextFromHaplotypePath(HaplotypePath bestPath)
bestPath - HaplotypePath containing one single path through the PHG.public static List<htsjdk.variant.variantcontext.VariantContext> getVariantContextFromHaplotypeNodeList(List<HaplotypeNode> nodeList)
nodeList - List of HaplotypeNodes which we want the variantContexts frompublic static void writeVariantContextsToVCF(List<htsjdk.variant.variantcontext.VariantContext> variantContextList, String exportVCFFileName, String referenceFileName, List<String> taxa)
public static void writeVariantContextsToVCF(List<htsjdk.variant.variantcontext.VariantContext> variantContextList, String exportVCFFileName, String referenceFileName, String taxonName)
variantContextList - list of VariantContext objects that need to be written to the vcf fileexportVCFFileName - String file name of the exported VCF filereferenceFileName - String name of the reference fasta file name. If null, will not index the vcf. Otherwise you need a fasta index as well to make it worktaxonName - Taxon namepublic static void callSNPsFromHaplotypePath(HaplotypeGraph graph, HaplotypePath bestPath, String vcfFileDir, String exportVCFFileName, String referenceFileName, String taxonName)
public static void callSNPsFromSomeVCFs(String inputVCFFileDir, String exportVCFFileName, String referenceFileName, String taxonName)
public static void callSNPsFromHaplotypeNodes(List<HaplotypeNode> listOfNodes, HashMap<Integer,String> hapIdToFileNameMapping, String vcfFileDir, String exportVCFFileName, String referenceFileName, String taxonName)
public static HashMap<Integer,String> createHapIdToFileNameMapping(HaplotypeGraph graph, String pangenomeDir)
Copyright © 2018. All rights reserved.