Skip to content

Commit

Permalink
Fix for dots in sample names
Browse files Browse the repository at this point in the history
I used parameter expansion, seen here: https://unix.stackexchange.com/a/217632
  • Loading branch information
rpetit3 authored Apr 28, 2021
1 parent 5703308 commit 40521e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agrvate
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@



version="1.0"
version="1.0.1"
USAGE=$(echo -e "\n\
AgrVATE: Agr Variant Assessment & Typing Engine \n\n\
VERSION: agrvate v$version \n\n\
Expand Down Expand Up @@ -135,7 +135,7 @@ if [[ -f $fasta_path ]] #Check if input is a file
then
if [[ $(grep -v ">" $fasta_path | grep -q -i "[^ATCGNWSMKRY]"; echo $?) -eq 1 ]] #check if seqence has characters other than ATGCN
then
fna_name=$(echo "$bname" | cut -f1 -d".")
fna_name="${bname%.*}"
input_check="pass"
else
1>&2 echo -e "Seqence has non-standard nucleic acid characters\n$USAGE"
Expand Down

0 comments on commit 40521e7

Please sign in to comment.