Skip to content

Commit

Permalink
Fixed bug affecting VCF files where one or more contig names contain …
Browse files Browse the repository at this point in the history
…# characters
  • Loading branch information
nhansen committed Aug 11, 2021
1 parent 0214039 commit fbb554c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/SVbenchmark
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ sub construct_variant_command {
my $filterstring = shift;

my $command = ($bedfile) ? "bedtools intersect -a $vcf_file -b $bedfile -u -wa | " :
(($vcf_file =~ /\.gz$/) ? "gunzip -c $vcf_file | grep -v \'#\' | " :
"grep -v \'#\' $vcf_file | ");
(($vcf_file =~ /\.gz$/) ? "gunzip -c $vcf_file | grep -v \'^#\' | " :
"grep -v \'^#\' $vcf_file | ");

if ($filterstring) {
$command .= "awk -F\"\\t\" \'\$7==\"" . $filterstring . "\" {print}\' | ";
Expand Down

0 comments on commit fbb554c

Please sign in to comment.