Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright ©2012 Dan Kortschak <dan.kortschak@adelaide.edu.au> | |
| package boom | |
| // http://samtools.sourceforge.net/samtools/sam/index.html | |
| /* | |
| #cgo LDFLAGS: -L/usr/local/src/samtools_latest -lbam -lz | |
| #include "sam.h" | |
| static int fileType(samfile_t *fp) { return fp->type; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright ©2012 Dan Kortschak <dan.kortschak@adelaide.edu.au> | |
| package feat | |
| type Conformationer interface { | |
| Conformation() Conformation | |
| } | |
| type Conformation int8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include "sam.h" | |
| // callback for bam_fetch() | |
| static int fetch_func(const bam1_t *b, void *data) | |
| { | |
| printf("%s %d %d %d\n", b->data, b->core.tid, b->core.pos, b->core.l_qseq); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "github.com/petar/GoLLRB/llrb" | |
| ) | |
| func isBalanced(t *llrb.Tree) bool { | |
| if t == nil { | |
| return true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/spew/dump_test.go b/spew/dump_test.go | |
| index a9504a8..d468886 100644 | |
| --- a/spew/dump_test.go | |
| +++ b/spew/dump_test.go | |
| @@ -161,6 +161,13 @@ func addIntTests() { | |
| addDumpTest(v5, "("+v5t+") "+v5s+"\n") | |
| addDumpTest(pv5, "(*"+v5t+")("+v5Addr+")("+v5s+")\n") | |
| addDumpTest(&pv5, "(**"+v5t+")("+pv5Addr+"->"+v5Addr+")("+v5s+")\n") | |
| + | |
| + // nil int* pointers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright ©2013 The gonum Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| /* | |
| Package blas provides interfaces for the BLAS linear algebra standard. | |
| All methods perform appropriate parameter checking and may panic | |
| if provided parameters do not conform to the requirements specified | |
| by the BLAS standard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package matrix | |
| import ( | |
| "github.com/gonum/blas" | |
| ) | |
| var blasEngine blas.Float64 | |
| type Float64 struct { | |
| mat BlasMatrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright ©2014 Dan Kortschak. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| // +build !ansi | |
| package ct | |
| import ( | |
| "fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright ©2013 The gonum Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| /* | |
| Package blas provides interfaces for the BLAS linear algebra standard. | |
| All methods must perform appropriate parameter checking and panic if | |
| provided parameters that do not conform to the requirements specified | |
| by the BLAS standard. |