Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Documenter for docs #30

Merged
merged 7 commits into from
Oct 12, 2022
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
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ jobs:
- ubuntu-latest
arch:
- x64
include:
- os: windows-latest
version: '1'
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand All @@ -34,7 +30,7 @@ jobs:
env:
JULIA_NUM_THREADS: 4
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v2
with:
file: lcov.info
docs:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ XAM = "d759349c-bcba-11e9-07c2-5b90f8f05f7c"
DataFrames = "^0.22.0"
GenomicFeatures = "^2.0.0"
OrderedCollections = "~1.3.0"
RLEVectors = "^0.9.0"
RLEVectors = "^0.9.9"
Requires = "~1.1.0"
XAM = "^0.2.1"
julia = "1"
Expand Down
12 changes: 12 additions & 0 deletions docs/#make.jl#
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Documenter, GenomicVectors

makedocs(
modules = [GenomicVectors],
format = :html,
sitename = "GenomicVectors"
)

deploydocs(
repo = "github.com/phaverty/GenomicVectors.jl.git",
julia = "release"
)
5 changes: 5 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.27"
5 changes: 2 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using Documenter, GenomicVectors

makedocs(
modules = [GenomicVectors]
sitename = "GenomicVectors"
)

deploydocs(
repo = "github.com/phaverty/GenomicVectors.jl.git",
julia = "release"
repo = "github.com/phaverty/GenomicVectors.jl.git"
)
10 changes: 5 additions & 5 deletions src/rcall.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using .RCall

function RCall.sexp(f::GenomeInfo)
RCall.R"library(GenomicRanges)"
@rlibrary GenomicRanges
s = [string(x) for x in chr_names(f)]
l = collect(chr_lengths(f))
g = genome(f)
RCall.R"Seqinfo($s, $l, NA, $g)"
RCall.reval("Seqinfo($s, $l, NA, $g)")
end

function RCall.rcopy(::Type{GenomeInfo}, s::Ptr{RCall.S4Sxp})
Expand All @@ -17,7 +17,7 @@ function RCall.rcopy(::Type{GenomeInfo}, s::Ptr{RCall.S4Sxp})
end

function RCall.sexp(f::GenomicRanges)
RCall.R"library(GenomicRanges)"
@rlibrary GenomicRanges
s = starts(f)
e = ends(f)
c = [string(x) for x in chromosomes(f)]
Expand All @@ -26,11 +26,11 @@ function RCall.sexp(f::GenomicRanges)
# RCall.R"GRanges($c, IRanges($s, $e), $r, seqinfo = $i)"
# RCall.R"GRanges($c, IRanges($s, $e), seqinfo = $i)
# RCall.R"GRanges($c, IRanges($s, $e), $r)
RCall.R"GRanges($c, IRanges($s, $e))
RCall.reval("GRanges($c, IRanges($s, $e))")
end

#function RCall.sexp(f::GenomicDataFrame)
# RCall.R"library(GenomicRanges)"
# @rlibrary GenomicRanges
# s = starts(f)
# e = ends(f)
# c = [string(x) for x in chromosomes(f)]
Expand Down