Skip to content

Commit f24f371

Browse files
kescoboKevin Bonham
andauthored
Clean-up, tests (#7)
* add binder badge to readme * change name in readme * try to make module * try adding version to project * add testing file * make build function Co-authored-by: Kevin Bonham <kevin@bonham.ch>
1 parent aa355e0 commit f24f371

6 files changed

Lines changed: 27 additions & 73 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.ipynb_checkpoints
2+
Manifest.toml
3+
.envrc

Manifest.toml

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

Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
title = "Testing"
2+
uuid = "33e7be4a-8e14-4baf-892c-424bb664d307"
3+
authors = ["Kevin Bonham (@kescobo)", "Kenta Sato (@bicycle1885)"]
4+
version = "0.1.0"
5+
16
[deps]
27
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Bio.jl Tutorial Notebooks
1+
# BioJulia Tutorial Notebooks
22

3-
* [Pairwise Alignment and Dotplot](https://nbviewer.jupyter.org/github/BioJulia/BioTutorials/blob/master/Pairwise%20Alignment%20and%20Dotplot/Pairwise%20Alignment%20and%20Dotplot.ipynb)
4-
* [RNA-Seq Coverage](https://nbviewer.jupyter.org/github/BioJulia/BioTutorials/blob/master/RNA-Seq%20Coverage/RNA-Seq%20Coverage.ipynb)
3+
* [Pairwise Alignment and Dotplot](Pairwise_Alignment/pairwise_alignment.jl) ([![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/BioJulia/BioTutorials/HEAD?labpath=Pairwise_Alignment%2Fpairwise_alignment.ipynb))
4+
* [RNA-Seq Coverage](RNASeq_Coverage/rnaseq_coverage.jl) (outdated)
55

66
The programs under this repository are distributed in the public domain unless
77
otherwise specified.

src/BioTutorials.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module BioTutorials
2+
3+
function build(dir)
4+
isdir(dir) || throw(ArgumentError("Provide path to directory with tutorial file"))
5+
files = filter(f-> splitext(f)[2] == ".jl", readdir(dir; join=true))
6+
file = length(files) == 1 ? first(files) : throw(ArgumentError("Tutorial directory must have exactly one .jl file"))
7+
8+
c = Cmd([
9+
"julia", "--project=@.", "-e",
10+
"""
11+
using Literate; using Pkg; Pkg.activate("$dir"); Pkg.instantiate(); Literate.notebook("$file", "$dir")
12+
"""
13+
])
14+
run(c)
15+
end
16+
17+
end

test/runtests.jl

Whitespace-only changes.

0 commit comments

Comments
 (0)