how to change >header in to new line??
1
0
Entering edit mode
21 months ago
Neel ▴ 20

Hi, i want each >header start with new line, however in my file it is present in continuous.

>AF-A0A5K1SIW4-F1-model_v4
MSLQPLQPRYKPYAGAAAGWGALRSVAHFWLDSKQPFKNLRALLKTNQNGGFDCPGCAWGDSPEDGRVKFCENGAKAVNW
EATKRRVDAAFFARYSVSALREQSDYWLEYQGRLTGPMRYDPLSDHYQPITWDAAFALVAEHLRRLDSPDQAEFYTSGRA
SNEAAYLYQLFVRAFGTNNFPDCSNMCHEASGVALGRSVGVGKGSVTFDDFEHADAIFILGQNPGTNHPRMLEPLREAVK
RGAQVVCFNPLKERGLERFQHPQNALEMLTNGSSPLNTAFFRPALGGDMAAIRGIAKFLLAWEREAQAEGSEPVFDHAFI
AEHTDGLEAYLAELDATPWEHLERQSGLGLAEIEQAARMYRRANRVIVCWAMGITQHHHSVAIIQEIVNLQLLRGNLGRP
GAGLCPVRGHSNVQGDRTMGINERPPAALLDALERRFGFEVPRHNGHNAVEAIAAMLAGKSKVFIGLGGNFAQATPDSPR
THAALASCDLTVHISTKLNRSHLTTGRDALILPCLGRTDIDRQAEGPQAVTVEDSFSMIHASYGQLEPLSQQMRSEPAII
AGIAKATLGNHPVDWDALIANYERIRELIADTIPGFADFNRRVRHPGGFYLGNSAGERRWNTASGKANFVANPLPRDLLP
AQVRDSGLEPDLILQTLRSHDQYNTTIYGLDDRYRGVKGQREVVFANEADIRRLGYQPGDKVDLVSLWSDGIERRVRRFT
LLAFDIPAGQAAAYYPETNPLVPLESVGVGSRTPTSKFIAVRLEKATGDGRII>AF-A0A6H3G416-F1-model_v4
MNAHANKGFASRIGYALGAAVRFIAFDDQPTRRWAKRLVLLTLASLVLYFSFSWVAGVVLNLICIVLVLLAISKVDTARL
SNSSDTPKAPHGRDVFGYKLDWLGHRVEYRDIEHRD>**AF-A0A0A8RCM0-F1-model_v4**
MSFSSLGLSEALARAVEAAGYSQPTPVQQRAIPAVLQGRVLMVAAQTGTGKTGGFALPV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AGRNGSHYVTYTSPLPGNES
VMVPKLSYTLYLPKWDMVIGSAINLDGVEAQLVEIKQDIDERIGTLIASIVGIAGVLLVVLLVIGLAVANAMLRPLHQIR
QNLDDIAAGEGDLTRRLPVTSHDELGELAGSFNRFVEKIHGLVRQIAGMTGDLKQLVEQMSAQAERSEQAMERQRHETDQ
VATAINEMSAAAHEVAQSAQRAAEAAQQTDHEGQAAKRVVDGSIERIHALVDEIRDSGTSLDSLQQDVQSIVSVLGVIRS
IAEQTNLLALNAAIEAARAGEAGRGFAVVADEVRALASRTQQSTQEIQGMIDRLQQGTNAAVDAMRRSGEAGEGTSSQAN
QAGDSLDAIAQLIATINAMNAQIASAAEEQTAVAEEINRSVHQIAGAVDSVADEAQQGAQTARSLAQLGQGLGRLVGQFR
I>AF-Q93TY2-F1-model_v4

thank you!

fasta • 653 views
ADD COMMENT
0
Entering edit mode
21 months ago
GenoMax 147k
cat your file | sed 's/.>/\n>/' > new.fa 

or

sed 's/.>/\n>/'  file.fa > new.fa 
ADD COMMENT
0
Entering edit mode

Thank you so much it work.

ADD REPLY
0
Entering edit mode

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work. This will help future users that might find this post find the right answer.

upvote_bookmark_accept

ADD REPLY

Login before adding your answer.

Traffic: 2701 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6