Hi all,
I have the following input file:
START
Query= TaBa0-000001
>gnl|UG|Ta#S13248438 ug=Ta.24021
>gnl|UG|Ta#S17880947 ug=Ta.8115
>gnl|UG|Ta#S17984398 ug=Ta.29549
Query= TaBa0-000002
>gnl|UG|Ta#S17988614 ug=Ta.30772
>gnl|UG|Ta#S16202639 ug=Ta.25603
>gnl|UG|Ta#S13134499 ug=Ta.16563
>gnl|UG|Ta#S16238874 ug=Ta.10196
Query= TaBa0-000003
>gnl|UG|Ta#S17987015 ug=Ta.28640
>gnl|UG|Ta#S17897903 ug=Ta.27673
END
What I'd line to do is take the Query= header and place it in the same line as the >gnl numbers under it to get the following output format:
START
Query= TaBa0-000001 >gnl|UG|Ta#S13248438 ug=Ta.24021
Query= TaBa0-000001 >gnl|UG|Ta#S17880947 ug=Ta.8115
Query= TaBa0-000001 >gnl|UG|Ta#S17984398 ug=Ta.29549
Query= TaBa0-000002 >gnl|UG|Ta#S17988614 ug=Ta.30772
Query= TaBa0-000002 >gnl|UG|Ta#S16202639 ug=Ta.25603
Query= TaBa0-000002 >gnl|UG|Ta#S13134499 ug=Ta.16563
Query= TaBa0-000002 >gnl|UG|Ta#S16238874 ug=Ta.10196
Query= TaBa0-000003 >gnl|UG|Ta#S17987015 ug=Ta.28640
Query= TaBa0-000003 >gnl|UG|Ta#S17897903 ug=Ta.27673
END
Would anyone have an idea how I might be able to do this?
Thanks for any help.
Cheers,
Giovanni
I have the following input file:
START
Query= TaBa0-000001
>gnl|UG|Ta#S13248438 ug=Ta.24021
>gnl|UG|Ta#S17880947 ug=Ta.8115
>gnl|UG|Ta#S17984398 ug=Ta.29549
Query= TaBa0-000002
>gnl|UG|Ta#S17988614 ug=Ta.30772
>gnl|UG|Ta#S16202639 ug=Ta.25603
>gnl|UG|Ta#S13134499 ug=Ta.16563
>gnl|UG|Ta#S16238874 ug=Ta.10196
Query= TaBa0-000003
>gnl|UG|Ta#S17987015 ug=Ta.28640
>gnl|UG|Ta#S17897903 ug=Ta.27673
END
What I'd line to do is take the Query= header and place it in the same line as the >gnl numbers under it to get the following output format:
START
Query= TaBa0-000001 >gnl|UG|Ta#S13248438 ug=Ta.24021
Query= TaBa0-000001 >gnl|UG|Ta#S17880947 ug=Ta.8115
Query= TaBa0-000001 >gnl|UG|Ta#S17984398 ug=Ta.29549
Query= TaBa0-000002 >gnl|UG|Ta#S17988614 ug=Ta.30772
Query= TaBa0-000002 >gnl|UG|Ta#S16202639 ug=Ta.25603
Query= TaBa0-000002 >gnl|UG|Ta#S13134499 ug=Ta.16563
Query= TaBa0-000002 >gnl|UG|Ta#S16238874 ug=Ta.10196
Query= TaBa0-000003 >gnl|UG|Ta#S17987015 ug=Ta.28640
Query= TaBa0-000003 >gnl|UG|Ta#S17897903 ug=Ta.27673
END
Would anyone have an idea how I might be able to do this?
Thanks for any help.
Cheers,
Giovanni