Skip to content

Commit 5d27a2e

Browse files
author
Ben J. Ward
committed
Add GraphIndexes API manual page
Minor fixes to project files
1 parent 6a7199e commit 5d27a2e

File tree

9 files changed

+48
-309
lines changed

9 files changed

+48
-309
lines changed

.github/workflows/TagBot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: TagBot
2+
on:
3+
schedule:
4+
- cron: '0 * * * *'
5+
jobs:
6+
TagBot:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: JuliaRegistries/TagBot@v1
10+
with:
11+
token: ${{ secrets.GITHUB_TOKEN }}
12+
ssh: ${{ secrets.TAGBOT_KEY }}
13+
registry: BioJulia/BioJuliaRegistry

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ authors = ["Ben J. Ward <benjward@protonmail.com>"]
44
version = "0.1.0"
55

66
[deps]
7-
Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b"
87
BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59"
98
FASTX = "c2308a5c-f048-11e8-3e8a-31650f418d12"
109
ReadDatastores = "70a005b8-9d8a-11e9-0d98-c909fa2e52d2"

docs/make.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Documenter, GenomeGraphs, Pkg
22

33
makedocs(
4-
modules = [GenomeGraphs, GenomeGraphs.Graphs, GenomeGraphs.MerTools],
4+
modules = [GenomeGraphs, GenomeGraphs.Graphs, GenomeGraphs.MerTools, GenomeGraphs.GraphIndexes],
55
format = Documenter.HTML(),
66
sitename = "GenomeGraphs.jl",
77
authors = replace(join(Pkg.TOML.parsefile("Project.toml")["authors"], ", "), r" <.*?>" => "" ),
@@ -12,7 +12,8 @@ makedocs(
1212
],
1313
"API" => [
1414
"Graphs submodule" => "api/Graphs.md",
15-
"MerTools submodule" => "api/MerTools.md"
15+
"MerTools submodule" => "api/MerTools.md",
16+
"GraphIndexes submodule" => "api/GraphIndexes.md"
1617
]
1718
],
1819

docs/src/api/GraphIndexes.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,31 @@ CurrentModule = GenomeGraphs.GraphIndexes
44

55
# API: The GraphIndexes submodule
66

7+
The GraphIndexes submodule contains some simple indexes and data structures that
8+
are useful if not required, for the development of mappers and motif/sequence
9+
finding heuristics.
10+
11+
All types and methods defined in this module are documented here.
12+
713
!!! note
814
This is a reference of an internal sub-module's API for developers and
915
experienced users. First ask yourself if what you need isn't covered by
10-
the higher-level WorkSpace API.
16+
the higher-level WorkSpace API.
17+
18+
!!! warning
19+
This submodule is still under construction.
20+
21+
## Types
22+
23+
```@docs
24+
UniqueMerIndex
25+
```
26+
27+
## Public / Safe methods
28+
29+
```@docs
30+
isunmappable
31+
find_unique_mer
32+
```
33+
34+
## Internal / Unsafe methods

src/GFA1/GFA1.jl

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/GFA1/machines.jl

Lines changed: 0 additions & 127 deletions
This file was deleted.

src/GraphIndexes.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using BioSequences: AbstractMer, position, ksize, fwmer, bwmer, each
1010

1111
using ..Graphs: NodeID, sequence, each_node_id, SequenceDistanceGraph
1212

13+
1314
struct GraphStrandPosition
1415
node::NodeID
1516
position::UInt32
@@ -18,6 +19,11 @@ end
1819
Base.summary(io::IO, pos::GraphStrandPosition) = print(io, "(Node: ", pos.node, ", Base position: ", pos.position, ')')
1920
Base.show(io::IO, pos::GraphStrandPosition) = summary(io, pos)
2021

22+
"""
23+
An index of all the unique kmers in a graph.
24+
25+
26+
"""
2127
struct UniqueMerIndex{M<:AbstractMer}
2228
mer_to_graphposition::Dict{M,GraphStrandPosition}
2329
unique_mers_per_node::Vector{UInt64}

src/Graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ function write_to_gfa1(sg::SequenceDistanceGraph, filename::String)
900900
continue
901901
end
902902
println(gfa, "S\tseq", nid, "\t*\tLN:i:", length(n), "\tUR:Z:", fasta_filename)
903-
write(fasta, FASTA.Record(string("seq", nid), sequence(n)))
903+
write(fasta, FASTA.Record(string("seq", nid), unsafe_sequence(n)))
904904
end
905905
close(fasta)
906906
for ls in links(sg)

0 commit comments

Comments
 (0)