Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"gi" headers deprecated by NCBI #14

Open
tony-travis opened this issue Jan 30, 2020 · 0 comments
Open

"gi" headers deprecated by NCBI #14

tony-travis opened this issue Jan 30, 2020 · 0 comments

Comments

@tony-travis
Copy link

tony-travis commented Jan 30, 2020

The current NCBI fasta format uses "gb" (Genbank) headers, which are not compatible with vip_db_format.pl, which produces an empty /work/VIP/FAST/vip_fast.fa.formatted file. The following patch extracts the accessions instead of "gi" numbers:

diff -Naur vip_db_format.pl.dist vip_db_format.pl
--- vip_db_format.pl.dist	2020-01-29 12:45:01.243718605 +0100
+++ vip_db_format.pl	2020-01-30 23:04:16.116854880 +0100
@@ -1,4 +1,5 @@
 #!/usr/bin/perl -w
+#@(#)vip_db_format.pl  2020-10-30  last modified by A.J.Travis
 #
 #	vip_db_format.pl
 #
@@ -27,7 +28,7 @@
 
 while (<FL>) {
 	chomp;
-	if (/.*(gi\|[0-9]*\|).*?\n(.*)/si) {
+	if (/.*(gb\|[^|]*\|).*?\n(.*)/si) {
 	#if (/.*?(gi\|[0-9]*\|).*?\n(.*)/si) {
 		my $gi = lc($1);
 		my $seq = $2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant