public interface PHGDataWriter extends PHGData
| Modifier and Type | Method and Description |
|---|---|
int |
createRefRangeGroup(String method)
Creates an entry in the ref_range_groups table using method_id associated
with the name indicated via the method parameter.
|
boolean |
putAllAnchors(List<AnchorDataPHG> anchorData,
String refGroupMethod)
Stores chrom, start pos, end pos to referenece_ranges table
isFocus identifies focus intervals from the user's bed file
|
boolean |
putAssemblyInterAnchorSequences(String line_name,
int hapNumber,
String method,
com.google.common.collect.Multimap<Integer,AnchorDataPHG> anchorSequences)
Adds inter-anchor sequences for the specified assembly to the anchor_sequences
and anchor_haplotypes table.
|
void |
putConsensusSequences(com.google.common.collect.Multimap<net.maizegenetics.dna.map.Position,net.maizegenetics.util.Tuple<AnchorDataPHG,List<String>>> consensusMap,
int methodId)
This method takes a map of consensus data, finds the anchorIds based on Position,
finds the hapids of the taxa whose sequences at the specified anchorID map
to the consensus.
|
boolean |
putGameteGroupAndHaplotypes(List<String> gametes)
Takes a list of gametes and stores to the gamete_groups and gamete_haplotypes table
Skips if this grouping already exists
|
boolean |
putGenoAndHaploTypeData(GenoHaploData ghData)
Stores required data to the genotypes and haplotypes tables
for each entry on the list.
|
void |
putHaplotypeCountsData(String method,
String methodDetails,
String taxonName,
String fastqFile,
byte[] counts)
This method adds data to the haplotype_counts table.
|
void |
putHaplotypesForGamete(int gamete_grp_id,
String method,
Map<Integer,AnchorDataPHG> anchorSequences)
Stores gamete sequence data to the haplotypes table
This method associates all entries with the single gamete_grp_id which is passed.
|
void |
putHaplotypesForMultipleGroups(com.google.common.collect.Multimap<net.maizegenetics.dna.map.Position,net.maizegenetics.util.Tuple<AnchorDataPHG,String>> mapWithGroupHash,
int method_id)
Add data to the haplotypes table.
|
int |
putMethod(String name,
DBLoadingUtils.MethodType type,
String description)
Adds a method, its type and its description to the anchor_methods table
These are used to identify how sequences were created,how the were combined into consensus
sequences, how haplotype counts were scores, how paths through the graph were create
or how an edge was created.
|
void |
putPathsData(String method,
String methodDetails,
com.google.common.collect.Multimap<Integer,HaplotypeNode> paths)
This method stores paths data to the paths table.
|
boolean |
putRefAnchorData(String line_name,
int hapnumber,
List<AnchorDataPHG> adata,
String hapMethod,
String refGroupMethod,
String gvcf,
String variant_list)
Fills in the haplotypes table
for the reference ranges.
|
void |
putRefRangeRefRangeGroups(int group_method_id,
List<Integer> refRangeList)
Takes a method id and a list of reference ranges.
|
getChromNamesForHaplotype, getGameteGroupIDFromTaxaList, getGenoidFromLine, getHapCountsIDAndDataForVersionMethod, getHapCountsIDAndPathsForMethod, getHapidForGenoidHapNumber, getHapidHapNumberLineNamesForLines, getHapidMapFromLinenameHapNumber, getHapidsForGenoid, getHaplotypeIDFromFastaIDLine, getIntervalRangesWithIDForChrom, getLineNameHapNumberFromHapid, getMethodIdFromName, getRefRangeIDFromStringboolean putAllAnchors(List<AnchorDataPHG> anchorData, String refGroupMethod)
anchorData - refGroupMethod - name of method used for creating this ref_range_groupboolean putGenoAndHaploTypeData(GenoHaploData ghData)
ghData - anchor_verion - Distinguishes pre-anchor cooridinates from trimmed anchor coordinatesboolean putRefAnchorData(String line_name, int hapnumber, List<AnchorDataPHG> adata, String hapMethod, String refGroupMethod, String gvcf, String variant_list)
line_name - hapnumber - hapMethod - Name of method used to create anchors. Maps to method table for id.adata - Anchor data, including chrom, start/end positionsrefGroupMethod - Name of method used to create the ref_range_groupgvcf - String - name of gvcf filevariant_list - String - name of file containing list of variantsint putMethod(String name, DBLoadingUtils.MethodType type, String description)
name - type - description - boolean putAssemblyInterAnchorSequences(String line_name, int hapNumber, String method, com.google.common.collect.Multimap<Integer,AnchorDataPHG> anchorSequences)
line_name - hapNumber - method - anchorSequences - void putConsensusSequences(com.google.common.collect.Multimap<net.maizegenetics.dna.map.Position,net.maizegenetics.util.Tuple<AnchorDataPHG,List<String>>> consensusMap, int methodId)
consensusMap - MultimapmethodId - method used for collapsing anchorsboolean putGameteGroupAndHaplotypes(List<String> gametes)
gametes - list consisting of taxa/gamete number in the form taxaName_gameteNumbervoid putHaplotypesForGamete(int gamete_grp_id,
String method,
Map<Integer,AnchorDataPHG> anchorSequences)
gamete_grp_id - method - gvcf - variant_list - anchorSequences - void putHaplotypesForMultipleGroups(com.google.common.collect.Multimap<net.maizegenetics.dna.map.Position,net.maizegenetics.util.Tuple<AnchorDataPHG,String>> mapWithGroupHash, int method_id)
mapWithGroupHash - method_id - Id in the methods table for this group of sequencesvoid putHaplotypeCountsData(String method, String methodDetails, String taxonName, String fastqFile, byte[] counts)
method - methodDetails - taxonName - fastqFile - counts - void putPathsData(String method, String methodDetails, com.google.common.collect.Multimap<Integer,HaplotypeNode> paths)
method - - Method Name for Path detemination processmethodDetails - Details of how these paths were createdpaths - Compressed byte array of HaplotypeNode idsint createRefRangeGroup(String method)
method - Copyright © 2018. All rights reserved.