Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
allow missssing contigs in correspondance file when running convert_G…
Browse files Browse the repository at this point in the history
…FF_coord.sh
  • Loading branch information
cmdoret committed Aug 6, 2018
1 parent e20f8c0 commit 64341b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/convert_coord/convert_GFF_coord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ eval $run_fun <<CONV_COORD
track=( \$line )
# Getting line of corresp file for the contig on current line
corresp=( \$(grep "^\${track[0]}" $CORRESP_GFF | sed 's/,/ /g') )
# If track is not on a chromosome (i.e. contig is not anchored), skip it
if [ -z "\$corresp" ]; then continue; fi
# Replacing contig of current record in memory
track[0]=\${corresp[1]}
# Shift start and end if necessary and flip,
Expand Down

0 comments on commit 64341b9

Please sign in to comment.