I see!
A Blog for things related to Linux, Python, R, Shell scripting, bioinformatics, etc.
Showing posts with label
change case
.
Show all posts
Showing posts with label
change case
.
Show all posts
2013-07-19
How to convert fasta file to uppercase/lowercase, without altering the annotation line
This awk-oneliner converts all lines which do not contain a '>' in the beginning to upper case:
$ awk '{ if ($0 !~ />/) {print toupper($0)} else {print $0} }'
name.fasta
Older Posts
Home
Subscribe to:
Posts (Atom)