MCPcopy Index your code
hub / github.com/brentp/goleft

github.com/brentp/goleft @v0.2.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.6 ↗ · + Follow
292 symbols 699 edges 37 files 69 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

goleft

Build Status

goleft is a collection of bioinformatics tools written in go distributed together as a single binary under a liberal (MIT) license.

Running the binary goleft will give a list of subcommands with a short description. Running any subcommand without arguments will give a full help for that command.

Installation

The easiest way to install goleft is to download the latest binary from the releases and make sure to chmod +x the resulting binary.

If you are using go, you can build from source with:

go get -u github.com/brentp/goleft/...
go install github.com/brentp/goleft/cmd/goleft

goleft is also available in bioconda

Commands

  • covstats : estimate coverage and insert-size statistics on bams by sampling
  • depth : parallelize calls to samtools in user-defined windows
  • depthwed : matricize output from depth to n-sites * n-samples
  • indexcov : quick coverage estimate using only the bam index
  • indexsplit : generate regions of even data across a cohort (for parallelization)
  • samplename: report samplename(s) from a bam's SM tag

Extension points exported contracts — how you extend this code

Scaler (Interface)
Scaler allows transformation and back of the depths. As an example, see the `ZScore` struct. Usually, these will be 0-ce [4 …
dcnv/scalers/scalers.go
Debiaser (Interface)
Debiaser implements inplace removal of bias from a mat64 of (scaled) values. [3 implementers]
dcnv/debiaser/debiaser.go
MatFn (FuncType)
(no doc)
dcnv/dcnv.go
Sorter (Interface)
Sorter provides method to sort and then unsort a mat64 [1 implementers]
dcnv/debiaser/debiaser.go
SortedDebiaser (Interface)
SortedDebiaser is useful when we need to: sort, then unbias based on that sort order, then unsort. An example of this is
dcnv/debiaser/debiaser.go

Core symbols most depended-on inside this repo

abs
called by 16
emdepth/emdepth.go
Order
called by 13
cnveval/cnveval.go
Flush
called by 12
depth/depth.go
pcheck
called by 9
depth/depth.go
Len
called by 8
indexcov/plot.go
Start
called by 8
indexcov/crai/crai.go
max
called by 8
depth/depth.go
pcheck
called by 7
covstats/covstats.go

Shape

Function 160
Method 79
Struct 45
Interface 5
TypeAlias 2
FuncType 1

Languages

Go99%
Python1%

Modules by API surface

indexcov/indexcov.go38 symbols
cnveval/cnveval.go28 symbols
dcnv/dcnv.go24 symbols
indexcov/plot.go23 symbols
emdepth/emdepth.go23 symbols
depth/depth.go17 symbols
dcnv/scalers/scalers.go16 symbols
dcnv/debiaser/debiaser.go16 symbols
multidepth/multidepth.go15 symbols
emdepth/mops/mops.go11 symbols
depthwed/depthwed.go11 symbols
indexsplit/indexsplit.go8 symbols

For agents

$ claude mcp add goleft \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page