从两个字符之间的fasta基因名称中删除文本
我有一个大型密码子对齐,标题中具有各种基因名称。标题为以下格式:
>ENST00000357033.DMD.-1 | CODON | REFERENC
我想修改FastA中的所有标题,以在第一个“”之后排除所有字符。在第一个“ |”之前。预期的结果:
>ENST00000357033 | CODON | REFERENC
我尝试了一些SED命令,没有骰子。有建议吗?我不愿意使用尴尬,因为我想保持对齐方式的格式和尴尬。
谢谢你!
I have a large codon alignment that has a variety of gene names in the headers. The headers are in the following format:
>ENST00000357033.DMD.-1 | CODON | REFERENC
I want to modify all of the headers in the fasta to exclude all characters after the first "." and before the first "|". Desired outcome:
>ENST00000357033 | CODON | REFERENC
I've tried a few sed commands, no dice. Any advice? I'm averse to using awk, since I'd like to keep the formatting of the alignment and awk scares me.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每行以a'>”开头更换“点”,然后是与空间不同的炭,然后是空间。
for each line starting with a '>' replace 'dot' followed by some char different from spaces followed by a space, by a space.
没有
awk
害怕的neeed:no neeed to be scared by
awk
: