Skip to content

Commit 4edff97

Browse files
authored
Merge pull request #156 from FelixKrueger/dev
Fixed essential bug for decompression default path
2 parents 94a1030 + 65da16a commit 4edff97

File tree

2 files changed

+54
-44
lines changed

2 files changed

+54
-44
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Trim Galore Changelog
22

3+
### Version 0.6.10 (Release on 02 Feb 2023)
4+
5+
- Fixed a missing default value of `gzip` as the default decompression path (see [here](https://github.com/FelixKrueger/TrimGalore/commit/a3c6a64ae71657f1a282e01134293e424177a7d5)).
6+
7+
### Version 0.6.9 (Release on 29 Jan 2023)
8+
9+
- Fixed a decalaration bug for `maxn_fraction` which had crept in during merging of different branches (see [here](https://github.com/FelixKrueger/TrimGalore/commit/cf9a9d97b723d3829dd902f1229d9c9b7cff8ba0)).
10+
311
### Version 0.6.8 (Release on 28 Jan 2023)
412

513
- Added new option `--stranded_illumina` to allow trimming of the adapter sequence `ACTGTCTCTTATA` (whick looks like the Nextera sequence but with an additional A from A-tailing). See also here: https://github.com/FelixKrueger/TrimGalore/issues/127.

trim_galore

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ use Cwd;
3232
my $DOWARN = 1; # print on screen warning and text by default
3333
BEGIN { $SIG{'__WARN__'} = sub { warn $_[0] if $DOWARN } };
3434

35-
my $trimmer_version = '0.6.9';
36-
my $last_modified = "29 01 2023";
35+
my $trimmer_version = '0.6.10';
36+
my $last_modified = "02 02 2023";
3737

3838
my $cutadapt_version;
3939
my $python_version;
4040

4141

4242
my ($compression_path,$decompression_path,$cores,$cutoff,$adapter,$stringency,$rrbs,$length_cutoff,$keep,$fastqc,$non_directional,$phred_encoding,$fastqc_args,$trim,$gzip,$validate,$retain,$length_read_1,$length_read_2,$a2,$error_rate,$output_dir,$no_report_file,$dont_gzip,$clip_r1,$clip_r2,$three_prime_clip_r1,$three_prime_clip_r2,$nextera,$stranded_illumina,$small_rna,$path_to_cutadapt,$illumina,$max_length,$maxn,$maxn_fraction,$trim_n,$hardtrim5,$clock,$polyA,$hardtrim3,$nextseq,$basename,$consider_already_trimmed,$umi_from_r2) = process_commandline();
4343

44+
4445
my $report_message; # stores result of adapter auto-detection
4546

4647
my @filenames = @ARGV;
@@ -2306,10 +2307,10 @@ sub autodetect_polyA_type{
23062307
warn "Attempting to auto-detect PolyA type from the first 1 million sequences of the first file (>> $ARGV[0] <<)\n\n";
23072308

23082309
if ($ARGV[0] =~ /gz$/){
2309-
open (AUTODETECT,"$decompression_path -d -c $ARGV[0] |") or die "Failed to read from file $ARGV[0]\n";
2310+
open (AUTODETECT,"$decompression_path -d -c $ARGV[0] |") or die "Failed to read from file $ARGV[0]\n";
23102311
}
23112312
else{
2312-
open (AUTODETECT,$ARGV[0]) or die "Failed to read from file $ARGV[0]\n";
2313+
open (AUTODETECT,$ARGV[0]) or die "Failed to read from file $ARGV[0]\n";
23132314
}
23142315

23152316
my %adapters;
@@ -2392,42 +2393,42 @@ sub autodetect_polyA_type{
23922393
###########################################################################
23932394

23942395
sub process_commandline{
2395-
my $help;
2396-
my $quality;
2397-
my $adapter;
2398-
my $adapter2;
2399-
my $stringency;
2400-
my $report;
2401-
my $version;
2402-
my $rrbs;
2403-
my $length_cutoff;
2404-
my $keep;
2405-
my $fastqc;
2406-
my $non_directional;
2407-
my $phred33;
2408-
my $phred64;
2409-
my $fastqc_args;
2410-
my $gzip;
2411-
my $validate;
2412-
my $retain;
2413-
my $length_read_1;
2414-
my $length_read_2;
2415-
my $error_rate;
2416-
my $output_dir;
2417-
my $no_report_file;
2418-
my $suppress_warn;
2419-
my $dont_gzip;
2420-
my $clip_r1;
2421-
my $clip_r2;
2422-
my $three_prime_clip_r1;
2423-
my $three_prime_clip_r2;
2424-
my $nextera;
2425-
my $stranded_illumina; # added on 15 Jan 2022; https://support.illumina.com/bulletins/2020/06/trimming-t-overhang-options-for-the-illumina-rna-library-prep-wo.html
2426-
my $small_rna;
2427-
my $illumina;
2428-
my $path_to_cutadapt;
2429-
my $max_length;
2430-
my $maxn;
2396+
my $help;
2397+
my $quality;
2398+
my $adapter;
2399+
my $adapter2;
2400+
my $stringency;
2401+
my $report;
2402+
my $version;
2403+
my $rrbs;
2404+
my $length_cutoff;
2405+
my $keep;
2406+
my $fastqc;
2407+
my $non_directional;
2408+
my $phred33;
2409+
my $phred64;
2410+
my $fastqc_args;
2411+
my $gzip;
2412+
my $validate;
2413+
my $retain;
2414+
my $length_read_1;
2415+
my $length_read_2;
2416+
my $error_rate;
2417+
my $output_dir;
2418+
my $no_report_file;
2419+
my $suppress_warn;
2420+
my $dont_gzip;
2421+
my $clip_r1;
2422+
my $clip_r2;
2423+
my $three_prime_clip_r1;
2424+
my $three_prime_clip_r2;
2425+
my $nextera;
2426+
my $stranded_illumina; # added on 15 Jan 2022; https://support.illumina.com/bulletins/2020/06/trimming-t-overhang-options-for-the-illumina-rna-library-prep-wo.html
2427+
my $small_rna;
2428+
my $illumina;
2429+
my $path_to_cutadapt;
2430+
my $max_length;
2431+
my $maxn;
24312432
my $trimn;
24322433
my $hardtrim5;
24332434
my $hardtrim3;
@@ -2437,6 +2438,7 @@ sub process_commandline{
24372438
my $basename;
24382439
my $cores;
24392440
my $compression_path;
2441+
my $decompression_path = 'gzip'; # default
24402442
my $consider_already_trimmed;
24412443
my $implicon;
24422444

@@ -2643,8 +2645,8 @@ VERSION
26432645
$decompression_path = "pigz -p 4";
26442646
}
26452647
else {
2646-
$decompression_path = "pigz -p $cores";
2647-
}
2648+
$decompression_path = "pigz -p $cores";
2649+
}
26482650
}
26492651
else {
26502652
warn "Proceeding with 'gzip' for compression. PLEASE NOTE: Using multi-cores for trimming with 'gzip' only has only very limited effect! (see here: https://github.com/FelixKrueger/TrimGalore/issues/16#issuecomment-458557103)\n";
@@ -2668,7 +2670,7 @@ VERSION
26682670
$decompression_path = "igzip";
26692671
}
26702672
else {
2671-
warn "Proceeding with '$decompression_path' for decompression.";
2673+
warn "Proceeding with '$decompression_path' for decompression\n";
26722674
warn "To decrease CPU usage of decompression, please install 'igzip' and run again\n\n";
26732675
}
26742676

@@ -3471,7 +3473,7 @@ Paired-end specific options:
34713473
'.unpaired_2.fq' output file. These reads may be mapped in single-end mode.
34723474
Default: 35 bp.
34733475
3474-
Last modified on 29 Jan 2023.
3476+
Last modified on 02 02 2023.
34753477
34763478
HELP
34773479
exit;

0 commit comments

Comments
 (0)