BCF2: third checkpoint
* writer mostly implemented * walkers to convert BCF2 <-> VCF * almost working for sites-only files; genotypes still need work * initial performance tests this afternoon will be on sites-only files
This commit is contained in:
parent
fa84d50a2b
commit
6b769e91d8
|
|
@ -24,7 +24,7 @@ public class VCFFilterHeaderLine extends VCFSimpleHeaderLine {
|
|||
* @param line the header line
|
||||
* @param version the vcf header version
|
||||
*/
|
||||
protected VCFFilterHeaderLine(String line, VCFHeaderVersion version) {
|
||||
public VCFFilterHeaderLine(String line, VCFHeaderVersion version) {
|
||||
super(line, version, "FILTER", Arrays.asList("ID", "Description"));
|
||||
}
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ public class VCFFormatHeaderLine extends VCFCompoundHeaderLine {
|
|||
super(name, count, type, description, SupportedHeaderLineType.FORMAT);
|
||||
}
|
||||
|
||||
protected VCFFormatHeaderLine(String line, VCFHeaderVersion version) {
|
||||
public VCFFormatHeaderLine(String line, VCFHeaderVersion version) {
|
||||
super(line, version, SupportedHeaderLineType.FORMAT);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ public class VCFHeader {
|
|||
* @param genotypeSampleNamesInAppearenceOrder genotype sample names
|
||||
*/
|
||||
|
||||
protected void buildVCFReaderMaps(List<String> genotypeSampleNamesInAppearenceOrder) {
|
||||
public void buildVCFReaderMaps(List<String> genotypeSampleNamesInAppearenceOrder) {
|
||||
sampleNamesInOrder = new ArrayList<String>(genotypeSampleNamesInAppearenceOrder.size());
|
||||
sampleNameToOffset = new HashMap<String, Integer>(genotypeSampleNamesInAppearenceOrder.size());
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public class VCFInfoHeaderLine extends VCFCompoundHeaderLine {
|
|||
super(name, count, type, description, SupportedHeaderLineType.INFO);
|
||||
}
|
||||
|
||||
protected VCFInfoHeaderLine(String line, VCFHeaderVersion version) {
|
||||
public VCFInfoHeaderLine(String line, VCFHeaderVersion version) {
|
||||
super(line, version, SupportedHeaderLineType.INFO);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class VCFSimpleHeaderLine extends VCFHeaderLine implements VCFIDHeaderLin
|
|||
* @param key the key for this header line
|
||||
* @param expectedTagOrdering the tag ordering expected for this header line
|
||||
*/
|
||||
protected VCFSimpleHeaderLine(String line, VCFHeaderVersion version, String key, List<String> expectedTagOrdering) {
|
||||
public VCFSimpleHeaderLine(String line, VCFHeaderVersion version, String key, List<String> expectedTagOrdering) {
|
||||
super(key, "");
|
||||
Map<String, String> mapping = VCFHeaderLineTranslator.parseLine(version, line, expectedTagOrdering);
|
||||
name = mapping.get("ID");
|
||||
|
|
|
|||
Loading…
Reference in New Issue