Entering edit mode
8.5 years ago
poonam.bi01
▴
20
i have fasta file like this:
>1001796365 4.F.1.1.5
MDSIRPATFQIPAAVRELGWAALLLFFVLLSVHEWFSPPGWFGLLAILIFATQGALILTR
WPARQNFGWANRTTLLRSILVVSLVAWAPFLPAADSSALWIYGVACLIALILDGVDGKVA
>1002048002 2.A.4.2.8
MSPSRTARLYFLLVLDLLFFVLEISIGYAVGSLALVADSFHMLNDVVSLIIALYAIKLAA
SSTPTTRYSYGWHRAEILAALVNGVFLLALCFTITLEALERFFSTPEISNPKLIVLVGSL
>1002048004 2.A.4.5.2
IASDIRRILHRHGIHSSTIQPEYHPVRDTILEERSKDVNCLISCPPDSACCEVQACCPSY
AGT
header order in fasta sequence :
>+first_id then+\t+second_id
i want my sequence in this formate:
>4.F.1.1.5
MDSIRPATFQIPAAVRELGWAALLLFFVLLSVHEWFSPPGWFGLLAILIFATQGALILTR
WPARQNFGWANRTTLLRSILVVSLVAWAPFLPAADSSALWIYGVACLIALILDGVDGKVA
>2.A.4.2.8
MSPSRTARLYFLLVLDLLFFVLEISIGYAVGSLALVADSFHMLNDVVSLIIALYAIKLAA
SSTPTTRYSYGWHRAEILAALVNGVFLLALCFTITLEALERFFSTPEISNPKLIVLVGSL
>2.A.4.5.2
IASDIRRILHRHGIHSSTIQPEYHPVRDTILEERSKDVNCLISCPPDSACCEVQACCPSY
AGT
only
>+second_id+\n+sequence
The greater-than sign gets auto-formatted I think, so I guess the post doesn't reflect what OP had in mind.