MCPcopy Create free account

hub / github.com/brentp/vcfgo / functions

Functions146 in github.com/brentp/vcfgo

↓ 39 callersMethodRead
Read returns a pointer to a Variant. Upon reading the caller is assumed to check Reader.Err()
reader.go:178
↓ 33 callersFunctionNewReader
NewReader returns a Reader. If lazySamples is true, then the user will have to call Reader.ParseSamples() in order to access simple info.
reader.go:63
↓ 28 callersMethodSGet
(key string)
info.go:206
↓ 21 callersMethodSet
(key string, value interface{})
info.go:360
↓ 17 callersMethodAlt
()
variant.go:44
↓ 16 callersMethodGet
Get a value from the bytes typed according to the header.
info.go:223
↓ 16 callersMethodString
()
info.go:329
↓ 15 callersMethodAdd
Add adds an error and the line number within the vcf where the error took place.
vcf.go:38
↓ 15 callersMethodEnd
End returns the 0-based start + the length of the reference allele.
variant.go:120
↓ 11 callersMethodError
Error() aggregates the multiple errors that can occur into a single object.
reader.go:281
↓ 10 callersMethodContains
(key string)
info.go:101
↓ 10 callersMethodDelete
(key string)
info.go:121
↓ 9 callersMethodInfo
()
variant.go:32
↓ 9 callersMethodRef
()
variant.go:40
↓ 8 callersFunctionNewInfoByte
(info []byte, h *Header)
info.go:16
↓ 8 callersMethodStart
Start returns the 0-based start
variant.go:54
↓ 8 callersMethodString
String returns a string representation.
header.go:54
↓ 6 callersMethodGetGenotypeField
GetGenotypeField uses the information from the header to parse the correct time from a genotype field. It returns an interface that can be asserted to
variant.go:313
↓ 6 callersFunctionparseOne
(key, val, itype string)
header.go:285
↓ 5 callersMethodClear
Clear empties the cache of errors.
reader.go:289
↓ 5 callersFunctionNewWriter
NewWriter returns a writer after writing the header.
writer.go:17
↓ 5 callersFunctionsplitA
when we split on alt, it returns a single int since we are decomposing.
splitalts.go:113
↓ 5 callersFunctionsplitR
(m interface{}, i int, nAlts int)
splitalts.go:98
↓ 4 callersMethodAltDepths
AltDepths returns the depths of the alternates for this sample
variant.go:245
↓ 4 callersMethodError
Error returns a string with all errors delimited by newlines.
vcf.go:18
↓ 4 callersMethodId
()
variant.go:36
↓ 4 callersFunctionNewSampleGenotype
NewSampleGenotype allocates the internals and returns a *SampleGenotype
variant.go:280
↓ 4 callersFunctionfmtFloat32
(v float32)
variant.go:187
↓ 4 callersFunctionfmtFloat64
(v float64)
variant.go:201
↓ 4 callersFunctiongetpositions
* func bytesToString(b []byte) string { bh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) sh := reflect.StringHeader{bh.Data, bh.Len} return *(*stri
info.go:33
↓ 4 callersFunctionsplitG
(m interface{}, i int, nAlts int)
splitalts.go:70
↓ 3 callersFunctionItoS
(k string, v interface{})
info.go:147
↓ 3 callersFunctionNewHeader
NewHeader returns a Header with the requisite allocations.
header.go:182
↓ 3 callersFunctionparseHeaderFileVersion
(format string)
header.go:265
↓ 2 callersMethodCIEnd
CIEnd reports the Left and Right end of an SV using the CIEND tag. It is in bed format so the end is +1'ed. E.g. If there is no CIEND, the return valu
variant.go:92
↓ 2 callersMethodCIPos
CIPos reports the Left and Right end of an SV using the CIPOS tag. It is in bed format so the end is +1'ed. E.g. If there is not CIPOS, the return val
variant.go:61
↓ 2 callersMethodChrom
Chrom returns the chromosome name.
variant.go:49
↓ 2 callersMethodKeys
()
info.go:110
↓ 2 callersFunctionNewVCFError
NewVCFError allocates the needed ingredients.
vcf.go:32
↓ 2 callersMethodParse
(fields [][]byte)
reader.go:201
↓ 2 callersMethodParseSamples
Force parsing of the sample fields.
reader.go:241
↓ 2 callersMethodRefDepth
RefDepth returns the depths of the alternates for this sample
variant.go:233
↓ 2 callersFunctionbenchmarkReader
(lazy bool, b *testing.B)
bench_test.go:8
↓ 2 callersFunctionhandleNumberType
(number string, value string, nAlts int, nGTs int, isInt bool, mv interface{})
variant.go:354
↓ 2 callersFunctionparseHeaderContig
(contig string)
header.go:208
↓ 2 callersFunctionparseHeaderExtraKV
(kv string)
header.go:223
↓ 2 callersFunctionparseHeaderFilter
(info string)
header.go:248
↓ 2 callersFunctionparseHeaderFormat
(info string)
header.go:235
↓ 2 callersFunctionparseHeaderInfo
(info string)
header.go:195
↓ 2 callersFunctionparseSampleLine
(line string)
header.go:274
↓ 2 callersMethodsetSampleGL
(geno *SampleGenotype, value string, isPL bool)
header.go:133
↓ 2 callersFunctionsplitGT
(m interface{}, i int)
splitalts.go:80
↓ 2 callersFunctionunsafeString
(b []byte)
reader.go:197
↓ 1 callersMethodClose
()
reader.go:293
↓ 1 callersMethodIsEmpty
IsEmpty returns true if there no errors stored.
vcf.go:57
↓ 1 callersMethodToString
ToString returns the string representation of the sample field.
variant.go:267
↓ 1 callersMethodWriteVariant
WriteVariant writes a single variant
writer.go:91
↓ 1 callersFunctionleftalign
(pos int, ref []byte, alt []byte, seq []byte)
normalize.go:3
↓ 1 callersFunctionlefttrim
(pos int, ref []byte, alt []byte)
normalize.go:34
↓ 1 callersFunctionmakeFields
(line []byte)
reader.go:152
↓ 1 callersFunctionparseHeaderSample
return just the sample id.
header.go:257
↓ 1 callersMethodparseSample
* func (h *Header) Validate(verr *VCFError) []error { var errs []error return errs }*/
header.go:69
↓ 1 callersMethodsetSampleDP
(geno *SampleGenotype, value string)
header.go:105
↓ 1 callersMethodsetSampleGQ
(geno *SampleGenotype, value string, Type string)
header.go:114
↓ 1 callersMethodsetSampleGT
(geno *SampleGenotype, value string)
header.go:153
↓ 1 callersFunctionsplit
(v *Variant, i int, nAlts int)
splitalts.go:21
MethodAdd
(key string, value interface{})
info.go:400
MethodAddFormatToHeader
AddFormatToHeader adds a FORMAT field to the header.
reader.go:268
MethodAddInfoToHeader
AddInfoToHeader adds a INFO field to the header.
reader.go:262
FunctionBenchmarkEager
(b *testing.B)
bench_test.go:32
FunctionBenchmarkLazy
(b *testing.B)
bench_test.go:31
MethodBytes
()
info.go:336
MethodClear
Clear empties the Messages
vcf.go:62
FunctionExample
()
doc_test.go:10
MethodGetHeaderType
(field string)
reader.go:273
FunctionNewWithHeader
(r io.Reader, h *Header, lazySamples bool)
reader.go:54
MethodSetUpTest
(c *C)
regression_test.go:41
MethodSetUpTest
(c *C)
header_test.go:75
MethodSetUpTest
(c *C)
header_test.go:79
MethodSetUpTest
(c *C)
variant_test.go:19
MethodSetUpTest
(c *C)
reader_test.go:19
MethodSetUpTest
(c *C)
splitalts_test.go:10
MethodSetUpTest
(c *C)
sample_test.go:30
MethodSetUpTest
(c *C)
sv_test.go:61
MethodSetUpTest
(c *C)
sv_test.go:141
FunctionSplitAlts
(v *Variant)
splitalts.go:8
MethodString
String returns a string representation.
header.go:59
MethodString
String returns the string representation of the sample field.
variant.go:228
MethodString
String gives a string representation of a variant
variant.go:289
FunctionTest
(t *testing.T)
vcf_test.go:15
FunctionTest
(t *testing.T)
sv_test.go:13
MethodTestDupIns
(c *C)
sv_test.go:65
MethodTestEmptyInfo
(c *C)
info_test.go:35
MethodTestFloatFmt
(c *C)
internal_test.go:10
MethodTestHeaderBadVersionParse
(c *C)
vcf_test.go:105
MethodTestHeaderContigParse
(c *C)
vcf_test.go:110
MethodTestHeaderExtra
(c *C)
vcf_test.go:116
MethodTestHeaderFilterParse
(c *C)
vcf_test.go:90
MethodTestHeaderFormatParse
(c *C)
vcf_test.go:80
MethodTestHeaderInfoParse
(c *C)
vcf_test.go:71
next →1–100 of 146, ranked by callers