Skip to content

Commit 09d5205

Browse files
committed
remove bedtools plus minus at end of sequence names
1 parent 42c1ece commit 09d5205

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The code will not work with perl 5.8 or below (pre-modern perl). We no longer te
129129
* cdhit 4.6.1
130130
* ncbi blast+ 2.4.0
131131
* mcl 14-137
132-
* bedtools 2.26.0
132+
* bedtools 2.27.1
133133
* prank 130410
134134
* GNU parallel 20130922, 20160722, 20150122
135135
* FastTree 2.1.9

install_dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PARALLEL_VERSION=${PARALLEL_VERSION:-"20160722"}
1111
PARALLEL_DOWNLOAD_FILENAME="parallel-${PARALLEL_VERSION}.tar.bz2"
1212
PARALLEL_URL="http://ftp.gnu.org/gnu/parallel/${PARALLEL_DOWNLOAD_FILENAME}"
1313

14-
BEDTOOLS_VERSION="2.26.0"
14+
BEDTOOLS_VERSION="2.27.1"
1515
BEDTOOLS_DOWNLOAD_FILENAME="bedtools-${BEDTOOLS_VERSION}.tar.gz"
1616
BEDTOOLS_URL="https://github.com/arq5x/bedtools2/releases/download/v${BEDTOOLS_VERSION}/${BEDTOOLS_DOWNLOAD_FILENAME}"
1717

lib/Bio/Roary/ExtractProteomeFromGFF.pm

+7-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,13 @@ sub _cleanup_fasta {
132132
open( my $in, '<', $infile );
133133
open( my $out, '>', $outfile );
134134
while ( my $line = <$in> ) {
135-
chomp $line;
136-
$line =~ s/"//g if ( $line =~ /^>/ );
135+
chomp $line;
136+
if ( $line =~ /^>/ )
137+
{
138+
$line =~ s/"//g;
139+
# newer versions of Bedtools add (-) or (+) to the end of the sequence name, remove them
140+
$line =~ s!\([-+]\)!!;
141+
}
137142

138143
if($line =~ /^(>[^:]+)/)
139144
{

lib/Bio/Roary/Output/GroupsMultifastaNucleotide.pm

+6-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ sub _cleanup_fasta {
177177
open( my $out, '>', $outfile );
178178
while ( my $line = <$in> ) {
179179
chomp $line;
180-
$line =~ s/"//g if ( $line =~ /^>/ );
180+
if ( $line =~ /^>/ )
181+
{
182+
$line =~ s/"//g ;
183+
# newer versions of Bedtools add (-) or (+) to the end of the sequence name, remove them
184+
$line =~ s!\([-+]\)!!;
185+
}
181186

182187
if($line =~ /^(>[^:]+)/)
183188
{

0 commit comments

Comments
 (0)