Skip to content

Commit

Permalink
Support .bai by normalizing index name (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher authored Apr 26, 2021
1 parent 2bfca08 commit f0ecb0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/docker/RNApeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ while [ ! -z "$1" ]; do
shift
done

bam_dir=$(dirname ${BAMFILE})
bam_name=$(basename ${BAMFILE} ".bam")
if [[ -f "${bam_dir}/${bam_name}.bai" ]]
then
ln -s ${bam_dir}/${bam_name}.bai ${BAMFILE}.bai
fi

#######################
### Validate inputs ###
Expand Down

0 comments on commit f0ecb0a

Please sign in to comment.