-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CRAM reference to the options in the wrapper.
Relates to #54
- Loading branch information
Andrewss
authored and
Andrewss
committed
Aug 18, 2020
1 parent
36d48a4
commit 26f7005
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ if ($^O =~/darwin/) { | |
my $version; | ||
my $help; | ||
my $outdir; | ||
my $reference; | ||
my $unzip; | ||
my $format; | ||
my $contaminant; | ||
|
@@ -110,6 +111,7 @@ my $result = GetOptions('version' => \$version, | |
'nogroup' => \$nogroup, | ||
'expgroup' => \$expgroup, | ||
'outdir=s' => \$outdir, | ||
'reference=s' -> \$reference, | ||
'extract!' => \$unzip, | ||
'format=s' => \$format, | ||
'threads=i' => \$threads, | ||
|
@@ -146,6 +148,14 @@ if ($outdir) { | |
push @java_args ,"-Dfastqc.output_dir=$outdir"; | ||
} | ||
|
||
if ($reference) { | ||
unless(-e $reference and -f $reference) { | ||
die "Specified reference file '$reference' does not exist\n"; | ||
} | ||
|
||
push @java_args ,"-Dfastqc.reference=$reference"; | ||
} | ||
|
||
if ($contaminant) { | ||
unless (-e $contaminant and -r $contaminant) { | ||
die "Contaminant file '$contaminant' did not exist, or could not be read\n"; | ||
|
@@ -387,7 +397,12 @@ DESCRIPTION | |
-f --format Bypasses the normal sequence file format detection and | ||
forces the program to use the specified format. Valid | ||
formats are bam,sam,bam_mapped,sam_mapped and fastq | ||
formats are bam,sam,cram,bam_mapped,sam_mapped,cram_mapped | ||
and fastq | ||
-r --reference Only relevant when parsing CRAM files. Specifies a fasta format | ||
file of reference sequences which can be used to decode the | ||
CRAM entries. | ||
-t --threads Specifies the number of files which can be processed | ||
simultaneously. Each thread will be allocated 250MB of | ||
|
@@ -427,6 +442,6 @@ DESCRIPTION | |
BUGS | ||
Any bugs in fastqc should be reported either to [email protected] | ||
or in www.bioinformatics.babraham.ac.uk/bugzilla/ | ||
or in https://github.com/s-andrews/fastqc/issues | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters