Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- master
- main
- bug-fixes
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.27'
cache: true

- name: Download dependencies
run: go get -d -t -v ./...

- name: Run tests
run: go test -v ./...

- name: Build
run: go build -v ./...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<img src="misc/groot-logo-with-text.png?raw=true?" alt="groot-logo" width="250">
<h3><a style="color:#D5672C">G</a>raphing <a style="color:#D5672C">R</a>esistance <a style="color:#D5672C">O</a>ut <a style="color:#D5672C">O</a>f me<a style="color:#D5672C">T</a>agenomes</h3>
<hr>
<a href="https://gitlab.com/will-rowe/groot/-/pipelines"><img src="https://img.shields.io/badge/ci-gitlab-orange.svg" alt="gitlab-ci"></a>
<a href="https://github.com/will-rowe/groot/actions/workflows/ci.yml"><img src="https://img.shields.io/badge/ci-github%20actions-blue.svg" alt="github-actions"></a>
<a href='http://groot-documentation.readthedocs.io/en/latest/?badge=latest'><img src='https://readthedocs.org/projects/groot-documentation/badge/?version=latest' alt='Documentation Status' /></a>
<a href="https://goreportcard.com/report/github.com/will-rowe/groot"><img src="https://goreportcard.com/badge/github.com/will-rowe/groot" alt="reportcard"></a>
<a href="https://github.com/will-rowe/groot/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-orange.svg" alt="License"></a>
<a href="https://github.com/will-rowe/groot/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-orange.svg" alt="License"></a>
<a href="https://zenodo.org/badge/latestdoi/117543539"><img src="https://zenodo.org/badge/117543539.svg" alt="DOI"></a>
<a href="https://gitter.im/groot-help/Lobby"><img src="https://img.shields.io/badge/chat-gitter-8A2BE2.svg" alt="gitter"></a>
<a href="https://bioconda.github.io/recipes/groot/README.html"><img src="https://anaconda.org/bioconda/groot/badges/downloads.svg" alt="bioconda"></a>
Expand Down
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var md5sums = map[string]string{
}

// dbUrl to download databases from
var dbURL = fmt.Sprintf("https://github.com/will-rowe/groot/raw/master/db/clustered-ARG-databases/%v/", version.GetBaseVersion())
var dbURL = fmt.Sprintf("https://github.com/will-rowe/groot/raw/main/db/clustered-ARG-databases/%v/", version.GetBaseVersion())

// the command line arguments
var (
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Now we have a set of ARGs we know are present in one or more samples, we might w
Download the full ARG-ANNOT set of genes and then index with samtools:

```bash
wget https://github.com/will-rowe/groot/raw/master/db/full-ARG-databases/arg-annot-db/argannot-args.fna
wget https://github.com/will-rowe/groot/raw/main/db/full-ARG-databases/arg-annot-db/argannot-args.fna
samtools faidx argannot-args.fna
```

Expand Down
5 changes: 4 additions & 1 deletion src/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ func (GrootGraph *GrootGraph) WindowGraph(windowSize, kmerSize, sketchSize int)
}

windowLookup := make(map[windowLocation]lshe.Keys)
addWindow := func(window lshe.Key) {
addWindow := func(window lshe.Key) {
if window.MergeSpan > GrootGraph.maxSpan {
GrootGraph.maxSpan = window.MergeSpan
}
key := windowLocation{graphID: window.GraphID, node: window.Node, offset: window.OffSet}

if existingWindowLocation, ok := windowLookup[key]; ok {
Expand Down
Loading