Skip to content

Commit

Permalink
Set the reference_fasta attribute in the new test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcam committed Oct 13, 2023
1 parent 8076124 commit a68fd79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/60-autoqc-checks-genotype.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ subtest 'Test early exit' => sub {
my $output_file = "$dir/47646_1#999.genotype.json";
copy('t/data/autoqc/alignment.bam', $input_file);
mkdir("$dir/genotypes");
my $fasta = join q[/], $ref_repos, 'references',
'Homo_sapiens/GRCh38_full_analysis_set_plus_decoy_hla/all/fasta',
'GRCh38_full_analysis_set_plus_decoy_hla.fasta';

# Set the reference_fasta path explicitly, the CI pipeline has
# difficulty inferring it.
my $check = npg_qc::autoqc::checks::genotype->new(
rpt_list => '47646:1:999',
input_files => [$input_file],
qc_out => $dir,
repository => $ref_repos,
genotypes_repository => "$dir/genotypes"
genotypes_repository => "$dir/genotypes",
reference_fasta => $fasta
);
isa_ok ($check, 'npg_qc::autoqc::checks::genotype');
lives_ok { $check->run() } 'check executed';
Expand Down

0 comments on commit a68fd79

Please sign in to comment.