Skip to content

Commit

Permalink
Merge pull request #103 from kbseah/master
Browse files Browse the repository at this point in the history
Fix bug in using SE reads
  • Loading branch information
HRGV authored Feb 11, 2020
2 parents b448fa0 + ee1f201 commit 5b038f4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion PhyloFlash.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This module contains helper functions shared by the phyloFlash scripts.
=cut

our $VERSION = "3.3b2";
our $VERSION = "3.3b3";
our @ISA = qw(Exporter);
our @EXPORT = qw(
$VERSION
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img align="right" src="docs/phyloFlash_logo.png" width="200" alt="phyloFlash logo"/>

# phyloFlash v3.3b2
# phyloFlash v3.3b3

[![GitHub (pre-)release](https://img.shields.io/github/release/HRGV/phyloflash/all.svg?label=Latest%20Version)]()
[![Bioconda](https://img.shields.io/conda/vn/Bioconda/phyloFlash.svg)](https://bioconda.github.io/recipes/phyloflash/README.html)
Expand Down Expand Up @@ -42,11 +42,11 @@ If you clone the repository directly off GitHub you might end up with a version

```bash
# Download latest release
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b2.tar.gz
tar -xzf pf3.3b2.tar.gz
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b3.tar.gz
tar -xzf pf3.3b3.tar.gz

# Check for dependencies and install them if necessary
cd phyloFlash-pf3.3b2
cd phyloFlash-pf3.3b3
./phyloFlash.pl -check_env
```

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ If you clone the repository directly off GitHub you might end up with a version

```bash
# Download latest release
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b2.tar.gz
tar -xzf pf3.3b2.tar.gz
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b3.tar.gz
tar -xzf pf3.3b3.tar.gz

# Check for dependencies and install them if necessary
cd phyloFlash-pf3.3b2
cd phyloFlash-pf3.3b3
./phyloFlash.pl -check_env
```

Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ If you clone the repository directly off GitHub you might end up with a version

```bash
# Download latest release
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b2.tar.gz
tar -xzf pf3.3b2.tar.gz
wget https://github.com/HRGV/phyloFlash/archive/pf3.3b3.tar.gz
tar -xzf pf3.3b3.tar.gz
```

Alternatively clone the latest development version with Git:
Expand Down
12 changes: 11 additions & 1 deletion phyloFlash.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2352,12 +2352,22 @@ sub nhmmer_model_pos {

# Subsample reads with reformat.sh
my @reformat_args = ("in=$readsf",
"in2=$readsr",
# "in2=$readsr",
#"path=$DBHOME",
"out=$subsample",
"srt=$samplelimit",
"ow=t", # Overwrite existing files
);

# Check if SE reads or interleaved reads
if ($SEmode == 0) {
if ($interleaved == 1) {
push @reformat_args, ("interleaved=t");
} else {
push @reformat_args, ("in2=$readsr");
}
}

run_prog ("reformat",
join (" ", @reformat_args),
undef,
Expand Down

0 comments on commit 5b038f4

Please sign in to comment.