Entering edit mode
7.1 years ago
Jason
▴
10
Hello everybody, I am not and expert with sed and I am sure that someone will do this work faster and better than me.
I would like to edit multiple fasta header from this format.
>NV_000007.1 very long-chain specific acyl-CoA dehydrogenase, mitochondrial isoform 1 precursor [Homo sapiens]
MQAARMAASLGRQLLRLGGGSSRLTALLGQPRPGPARRPYAGGAAQLALDKSDSHPSDALTRKKPAKAES
Result should be like below:
>sp|NV_000007.1|very long-chain specific acyl-CoA dehydrogenase, mitochondrial isoform 1 precursor [Homo sapiens]
MQAARMAASLGRQLLRLGGGSSRLTALLGQPRPGPARRPYAGGAAQLALDKSDSHPSDALTRKKPAKAES