Skip to content

Commit

Permalink
Merge pull request #22 from eastgenomics/fix_intersect_bug
Browse files Browse the repository at this point in the history
fix bug on intersecting
  • Loading branch information
mattgarner authored Mar 23, 2021
2 parents 823793b + 8b051c6 commit c0fcfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/annotate_bed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ outfile=$(basename $bp_coverage)
outfile=${outfile/.per-base.bed.gz/_annotated.bed}

# add gene and exon annotation to panel bed file from exons nirvana tsv
bedtools intersect -a $input_bed -b $gene_file -wa -wb | awk 'OFS="\t" {if ($4 == $9) print}' | cut -f 1,2,3,8,9,10 > ${tmp}.txt
bedtools intersect -f 1.0 -r -a $input_bed -b $gene_file -wa -wb | awk 'OFS="\t" {if ($4 == $9) print}' | cut -f 1,2,3,8,9,10 > ${tmp}.txt

# add coverage annotation from per base coverage bed file
bedtools intersect -wa -wb -a $tmp.txt -b $bp_coverage | cut -f 1,2,3,4,5,6,8,9,10 > $outfile
Expand Down

0 comments on commit c0fcfea

Please sign in to comment.