VI: format your custom database by replace function

By Haktan Suren, PhD
In Blog
Oct 3rd, 2012
0 Comments
3992 Views

Couple days ago, I used nucleotide seqs from JGI website and had to create my own blast database. Before I do that, I had to get rid of some of the extra defline info that makes sense only for JGI. I did it with VIM editor

Usage:

%s/search_pattern/replace_pattern/g

Example:

%s/jgi|Poptr1_1|[0-9]*//g

Enjoy!

About the Author

Haktan Suren, PhD
- Webguru, Programmer, Web developer, and Father :)

Wrap your code in <code class="{language}"></code> tags to embed!

Leave a Reply

E-mail address is required for commenting. However, it won't be visible to other users.

Loading Facebook Comments ...
Loading Disqus Comments ...