Skip to content

Commit

Permalink
Handle stop codons properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdunne committed Mar 26, 2017
1 parent 75a7341 commit 6c980f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

function alandavies {
paste <(grep ">" $1 | sed -r "s/$/\t###/g" | column -t -n -s $'\t' | sed -r "s/###//g") <(sed -r "s/^>(.*)$/£££>\1##K-STQNAILMFWVCRCEDGHYP###/g" $1 | tr '\n' ' ' | sed -r "s/£££/\n/g" | sed -r "s/ //g" | grep -v "\*[A-Z]" | grep -vP "^$" |
paste <(grep ">" $1 | sed -r "s/$/\t###/g" | column -t -n -s $'\t' | sed -r "s/###//g") <(sed -r "s/^>(.*)$/£££>\1##K-STQNAILMFWVCRCEDGHYP###/g" $1 | tr '\n' ' ' | sed -r "s/£££/\n/g" | sed -r "s/ //g" | grep -vP "^$" |
GREP_COLORS='mt=01;41' egrep --color=always "[K]*" | \
GREP_COLORS='mt=0;0' egrep --color=always "[-]" | \
GREP_COLORS='mt=01;42' egrep --color=always "[STQN]" | \
Expand Down

0 comments on commit 6c980f3

Please sign in to comment.