Skip to content

Commit e72cde4

Browse files
Merge pull request #32 from smithlabcode/version-3.2.0
Version 3.2.0
2 parents 0b94cae + 136fef2 commit e72cde4

8 files changed

Lines changed: 35 additions & 39 deletions

File tree

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is part of abismal
22
#
3-
# Copyright (C) 2018-2020: Andrew D. Smith
3+
# Copyright (C) 2018-2023: Andrew D. Smith and Guilherme de Sena Brandine
44
#
5-
# Authors: Andrew D. Smith
5+
# Authors: Andrew D. Smith and Guilherme de Sena Brandine
66
#
77
# This is free software: you can redistribute it and/or modify it
88
# under the terms of the GNU General Public License as published by

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ If you don't have adminstrator privileges, there are other options.
5353
If you have the `libhts-dev` installed, to build `abismal` the
5454
following should work:
5555
```console
56-
$ wget https://github.com/smithlabcode/abismal/releases/download/v3.1.1/abismal-3.1.1.tar.gz
57-
$ tar -zxvf abismal-3.1.1.tar.gz
58-
$ cd abismal-3.1.1
56+
$ wget https://github.com/smithlabcode/abismal/releases/download/v3.2.0/abismal-3.2.0.tar.gz
57+
$ tar -zxvf abismal-3.2.0.tar.gz
58+
$ cd abismal-3.2.0
5959
$ mkdir build && cd build
6060
$ ../configure --prefix=/where/you/want/abismal
6161
$ make
@@ -84,9 +84,9 @@ be needed below. If you don't already have `abismal` downloaded, the next
8484
step is to download it. Here we will assume you are using a release rather
8585
than a clone. To build from a clone involves at least one more step.
8686
```console
87-
$ wget https://github.com/smithlabcode/abismal/releases/download/v3.1.1/abismal-3.1.1.tar.gz
88-
$ tar -zxvf abismal-3.1.1.tar.gz
89-
$ cd abismal-3.1.1
87+
$ wget https://github.com/smithlabcode/abismal/releases/download/v3.2.0/abismal-3.2.0.tar.gz
88+
$ tar -zxvf abismal-3.2.0.tar.gz
89+
$ cd abismal-3.2.0
9090
```
9191
Finally, these steps build the software:
9292
```console

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl This file is part of abismal
22
dnl
3-
dnl Copyright (C) 2019-2022: Andrew D. Smith and Guilherme de Sena Brandine
3+
dnl Copyright (C) 2019-2023: Andrew D. Smith and Guilherme de Sena Brandine
44
dnl
55
dnl Authors: Andrew D. Smith and Guilherme de Sena Brandine
66
dnl
@@ -14,7 +14,7 @@ dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515
dnl General Public License for more details.
1616

