
org.snpeff.vcf.VcfHeaderFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SnpEff Show documentation
Show all versions of SnpEff Show documentation
Variant annotation and effect prediction package.
The newest version!
package org.snpeff.vcf;
public class VcfHeaderFormat extends VcfHeaderInfo {
/**
* Constructor using a "##FORMAT" line from a VCF file
*/
public VcfHeaderFormat(String line) {
super(line);
}
public VcfHeaderFormat(String id, VcfInfoType vcfInfoType, String number, String description) {
super(id, vcfInfoType, number, description);
}
@Override
public boolean isFormat() {
return true;
}
@Override
public String toString() {
if (line != null) return line;
return VcfHeader.FORMAT_PREFIX //
+ "= 0 ? number : vcfInfoNumber) //
+ ",Type=" + vcfInfoType //
+ ",Description=\"" + description + "\"" //
+ ">" //
;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy