我需要一个 Perl 脚本来连接该行..
我有 1000 多个基因名称 (>pmpI) 及其功能(多态性外膜蛋白)在单独的行中,我希望在基因名称附近加入基因的功能,以便将来轻松可视化并保存以供进一步参考。
例如:文件内容看起来像这样
>pmpG
polymorphic outer membrane protein
>pmpH
polymorphic outer membrane protein
>CTA_0953
hypothetical protein
>pmpI
polymorphic outer membrane protein
我尝试在 excel 中手动进行手动操作,但对于许多文件来说这是不可能的,所以我想从程序员那里获得帮助..
我需要 Perl 脚本来连接这些行
程序输出应该是这样的:
>pmpG polymorphic outer membrane protein
>pmpH polymorphic outer membrane protein
>CTA_0953 hypothetical protein
>pmpI polymorphic outer membrane protein