Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brentp/vcfgo
/ functions
Functions
146 in github.com/brentp/vcfgo
⨍
Functions
146
◇
Types & classes
21
↓ 39 callers
Method
Read
Read returns a pointer to a Variant. Upon reading the caller is assumed to check Reader.Err()
reader.go:178
↓ 33 callers
Function
NewReader
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 callers
Method
SGet
(key string)
info.go:206
↓ 21 callers
Method
Set
(key string, value interface{})
info.go:360
↓ 17 callers
Method
Alt
()
variant.go:44
↓ 16 callers
Method
Get
Get a value from the bytes typed according to the header.
info.go:223
↓ 16 callers
Method
String
()
info.go:329
↓ 15 callers
Method
Add
Add adds an error and the line number within the vcf where the error took place.
vcf.go:38
↓ 15 callers
Method
End
End returns the 0-based start + the length of the reference allele.
variant.go:120
↓ 11 callers
Method
Error
Error() aggregates the multiple errors that can occur into a single object.
reader.go:281
↓ 10 callers
Method
Contains
(key string)
info.go:101
↓ 10 callers
Method
Delete
(key string)
info.go:121
↓ 9 callers
Method
Info
()
variant.go:32
↓ 9 callers
Method
Ref
()
variant.go:40
↓ 8 callers
Function
NewInfoByte
(info []byte, h *Header)
info.go:16
↓ 8 callers
Method
Start
Start returns the 0-based start
variant.go:54
↓ 8 callers
Method
String
String returns a string representation.
header.go:54
↓ 6 callers
Method
GetGenotypeField
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 callers
Function
parseOne
(key, val, itype string)
header.go:285
↓ 5 callers
Method
Clear
Clear empties the cache of errors.
reader.go:289
↓ 5 callers
Function
NewWriter
NewWriter returns a writer after writing the header.
writer.go:17
↓ 5 callers
Function
splitA
when we split on alt, it returns a single int since we are decomposing.
splitalts.go:113
↓ 5 callers
Function
splitR
(m interface{}, i int, nAlts int)
splitalts.go:98
↓ 4 callers
Method
AltDepths
AltDepths returns the depths of the alternates for this sample
variant.go:245
↓ 4 callers
Method
Error
Error returns a string with all errors delimited by newlines.
vcf.go:18
↓ 4 callers
Method
Id
()
variant.go:36
↓ 4 callers
Function
NewSampleGenotype
NewSampleGenotype allocates the internals and returns a *SampleGenotype
variant.go:280
↓ 4 callers
Function
fmtFloat32
(v float32)
variant.go:187
↓ 4 callers
Function
fmtFloat64
(v float64)
variant.go:201
↓ 4 callers
Function
getpositions
* func bytesToString(b []byte) string { bh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) sh := reflect.StringHeader{bh.Data, bh.Len} return *(*stri
info.go:33
↓ 4 callers
Function
splitG
(m interface{}, i int, nAlts int)
splitalts.go:70
↓ 3 callers
Function
ItoS
(k string, v interface{})
info.go:147
↓ 3 callers
Function
NewHeader
NewHeader returns a Header with the requisite allocations.
header.go:182
↓ 3 callers
Function
parseHeaderFileVersion
(format string)
header.go:265
↓ 2 callers
Method
CIEnd
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 callers
Method
CIPos
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 callers
Method
Chrom
Chrom returns the chromosome name.
variant.go:49
↓ 2 callers
Method
Keys
()
info.go:110
↓ 2 callers
Function
NewVCFError
NewVCFError allocates the needed ingredients.
vcf.go:32
↓ 2 callers
Method
Parse
(fields [][]byte)
reader.go:201
↓ 2 callers
Method
ParseSamples
Force parsing of the sample fields.
reader.go:241
↓ 2 callers
Method
RefDepth
RefDepth returns the depths of the alternates for this sample
variant.go:233
↓ 2 callers
Function
benchmarkReader
(lazy bool, b *testing.B)
bench_test.go:8
↓ 2 callers
Function
handleNumberType
(number string, value string, nAlts int, nGTs int, isInt bool, mv interface{})
variant.go:354
↓ 2 callers
Function
parseHeaderContig
(contig string)
header.go:208
↓ 2 callers
Function
parseHeaderExtraKV
(kv string)
header.go:223
↓ 2 callers
Function
parseHeaderFilter
(info string)
header.go:248
↓ 2 callers
Function
parseHeaderFormat
(info string)
header.go:235
↓ 2 callers
Function
parseHeaderInfo
(info string)
header.go:195
↓ 2 callers
Function
parseSampleLine
(line string)
header.go:274
↓ 2 callers
Method
setSampleGL
(geno *SampleGenotype, value string, isPL bool)
header.go:133
↓ 2 callers
Function
splitGT
(m interface{}, i int)
splitalts.go:80
↓ 2 callers
Function
unsafeString
(b []byte)
reader.go:197
↓ 1 callers
Method
Close
()
reader.go:293
↓ 1 callers
Method
IsEmpty
IsEmpty returns true if there no errors stored.
vcf.go:57
↓ 1 callers
Method
ToString
ToString returns the string representation of the sample field.
variant.go:267
↓ 1 callers
Method
WriteVariant
WriteVariant writes a single variant
writer.go:91
↓ 1 callers
Function
leftalign
(pos int, ref []byte, alt []byte, seq []byte)
normalize.go:3
↓ 1 callers
Function
lefttrim
(pos int, ref []byte, alt []byte)
normalize.go:34
↓ 1 callers
Function
makeFields
(line []byte)
reader.go:152
↓ 1 callers
Function
parseHeaderSample
return just the sample id.
header.go:257
↓ 1 callers
Method
parseSample
* func (h *Header) Validate(verr *VCFError) []error { var errs []error return errs }*/
header.go:69
↓ 1 callers
Method
setSampleDP
(geno *SampleGenotype, value string)
header.go:105
↓ 1 callers
Method
setSampleGQ
(geno *SampleGenotype, value string, Type string)
header.go:114
↓ 1 callers
Method
setSampleGT
(geno *SampleGenotype, value string)
header.go:153
↓ 1 callers
Function
split
(v *Variant, i int, nAlts int)
splitalts.go:21
Method
Add
(key string, value interface{})
info.go:400
Method
AddFormatToHeader
AddFormatToHeader adds a FORMAT field to the header.
reader.go:268
Method
AddInfoToHeader
AddInfoToHeader adds a INFO field to the header.
reader.go:262
Function
BenchmarkEager
(b *testing.B)
bench_test.go:32
Function
BenchmarkLazy
(b *testing.B)
bench_test.go:31
Method
Bytes
()
info.go:336
Method
Clear
Clear empties the Messages
vcf.go:62
Function
Example
()
doc_test.go:10
Method
GetHeaderType
(field string)
reader.go:273
Function
NewWithHeader
(r io.Reader, h *Header, lazySamples bool)
reader.go:54
Method
SetUpTest
(c *C)
regression_test.go:41
Method
SetUpTest
(c *C)
header_test.go:75
Method
SetUpTest
(c *C)
header_test.go:79
Method
SetUpTest
(c *C)
variant_test.go:19
Method
SetUpTest
(c *C)
reader_test.go:19
Method
SetUpTest
(c *C)
splitalts_test.go:10
Method
SetUpTest
(c *C)
sample_test.go:30
Method
SetUpTest
(c *C)
sv_test.go:61
Method
SetUpTest
(c *C)
sv_test.go:141
Function
SplitAlts
(v *Variant)
splitalts.go:8
Method
String
String returns a string representation.
header.go:59
Method
String
String returns the string representation of the sample field.
variant.go:228
Method
String
String gives a string representation of a variant
variant.go:289
Function
Test
(t *testing.T)
vcf_test.go:15
Function
Test
(t *testing.T)
sv_test.go:13
Method
TestDupIns
(c *C)
sv_test.go:65
Method
TestEmptyInfo
(c *C)
info_test.go:35
Method
TestFloatFmt
(c *C)
internal_test.go:10
Method
TestHeaderBadVersionParse
(c *C)
vcf_test.go:105
Method
TestHeaderContigParse
(c *C)
vcf_test.go:110
Method
TestHeaderExtra
(c *C)
vcf_test.go:116
Method
TestHeaderFilterParse
(c *C)
vcf_test.go:90
Method
TestHeaderFormatParse
(c *C)
vcf_test.go:80
Method
TestHeaderInfoParse
(c *C)
vcf_test.go:71
next →
1–100 of 146, ranked by callers