module HTS::LibHTS2

Extended Modules

Defined in:

hts/libhts.cr
hts/libhts2/bgzf.cr
hts/libhts2/hfile.cr
hts/libhts2/sam.cr
hts/libhts2/vcf.cr

Constant Summary

BAM_CBACK = 9
BAM_CDEL = 2
BAM_CDIFF = 8
BAM_CEQUAL = 7
BAM_CHARD_CLIP = 5
BAM_CIGAR_MASK = 15
BAM_CIGAR_SHIFT = 4
BAM_CIGAR_STR = "MIDNSHP=XB"
BAM_CIGAR_TYPE = 246183
BAM_CINS = 1
BAM_CMATCH = 0

constants

BAM_CPAD = 6
BAM_CREF_SKIP = 3
BAM_CSOFT_CLIP = 4
BAM_FDUP = 1024
BAM_FMREVERSE = 32
BAM_FMUNMAP = 8
BAM_FPAIRED = 1
BAM_FPROPER_PAIR = 2
BAM_FQCFAIL = 512
BAM_FREAD1 = 64
BAM_FREAD2 = 128
BAM_FREVERSE = 16
BAM_FSECONDARY = 256
BAM_FSUPPLEMENTARY = 2048
BAM_FUNMAP = 4
BCF1_DIRTY_ALS = 2
BCF1_DIRTY_FLT = 4
BCF1_DIRTY_ID = 1
BCF1_DIRTY_INF = 8
BCF_BT_CHAR = 7
BCF_BT_FLOAT = 5
BCF_BT_INT16 = 2
BCF_BT_INT32 = 3
BCF_BT_INT64 = 4
BCF_BT_INT8 = 1
BCF_BT_NULL = 0
BCF_DT_CTG = 1
BCF_DT_ID = 0
BCF_DT_SAMPLE = 2
BCF_ERR_CHAR = 16
BCF_ERR_CTG_INVALID = 32
BCF_ERR_CTG_UNDEF = 1
BCF_ERR_LIMITS = 8
BCF_ERR_NCOLS = 4
BCF_ERR_TAG_INVALID = 64
BCF_ERR_TAG_UNDEF = 2
BCF_HL_CTG = 3
BCF_HL_FLT = 0

constants

BCF_HL_FMT = 2
BCF_HL_GEN = 5
BCF_HL_INFO = 1
BCF_HL_STR = 4
BCF_HT_FLAG = 0
BCF_HT_INT = 1
BCF_HT_LONG = (BCF_HT_INT | 256)
BCF_HT_REAL = 2
BCF_HT_STR = 3
BCF_UN_ALL = (BCF_UN_SHR | BCF_UN_FMT)
BCF_UN_FLT = 2
BCF_UN_FMT = 8
BCF_UN_IND = BCF_UN_FMT
BCF_UN_INFO = 4
BCF_UN_SHR = ((BCF_UN_STR | BCF_UN_FLT) | BCF_UN_INFO)
BCF_UN_STR = 1
BCF_VL_A = 2
BCF_VL_FIXED = 0
BCF_VL_G = 3
BCF_VL_R = 4
BCF_VL_VAR = 1
VCF_BND = 16
VCF_INDEL = 4
VCF_MNP = 2
VCF_OTHER = 8
VCF_OVERLAP = 32
VCF_REF = 0
VCF_SNP = 1

Macro Summary

Instance Method Summary

Macro Detail

macro alias_method(new_name, old_name) #

[View source]

Instance Method Detail

def bam_cigar_gen(l, o) #

[View source]
def bam_cigar_op(c) #

macros


[View source]
def bam_cigar_opchr(c) #

[View source]
def bam_cigar_oplen(c) #

[View source]
def bam_cigar_type(o) #

[View source]
def bam_get_aux(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_get_cigar(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_get_l_aux(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_get_qname(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_get_qual(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_get_seq(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_is_mrev(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_is_rev(b : Pointer(HTS::LibHTS::Bam1T)) #

[View source]
def bam_seqi(s, i) #

[View source]
def bcf_alleles2gt(a, b) #

[View source]
def bcf_clear1(*args) #

[View source]
def bcf_close(*args) #

alias_method bcf_flush hts_flush


[View source]
def bcf_destroy1(*args) #

[View source]
def bcf_empty1(*args) #

[View source]
def bcf_get_format_char(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_format_float(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_format_int32(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_genotypes(hdr, line, dst, ndst) #

[View source]
def bcf_get_info_flag(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_info_float(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_info_int32(hdr, line, tag, dst, ndst) #

[View source]
def bcf_get_info_string(hdr, line, tag, dst, ndst) #

[View source]
def bcf_gt_allele(val) #

[View source]
def bcf_gt_is_missing(val) #

[View source]
def bcf_gt_is_phased(idx) #

[View source]
def bcf_gt_missing #

[View source]
def bcf_gt_phased(idx) #

[View source]
def bcf_gt_unphased(idx) #

[View source]
def bcf_hdr_id2name(hdr, rid) #

[View source]
def bcf_hdr_int2id(hdr, type, int_id) #

[View source]
def bcf_hdr_name2id(hdr, id) #

[View source]
def bcf_hdr_nsamples(hdr : Pointer(HTS::LibHTS::BcfHdrT)) #

[View source]
def bcf_init1(*args) #

[View source]
def bcf_open(*args) #

[View source]
def bcf_read1(*args) #

[View source]
def bcf_update_format_char(hdr, line, key, values, n) #

[View source]
def bcf_update_format_float(hdr, line, key, values, n) #

[View source]
def bcf_update_format_int32(hdr, line, key, values, n) #

[View source]
def bcf_update_genotypes(hdr, line, gts, n) #

[View source]
def bcf_update_info_flag(hdr, line, key, string, n) #

[View source]
def bcf_update_info_float(hdr, line, key, values, n) #

[View source]
def bcf_update_info_int32(hdr, line, key, values, n) #

[View source]
def bcf_update_info_string(hdr, line, key, string) #

[View source]
def bcf_write1(*args) #

[View source]
def bgzf_tell(fp) #

[View source]
def htell(fp) #

[View source]
def sam_itr_next(htsfp, itr, r) #

[View source]
def vcf_close(*args) #

[View source]
def vcf_format1(*args) #

[View source]
def vcf_open(*args) #

[View source]
def vcf_parse1(*args) #

[View source]
def vcf_read1(*args) #

[View source]
def vcf_write1(*args) #

[View source]