File tree 4 files changed +15
-5
lines changed
4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ The code will not work with perl 5.8 or below (pre-modern perl). We no longer te
129
129
* cdhit 4.6.1
130
130
* ncbi blast+ 2.4.0
131
131
* mcl 14-137
132
- * bedtools 2.26.0
132
+ * bedtools 2.27.1
133
133
* prank 130410
134
134
* GNU parallel 20130922, 20160722, 20150122
135
135
* FastTree 2.1.9
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ PARALLEL_VERSION=${PARALLEL_VERSION:-"20160722"}
11
11
PARALLEL_DOWNLOAD_FILENAME=" parallel-${PARALLEL_VERSION} .tar.bz2"
12
12
PARALLEL_URL=" http://ftp.gnu.org/gnu/parallel/${PARALLEL_DOWNLOAD_FILENAME} "
13
13
14
- BEDTOOLS_VERSION=" 2.26.0 "
14
+ BEDTOOLS_VERSION=" 2.27.1 "
15
15
BEDTOOLS_DOWNLOAD_FILENAME=" bedtools-${BEDTOOLS_VERSION} .tar.gz"
16
16
BEDTOOLS_URL=" https://github.com/arq5x/bedtools2/releases/download/v${BEDTOOLS_VERSION} /${BEDTOOLS_DOWNLOAD_FILENAME} "
17
17
Original file line number Diff line number Diff line change @@ -132,8 +132,13 @@ sub _cleanup_fasta {
132
132
open ( my $in , ' <' , $infile );
133
133
open ( my $out , ' >' , $outfile );
134
134
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
+ }
137
142
138
143
if ($line =~ / ^(>[^:]+)/ )
139
144
{
Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ sub _cleanup_fasta {
177
177
open ( my $out , ' >' , $outfile );
178
178
while ( my $line = <$in > ) {
179
179
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
+ }
181
186
182
187
if ($line =~ / ^(>[^:]+)/ )
183
188
{
You can’t perform that action at this time.
0 commit comments