17-
AC_INIT([abismal], [3.1.1], [andrewds@usc.edu],
17+
AC_INIT([abismal], [3.2.0], [andrewds@usc.edu],
1818
[abismal], [https://github.com/smithlabcode/abismal])
1919

2020
dnl the config.h is not currently #included in the source, and only

data/md5sum.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
b9699416969133224b620f05af97ac90 tests/reads_pbat_pe_1.fq
55
12c9d36ab3bf2b9ecb5683d7a093a10d tests/reads_pbat_pe_2.fq
66
3edbf931e6f0da55a50b24e01a975565 tests/reads_pbat_pe.mstats
7-
51b695cd3aeb3cead392821628acf0f1 tests/reads_pbat_pe.sam
8-
58d6c1157b187a66d43087fe3e70a38c tests/reads_pbat.sam
97
8e5ad0faefe241de9c2c5748e005e2e8 tests/reads_pe_1.fq
108
4ebacfec717182fafce46b037591b228 tests/reads_pe_2.fq
119
072a7df62d45dc3d3d4350d79efc9ca1 tests/reads_pe.mstats
12-
56318794f9e55549c9050a636161e883 tests/reads_pe.sam
1310
e66339e591563032af436ca2af9b75b1 tests/reads_rpbat_pe_1.fq
1411
aed5705c4a99601d5799fc8ee42af5b2 tests/reads_rpbat_pe_2.fq
1512
da00a63969113e09406b61cbe280daa5 tests/reads_rpbat_pe.mstats
16-
7f3f547ff06296ef2fcc7d1cb8169766 tests/reads_rpbat_pe.sam
17-
50ec2af709639fa242654f9b3a46981b tests/reads.sam
1813
3ba5a1c4c420ca7a2dbd88290033c3bc tests/tRex1.idx
14+
cd4a9d6b8c9b00254c53e3e5e5cd249e tests/reads_pbat_pe.sam
15+
c466e11e3ed0bfe32c4baa1f16096a95 tests/reads_pe.sam
16+
c5bf84d3e4e01e27804d39321569c11c tests/reads_rpbat_pe.sam
17+
9cab40d2130b4eb9d95f5694d184a5e1 tests/reads.sam

docs/MANUAL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ substantially.
4949

5050
Run the following commands to install abismal
5151
```
52-
wget https://github.com/smithlabcode/abismal/releases/download/v3.1.1/abismal-3.1.1.tar.gz
53-
tar -xvzf abismal-3.1.1.tar.gz
54-
cd abismal-3.1.1
52+
wget https://github.com/smithlabcode/abismal/releases/download/v3.2.0/abismal-3.2.0.tar.gz
53+
tar -xvzf abismal-3.2.0.tar.gz
54+
cd abismal-3.2.0
5555
./configure --prefix=$(pwd)
5656
make
5757
make install
@@ -317,7 +317,7 @@ sequence.
317317
The last line of the headers is a copy of how the program was called
318318
to generate the SAM output, and is of the form
319319
```
320-
@PG ID:ABISMAL VN:3.1.1 CL:"[command-call]"
320+
@PG ID:ABISMAL VN:3.2.0 CL:[command-call]
321321
```
322322
where [command-call] is the shell command used to run abismal.
323323

docs/abismal.1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Run the following commands to install abismal
5757
.IP
5858
.nf
5959
\f[C]
60-
wget https://github.com/smithlabcode/abismal/releases/download/v3.1.1/abismal-3.1.1.tar.gz
61-
tar -xvzf abismal-3.1.1.tar.gz
62-
cd abismal-3.1.1
60+
wget https://github.com/smithlabcode/abismal/releases/download/v3.2.0/abismal-3.2.0.tar.gz
61+
tar -xvzf abismal-3.2.0.tar.gz
62+
cd abismal-3.2.0
6363
\&./configure --prefix=$(pwd)
6464
make
6565
make install
@@ -364,7 +364,7 @@ generate the SAM output, and is of the form
364364
.IP
365365
.nf
366366
\f[C]
367-
\[at]PG ID:ABISMAL VN:3.1.1 CL:\[dq][command-call]\[dq]
367+
\[at]PG ID:ABISMAL VN:3.2.0 CL:\[dq][command-call]\[dq]
368368
\f[R]
369369
.fi
370370
.PP

docs/abismal.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ <h1 id="description">DESCRIPTION</h1>
6565
<p>absimal was built to map short reads of up to 250 bases. It should successfully map reads of size up to 1 million, but because it uses very short seeds for filtration, the mapping time will increase substantially.</p>
6666
<h1 id="quick-installation">QUICK INSTALLATION</h1>
6767
<p>Run the following commands to install abismal</p>
68-
<pre><code>wget https://github.com/smithlabcode/abismal/releases/download/v3.1.1/abismal-3.1.1.tar.gz
69-
tar -xvzf abismal-3.1.1.tar.gz
70-
cd abismal-3.1.1
68+
<pre><code>wget https://github.com/smithlabcode/abismal/releases/download/v3.2.0/abismal-3.2.0.tar.gz
69+
tar -xvzf abismal-3.2.0.tar.gz
70+
cd abismal-3.2.0
7171
./configure --prefix=$(pwd)
7272
make
7373
make install</code></pre>
@@ -204,7 +204,7 @@ <h2 id="output-headers">Output headers</h2>
204204
<pre><code>@SQ SN:[chrom-name] LN:[chrom-length]</code></pre>
205205
<p>where [chrom-name] is given by the first word of the chromosome name in the FASTA file (anything after the first white space is deleted), and [chrom-length] is the number of bases in the chromosome sequence.</p>
206206
<p>The last line of the headers is a copy of how the program was called to generate the SAM output, and is of the form</p>
207-
<pre><code>@PG ID:ABISMAL VN:3.1.1 CL:&quot;[command-call]&quot;</code></pre>
207+
<pre><code>@PG ID:ABISMAL VN:3.2.0 CL:&quot;[command-call]&quot;</code></pre>
208208
<p>where [command-call] is the shell command used to run abismal.</p>
209209
<h2 id="output-mapped-lines">Output mapped lines</h2>
210210
<p>Following the header lines, reads that are mapped once (or at least once if the -a flag is used) are reported. Each read is a set of thirteen tab-separated fields as follows.</p>

src/abismal.cpp

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "abismal.hpp"
1919

2020
#include <bamxx.hpp>
21+
#include <config.h>
2122
#include <htslib/bgzf.h>
2223
#include <htslib/hfile.h>
2324
#include <htslib/sam.h>
@@ -171,9 +172,9 @@ update_max_read_length(size_t &max_length, const vector<string> &reads) {
171172
}
172173

173174
struct se_element { // size = 8
174-
score_t diffs; // 2 bytes
175-
flags_t flags; // 2 bytes
176-
uint32_t pos; // 4 bytes
175+
score_t diffs; // 2 bytes
176+
flags_t flags; // 2 bytes
177+
uint32_t pos; // 4 bytes
177178

178179
se_element(): diffs(MAX_DIFFS), flags(0), pos(0) {}
179180

@@ -2041,8 +2042,7 @@ file_exists(const string &filename) {
20412042
}
20422043

20432044
static int
2044-
abismal_make_sam_header(const ChromLookup &cl, const string program_name,
2045-
const string program_version, const int argc,
2045+
abismal_make_sam_header(const ChromLookup &cl, const int argc,
20462046
const char **argv, bamxx::bam_header &hdr) {
20472047
assert(cl.names.size() > 2); // two entries exist for the padding
20482048
assert(cl.starts.size() == cl.names.size() + 1);
@@ -2060,14 +2060,13 @@ abismal_make_sam_header(const ChromLookup &cl, const string program_name,
20602060

20612061
// chromosome sizes
20622062
const size_t n_chroms = names.size();
2063-
for (size_t i = 0; i < n_chroms; ++i) {
2063+
for (size_t i = 0; i < n_chroms; ++i)
20642064
out << "@SQ" << '\t' << "SN:" << names[i] << '\t' << "LN:" << sizes[i]
20652065
<< '\n';
2066-
}
20672066

20682067
// program details
2069-
out << "@PG" << '\t' << "ID:" << program_name << '\t'
2070-
<< "VN:" << program_version << '\t';
2068+
out << "@PG" << '\t' << "ID:"
2069+
<< "ABISMAL" << '\t' << "VN:" << VERSION << '\t';
20712070

20722071
// how the program was run
20732072
std::ostringstream the_command;
@@ -2082,7 +2081,6 @@ abismal_make_sam_header(const ChromLookup &cl, const string program_name,
20822081
int
20832082
abismal(int argc, const char **argv) {
20842083
try {
2085-
static const string ABISMAL_VERSION = "3.1.1";
20862084
bool VERBOSE = false;
20872085
bool GA_conversion = false;
20882086
bool allow_ambig = false;
@@ -2248,8 +2246,7 @@ abismal(int argc, const char **argv) {
22482246
if (!out) throw runtime_error("failed to open output file: " + outfile);
22492247

22502248
bamxx::bam_header hdr;
2251-
int ret = abismal_make_sam_header(abismal_index.cl, "ABISMAL",
2252-
ABISMAL_VERSION, argc, argv, hdr);
2249+
int ret = abismal_make_sam_header(abismal_index.cl, argc, argv, hdr);
22532250

22542251
if (ret < 0) throw runtime_error("error formatting header");
22552252

0 commit comments

Comments
 (0)