Skip to content
Snippets Groups Projects
Commit 8c4e4634 authored by Arthur Le Bars's avatar Arthur Le Bars
Browse files

Delete phaeoexplorer-change_pep_fasta_header.sh

parent d4a241b8
No related branches found
No related tags found
1 merge request!1Release 1.0
#!/usr/bin/env bash
INFILE=$1
OUTFILE=tmpfile
FILE_HEADER_START=$(grep ">" $INFILE | cut -c 1-6 | sort | uniq)
HEADER_START_STRING=">mRNA."
if [[ "$FILE_HEADER_START" == "$HEADER_START_STRING" ]]
then
/usr/local/genome2/mmo/scripts/common/common-stringSubstitute.py -i $INFILE -o $OUTFILE -p '^>mRNA' -r '>protein'
mv $OUTFILE $INFILE
echo "'>mRNA' replaced by '>protein'"
else
echo "Abort. Not all headers start with '>mRNA.':"
echo "$FILE_HEADER_START"
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment