
org.snpeff.vcf.VcfHeaderEntry 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;
/**
* Represents a info elements in a VCF file's header
*
* References:
* https://samtools.github.io/hts-specs/VCFv4.3.pdf
* http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41
*
* @author pablocingolani
*/
public class VcfHeaderEntry {
protected String line;
protected String id;
public static VcfHeaderEntry factory(String line) {
if (line.startsWith("##FORMAT=")) return new VcfHeaderFormat(line);
if (line.startsWith("##INFO=")) return new VcfHeaderInfo(line);
return new VcfHeaderEntry(line);
}
/**
* Constructor
*/
public VcfHeaderEntry(String line) {
this.line = line;
id = line;
}
public String getId() {
return id;
}
public boolean isFormat() {
return false;
}
public boolean isInfo() {
return false;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
return line;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy