Class BundleResourceType

java.lang.Object
htsjdk.beta.io.bundle.BundleResourceType

public class BundleResourceType extends Object
Constants for specifying standard content types and formats for resources contained in a Bundle. Bundles generally contain one primary resource, plus one or more secondary resources such as an index or md5 file. Each resource has an associated content type, and optionally a format. The bundle itself has a primary content type, which is the content type of the primary resource (and the bundle must always contain a resource with the content type that corresponds to the primary content type of the bundle). Although any string can be used as a primary content type in a bundle, the standard primary content types generally correspond to one of the enum values in HtsContentType, since each of these has a corresponding HtsCodec that handles that type of resource, such as reads or variants. Secondary resource content types can also be any string, but the standard secondary content types are defined here, i.e., for primary content type "READS", a secondary content type might be "READS_INDEX". Finally, each resource in a bundle can have an optional format, which is a string that corresponds to the format for that resource. For example, a primary content type of "READS" might have a format of "BAM".