Skip to content

Commit 37abec4

Browse files
author
Ben J. Ward
committed
Support >65535 CIGAR op-codes in BAM files (#13)
These changes add support for >65535 CIGAR op-codes in CIGAR strings in BAM records. SAM records are not a problem; their plain text formatting permits CIGAR strings of arbitrary length. This change also updates the README, a HUMANS file, and updates the documentation to use the Documenter.jl HTML generation.
1 parent 1489ebe commit 37abec4

File tree

15 files changed

+506
-317
lines changed

15 files changed

+506
-317
lines changed

.travis.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,12 @@ os:
55
- osx
66
julia:
77
- 0.6
8-
# - nightly
8+
- nightly
99
matrix:
1010
allow_failures:
11-
# - julia: 0.6
12-
# - julia: nightly
11+
- julia: nightly
1312
notifications:
1413
email: false
15-
git:
16-
depth: 99999999
17-
18-
## uncomment and modify the following lines to manually install system packages
19-
#addons:
20-
# apt: # apt-get for linux
21-
# packages:
22-
# - gfortran
23-
#before_script: # homebrew for mac
24-
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
25-
26-
## uncomment the following lines to override the default test script
27-
#script:
28-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("BioAlignments"); Pkg.test("BioAlignments"; coverage=true)'
2914
after_success:
3015
# push coverage results to Codecov
3116
- julia -e 'cd(Pkg.dir("BioAlignments")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
### Added
9+
- Contributing files were added to this project.
10+
- A method called `BAM.ispositivestrand` is added to test for the relevant flag
11+
in BAM records. Thanks @phaverty :smile:
12+
- Support for records with CIGAR strings with >65535 op-codes has been added.
13+
14+
### Changed
15+
- Documentation has been updated and uses the Documenter.jl native html
16+
generator.
17+
18+
## [0.2.0] - 2017-08-01
19+
### Dependencies
20+
- :exclamation: Support for julia v0.5 has been dropped.
21+
- :exclamation: Some dependency lower bound requirements were adjusted for
22+
Automa, BGZFStreams, BioSequences, and IntervalTrees.
23+
24+
## [0.1.0] - 2017-06-30
25+
- This initial release extracted the alignment utilities out from Bio.jl into
26+
this dedicated package.
27+
28+
[Unreleased]: https://github.com/BioJulia/BioAlignments.jl/compare/v0.2.0...HEAD
29+
[0.2.0]: https://github.com/BioJulia/BioAlignments.jl/compare/v0.1.0...v0.2.0
30+
[0.1.0]: https://github.com/BioJulia/BioAlignments.jl/tree/v0.1.0

HUMANS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The humans responsible for BioAlignments
2+
3+
## BioAlignments.jl Maintainers
4+
- Ben J. Ward
5+
- GitHub: [BenJWard](https://github.com/BenJWard)
6+
- Email: ben.ward@earlham.ac.uk
7+
- Twitter: @Ward9250
8+
- Kenta Sato
9+
- GitHub: [bicycle1885](https://github.com/bicycle1885)
10+
11+
## Thanks
12+
- Peter Haverty
13+
- GitHub [phaverty](https://github.com/phaverty)
14+
15+
[Full contributors list](https://github.com/BioJulia/BioAlignments.jl/graphs/contributors)
16+
17+
_Is somebody missing from this file? That won't do! Please file an Issue or PR and let's fix that!_

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The BioSequences.jl package is licensed under the MIT "Expat" License:
1+
The BioAlignments.jl package is licensed under the MIT "Expat" License:
22

33
> Copyright (c) 2014: BioJulia.
44
>

README.md

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,47 @@
1-
# BioAlignments.jl
1+
# BioAlignments
22

3-
**Latest release:**
4-
5-
[![Latest Release][release-img]][release-url]
6-
[![BioAlignments][juliapkg06-img]][juliapkg-url]
7-
[![BioAlignments][juliapkg06-img]][juliapkg-url]
8-
[![License][license-img]][license-url]
9-
[![Docs Stable][docs-stable-img]][docs-stable-url]
10-
![BioJulia maintainer: bicycle1885](https://img.shields.io/badge/BioJulia%20Maintainer-bicycle1885-orange.svg)
11-
![BioJulia maintainer: Ward9250](https://img.shields.io/badge/BioJulia%20Maintainer-Ward9250-orange.svg)
12-
13-
**Development status:**
14-
15-
[![Build Status][travis-img]][travis-url]
16-
[![Build status][appveyor-img]][appveyor-url]
17-
[![codecov.io][codecov-img]][codecov-url]
18-
[![Docs Latest][docs-latest-img]][docs-latest-url]
3+
[![latest release](https://img.shields.io/github/release/BioJulia/BioAlignments.jl.svg?style=flat-square)](https://github.com/BioJulia/BioAlignments.jl/releases/latest)
4+
[![MIT license](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/BioJulia/BioAlignments.jl/blob/master/LICENSE)
5+
[![stable documentation](https://img.shields.io/badge/docs-stable-blue.svg?style=flat-square)](https://biojulia.github.io/BioAlignments.jl/stable)
6+
[![latest documentation](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://biojulia.github.io/BioAlignments.jl/latest/)
7+
![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg?style=flat-square)
8+
[![Chat on Discord](https://img.shields.io/badge/discord-chat-blue.svg?style=flat-square&logo=discord&colorB=%237289DA)](https://discord.gg/z73YNFz)
199

2010
## Description
2111

22-
BioAlignments.jl provides alignment algorithms, data structures, and I/O tools
23-
for SAM and BAM file formats.
12+
BioAlignments provides alignment algorithms, data structures, and I/O
13+
tools for SAM and BAM file formats.
2414

2515
## Installation
2616

2717
Install BioAlignments from the Julia REPL:
2818

2919
```julia
30-
julia> Pkg.add("BioAlignments")
20+
using Pkg
21+
add("BioAlignments")
22+
#Pkg.add("BioAlignments") for julia prior to v0.7
3123
```
3224

33-
If you are interested in the cutting edge of the development, please check out
34-
the master branch to try new features before release.
25+
If you are interested in the cutting edge of the development, please
26+
check out the master branch to try new features before release.
27+
28+
## Testing
29+
30+
BioAlignments is tested against julia `0.6` and current `0.7-dev` on
31+
Linux, OS X, and Windows.
32+
33+
| **Latest release** | **Latest build status** |
34+
|:------------------:|:-----------------------:|
35+
| [![julia06](http://pkg.julialang.org/badges/BioAlignments_0.6.svg?style=flat-square)](http://pkg.julialang.org/?pkg=BioAlignments) [![julia07](http://pkg.julialang.org/badges/BioAlignments_0.7.svg?style=flat-square)](http://pkg.julialang.org/?pkg=BioAlignments) | [![travis](https://img.shields.io/travis/BioJulia/BioAlignments.jl/master.svg?label=Linux+/+macOS)](https://travis-ci.org/BioJulia/BioAlignments.jl) [![appveyor](https://ci.appveyor.com/api/projects/status/klkynmkr1tgd30gq/branch/master?svg=true)](https://ci.appveyor.com/project/Ward9250/bioalignments-jl/branch/master) [![coverage](http://codecov.io/github/BioJulia/BioAlignments.jl/coverage.svg?branch=master)](http://codecov.io/github/BioJulia/BioAlignments.jl?branch=master) |
3536

3637
## Contributing and Questions
3738

38-
We appreciate contributions from users including reporting bugs, fixing issues,
39-
improving performance and adding new features.
40-
Please go to the [contributing section of the documentation](biojulia.github.io/BioAlignments.jl/stable/contributing)
41-
for more information.
39+
We appreciate contributions from users including reporting bugs, fixing
40+
issues, improving performance and adding new features.
4241

43-
If you have a question about
44-
contributing or using this package, you are encouraged to use the
45-
[Bio category of the Julia discourse
46-
site](https://discourse.julialang.org/c/domain/bio).
42+
Take a look at the [CONTRIBUTING](CONTRIBUTING.md) file provided with
43+
this package for detailed contributor and maintainer guidelines.
4744

48-
[release-img]: https://img.shields.io/github/release/BioJulia/BioAlignments.jl.svg
49-
[release-url]: https://github.com/BioJulia/BioAlignments.jl/releases/latest
50-
[juliapkg05-img]: http://pkg.julialang.org/badges/BioAlignments_0.5.svg
51-
[juliapkg06-img]: http://pkg.julialang.org/badges/BioAlignments_0.6.svg
52-
[juliapkg-url]: http://pkg.julialang.org/?pkg=BioAlignments
53-
[license-img]: https://img.shields.io/badge/license-MIT-green.svg
54-
[license-url]: https://github.com/BioJulia/BioAlignments.jl/blob/master/LICENSE
55-
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
56-
[docs-stable-url]: https://biojulia.github.io/BioAlignments.jl/stable
57-
[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
58-
[docs-latest-url]: https://biojulia.github.io/BioAlignments.jl/latest/
59-
[travis-img]: https://travis-ci.org/BioJulia/BioAlignments.jl.svg?branch=master
60-
[travis-url]: https://travis-ci.org/BioJulia/BioAlignments.jl
61-
[appveyor-img]: https://ci.appveyor.com/api/projects/status/klkynmkr1tgd30gq/branch/master?svg=true
62-
[appveyor-url]: https://ci.appveyor.com/project/Ward9250/bioalignments-jl/branch/master
63-
[codecov-img]: http://codecov.io/github/BioJulia/BioAlignments.jl/coverage.svg?branch=master
64-
[codecov-url]: http://codecov.io/github/BioJulia/BioAlignments.jl?branch=master
45+
If you have a question about contributing or using this package, come
46+
on over and chat to us on [Discord][discord-url], or you can try the
47+
[Bio category of the Julia discourse site](https://discourse.julialang.org/c/domain/bio).

REQUIRE

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
julia 0.6
2-
Automa 0.3
3-
BGZFStreams 0.1
4-
BioCore 1.0
5-
BioSequences 0.5
6-
BioSymbols 1.0
7-
BufferedStreams 0.3
8-
GenomicFeatures 0.1
9-
IntervalTrees 0.2
2+
Automa 0.6.1
3+
BGZFStreams 0.1.4
4+
BioCore 1.4
5+
BioSequences 0.8.3
6+
BioSymbols 2.0
7+
BufferedStreams 0.4
8+
GenomicFeatures 0.2.1
9+
IntervalTrees 0.4.1

docs/make.jl

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
using Documenter, BioAlignments
22

33
makedocs(
4-
modules=[BioAlignments])
4+
format = :html,
5+
sitename = "BioAlignments.jl",
6+
pages = [
7+
"Home" => "index.md",
8+
"Alignment representation" => "alignments.md",
9+
"Pairwise alignment" => "pairalign.md",
10+
"IO" => [
11+
"SAM and BAM" => "hts-files.md"
12+
],
13+
"API Reference" => "references.md"
14+
],
15+
authors = "Kenta Sato, Ben J. Ward, The BioJulia Organisation and other contributors."
16+
)
517
deploydocs(
6-
deps=Deps.pip("mkdocs", "pygments", "mkdocs-material"),
7-
repo="github.com/BioJulia/BioAlignments.jl.git",
8-
julia="0.6",
9-
osname="linux")
18+
repo = "github.com/BioJulia/BioAlignments.jl.git",
19+
julia = "0.6",
20+
osname = "linux",
21+
target = "build",
22+
deps = nothing,
23+
make = nothing
24+
)

docs/mkdocs.yml

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

docs/src/contributing.md

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

0 commit comments

Comments
 (0)