-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taxonomy.pm
780 lines (608 loc) · 26.1 KB
/
Taxonomy.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
#
# Module for Taxonomy methods
#
# Please direct questions and support issues to <[email protected]>
#
# Maintained by Paul Cantalupo <pcantalupo-at-gmail-dot-com>
#
# Copyright Paul Cantalupo
#
# You may distribute this module under the same terms as perl itself
# POD documentation - main docs before the code
=head1 NAME
Taxonomy - gets taxonomy information from NCBI (and other stuff too...)
=head1 SYNOPSIS
use strict;
use Taxonomy;
# get a GI from an accession
# accession can be several different formats: J02400, gb|J02400|
my $acc = 'J02400';
my $gi = acc2gi($acc);
print $gi, "\n";
# get a Taxid from a GI
my $taxid = gi2taxid($gi);
=head1 DESCRIPTION
Taxonomy module is a set of functions to help the user obtain taxonomy
information from NCBI. It provides a function to convert an accession
number into a GI number. Then that GI number can be used to obtain the
Taxid. With the Taxid, the user is able to get lineage information for that
Taxid (i.e. Viruses; ssRNA viruses; Virgaviridae; Tobamovirus; PepperMild
Mottle virus).
Taxonomy can also tell if a sequence is Virus, Phage, Bacteria, Human,
Mouse, etc. Additionally, it knows the Genome type for each virus family.
Taxonomy relies upon NCBI's Eutils for data retrieval so you need to have an
Internet connection for those functions to work.
=head1 FEEDBACK
=head2 Support
Please direct usage questions or bugs to I<pcantalupo-at-gmail-dot-com>
=head1 AUTHOR - Paul Cantalupo
Email pcantalupo-at-gmail-dot-com
=head1 SUNDRY ITEMS
Taxid's of some common organisms (This library doesn't use these but I'm
keeping this info here for future reference)
=over
=item Bacteria
2
=item Archaea
2157
=item Homo sapiens
9606
=item Mus musculus
10090
=item Fungi
4751 (cellular organisms; Eukaryota; Fungi/Metazoa group; Fungi;)
=back
=head1 SEE ALSO
Other modules that do some similar stuff: Bio::Taxon, Bio::DB::Taxonomy
=head1 TODO
=head1 APPENDIX
The rest of the documentation details each of the object methods. Internal
methods are usually preceded with a _
=cut
#
# Let the code begin...
package Taxonomy;
use strict;
use warnings;
use Bio::DB::EUtilities;
use XML::Simple;
use Exporter;
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw(gi2taxid
taxid2lineage
gi2lineage
accession2gi
gi2acc
lineage2tfs
get_virus_family
is_phage
is_phage_family
get_genome_type
);
# GLOBALS
my $NOFAMILY = "NoFamily";
=head2 accession2gi
Title : accession2gi
Usage : $gi = acc2gi('J02400');
Function : Returns a GI number from an accession number.
Returns : A scalar (GI number)
undef when argument is NOT TRUE (i.e. '', 0, undef)
empty string when no GI is found
Args : an accession number in the following formats:
J02400 - naked accession
gb|J02400| - full fasta identifier (gotta be a better name for this)
May not work with all non-genbank accession numbers. For
example, it does not work with naked PDB accession numbers like
2FL8 but OK if it is the full fasta identifier: pdb|2FL8|A
Errors : When submitting a malformed request (i.e. an invalid accession
number like 'XYZ', method will throw an error and exit)
=cut
sub accession2gi {
# example URI that BioPerl sends to efetch for gb|J02400| (i.e. SV40)
# "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide
# &retmode=text&id=gb%7CJ02400.1%7C&rettype=gi&tool=BioPerl&email=pcantalupo%40gmail.com"
my ($acc) = @_;
return unless ($acc);
my $factory = Bio::DB::EUtilities->new(-eutil => 'efetch',
-db => 'nucleotide', # don't need to change this to Protein for protein accessions, it seems to work fine by keeping it set to 'nucleotide'
-id => [ $acc ],
-email => '[email protected]',
-rettype => 'gi');
my $gi = $factory->get_Response->content;
chomp $gi;
return $gi;
}
=head2 gi2acc
Title : gi2acc
Usage : $acc = gi2acc(965480);
Function : Returns an accession.version from a GI number
Returns : A scalar (Acc.Version value)
Args : a GI number
=cut
sub gi2acc {
my ($gi) = @_;
return unless ($gi);
my $factory = Bio::DB::EUtilities->new(-eutil => 'efetch',
-db => 'nucleotide', # don't need to change this to Protein for protein accession, it works ok keeping set to 'nucleotide'
-id => [ $gi ],
-email => '[email protected]',
-rettype => 'acc');
my $acc = $factory->get_Response->content;
chomp $acc;
return $acc;
}
=head2 gi2taxid
Title : gi2taxid
Usage : $taxid = gi2taxid('965480');
Function : Obtain a Taxid (NCBI Taxonomy identifier) from a GI number
Returns : A scalar. Return value can be undef if the Taxid of the GI
record is empty or if there is no TaxId item in the Document
summary or if no GI was given when subroutine was called
Args : a GI number
=cut
sub gi2taxid {
# here is an example of the URL that this subroutine will send:
# http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=nucleotide&id=965480&email=pcantalupo%40gmail.com&retmode=text
# example gi 965480 (SV40 J02400) -> taxid = 10633
my ($gi, $database) = @_;
return unless ($gi);
$database ||= "nucleotide";
my $factory = Bio::DB::EUtilities->new(-eutil => 'esummary',
-email => '[email protected]',
-db => $database,
-id => [ $gi ],
);
# iterate through the individual DocSum objects (one per ID)
while (my $ds = $factory->next_DocSum) {
# flattened mode, iterates through all Item objects
while (my $item = $ds->next_Item('flattened')) {
if ($item->get_name eq 'TaxId') {
return $item->get_content;
}
}
}
return; # No item called 'TaxID' existed in the XML document or no DocSums in factory
}
=head2 taxid2lineage
Title : taxid2lineage
Usage : @lineage = taxid2lineage('10633');
Function : Returns the lineage of a Taxid
Returns : List context: an array containing the lineage information from General to Specific
Scalar context: elements of the array are joined with '; ' (mind the space)
If the Tax ID is not found, returns "Empty id list - nothing
todo" and returns undef if the argument is NOT true (i.e. '',
0, undef)
Args : a Taxid (Taxonomy database ID)
=cut
sub taxid2lineage {
# here is an example of the URL that this subroutine will send (i.e. SV40):
# http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=taxonomy&
# id=10633&email=pcantalupo%40gmail.com&retmode=xml
my ($id) = @_;
return unless ($id);
my $factory = Bio::DB::EUtilities->new(-eutil => 'efetch',
-db => 'taxonomy',
-email => '[email protected]',
-id => [ $id ],
);
my $res = $factory->get_Response->content;
my $data = XMLin($res);
if (!ref($data)) {
# if a Tax id doesn't exist in the Taxonomy database, the string
# "<ERROR>Empty id list - nothing todo</ERROR>" is returned and $data
# becomes "Empty id list - nothing todo". Therefore, just return the
# string value of $data back to caller who can deal with it
return $data;
}
# Lineage tag in XML has a value that matches structure of the ORGANISM
# field in Genbank records (i.e. Viruses; dsDNA viruses; Polyomaviridae,
# etc..). If there is no Lineage, the value is a HASH ref that points to an
# empty hash.
my $lineage;
unless (ref $data->{Taxon}->{Lineage}) {
$lineage = $data->{Taxon}->{Lineage};
}
# add the Species to the end of lineage.
$lineage = ($lineage) ?
join("; ", $lineage, $data->{Taxon}->{ScientificName} ) :
$data->{Taxon}->{ScientificName};
# lineage for Non-A non-B hepatits virus is wrong so we need to change it
# here
if ($id == 12440) {
$lineage = join("; ", "phage", "Inoviridae", "Non-A, non-B hepatitis virus");
}
return wantarray ? split(/; /, $lineage) : $lineage;
}
=head2 gi2lineage
Title : gi2lineage
Usage : $lineage = gi2lineage('965480');
Function : Returns the lineage of a GI. Acts as a wrapper around gi2taxid
and taxid2lineage
Returns : List context: an array containing the lineage information from General to Specific
Scalar context: elements of the array are joined with '; ' (mind the space)
If cannot get Taxid or Lineage, returns "".
If argument to subroutine is NOT true (i.e. '', 0, undef), returns undef
Args : a GI number
=cut
sub gi2lineage {
my ($gi) = @_;
return unless ($gi);
my @lineage = ();
my $taxid;
my $max = 3; # max number attempts to get taxid from NCBI
my $i = 0;
do {
undef $@;
eval { $taxid = gi2taxid($gi); }; # gi2taxid from this module
} while ($@ && ++$i <= $max);
unless (defined $taxid) {
print STDERR "gi2lineage: Problem getting taxid from GI:$gi :\n$@";
return "";
}
do {
undef $@;
eval { @lineage = taxid2lineage($taxid); }; # taxid2lineage from this module
} while ($@);
if ($lineage[0] =~ /^Empty id list|Error occurred/) {
chomp $lineage[0];
print STDERR "gi2lineage: Problem getting lineage for taxid $taxid: $lineage[0]\n";
return "";
}
return wantarray ? return @lineage : join("; ", @lineage);
}
=head2 lineage2tfs
Title : lineage2tfs
Usage : ($type, $family, $species) = lineage2tfs($lineage);
Function : To determine the Type, Family and Species from a Lineage
Returns : An array (type, family, species). 'Type' values are human,
mouse, phage, virus, bacteria, fungi, and other. If no family
is found then family = 'NoFamily'. Returns undef if the
argument is NOT true
Args : String that is delimited by '; ' (i.e. Viruses; dsDNA;
Parvoviridae). The lineage string must go from General to
Specific with the last field being the Species name
=cut
sub lineage2tfs {
my $lineage = shift;
return unless ($lineage);
my @taxa = split (/; /, $lineage);
my $species = $taxa[-1];
# Improperly classified agents list
my %bad = ( "Non-A, non-B hepatitis virus" =>
[ "phage", "Inoviridae", "Non-A, non-B hepatitis virus" ],
"Helicobacter pylori GAMchJs117Ai" =>
[ "phage", "Microviridae", "Enterobacteria phage phiX174" ],
"Helicobacter pylori GAMchJs114i" =>
[ "phage", "Microviridae", "Enterobacteria phage phiX174" ],
);
if (exists $bad{$species}) {
return @{$bad{$species}};
}
# Check for Virus or Phage
if ($taxa[0] =~ /Viruses/i || $taxa[0] =~ /Viroids/i) {
my $PHAGE = "phage";
my $type = "virus"; # default to virus unless we prove it is a phage
$type = $PHAGE if is_phage(@taxa);
return ($type,
get_virus_family(@taxa[0..$#taxa-1]),
$species);
}
# Check for Bacteria/Archaea
if ($taxa[1] eq "Bacteria") {
return ("bacteria", $NOFAMILY, $species);
} elsif ($taxa[1] eq "Archaea") {
return ("archaea", $NOFAMILY, $species);
}
# Check for Human and Fungi
# 1. check for human
if ($species =~ /Homo sapiens/i) {
return ("human", $NOFAMILY, $species);
}
# 2. check for fungi
foreach my $taxa (@taxa) {
if ($taxa eq "Fungi") {
return ("fungi", $NOFAMILY, $species);
}
}
# Return 'other' type for the 'Other', and 'Unclassified'
# kingdoms plus the subset of Eukaryota that are not Human or Fungi
return ("other", $NOFAMILY, $species);
}
=head2 get_virus_family
Title : get_virus_family
Usage : $virusfamily = get_virus_family(@lineage);
Function : Get the first 'viridae', 'virus', or 'virales' from the lineage
array (General to Specific).
Returns : A string (family name)
Args : An ordered array from General to Specific. Also the array
should not have a species name as the last element of the array
unless the caller really wants to parse that field for a family
name
=cut
sub get_virus_family {
my @taxa = @_;
my $viridae = '';
my $virus = '';
my $virales = '';
my $satellite = '';
foreach (@taxa) {
if (/viridae$/i) {
$viridae = $_ unless $viridae;
}
if (/virus$/i) {
$virus = $_ unless $virus;
}
if (/virales$/i) {
$virales = $_ unless $virales;
}
if (/satellites/i) {
$satellite = $_ unless $satellite;
}
}
$viridae =~ s/^(unclassified\s+|unassigned\s+)//;
return $viridae || $virales || $virus || $satellite || $NOFAMILY;
}
=head2 is_phage
Title : is_phage
Usage : $isphage = is_phage(@lineage)
Function : To determine if the lineage of organism is a phage or not.
Returns : An integer - 1 it is a phage or 0 it is NOT a phage
Args : Array containing lineage information that goes from general to
specific (last element must be the species name)
=cut
sub is_phage {
my @taxa = @_;
my $species = pop @taxa;
# check known phage families first
my $family = get_virus_family(@taxa);
if (is_phage_family($family)) {
return 1;
} elsif ($species =~ /phage/i && $family eq "NoFamily") {
# will catch phages that are "NoFamily" and have 'phage' in their species name
return 1;
} else {
foreach (@taxa) {
if ($_ eq "unclassified phages") { # this is for those phages that don't have "phage" in their species name (i.e. Geobacillus virus E2)
return 1;
}
}
}
return 0;
}
=head2 is_phage_family
Title : is_phage_family
Usage : $isphagefamily = is_phage_family($familyname)
Function : Determines if the string argument is a phage family or not.
Returns : An integer - 1 if the argument is a phage family or 0 if not.
Args : A string (virus family name)
=cut
sub is_phage_family {
my $family = shift;
return unless ($family);
my @PHAGEFAMS = qw/ Ackermannviridae
Ampullaviridae
Anayavirus
Autographiviridae
Autolykiviridae
Backyardiganvirus
Benedictvirus
Bicaudaviridae
Casjensviridae
Caudovirales
Chaseviridae
Clavaviridae
Corticoviridae
Crassvirales
Cystoviridae
Demerecviridae
Drexlerviridae
Duinviridae
Fiersviridae
Finnlakeviridae
Fuselloviridae
Gladiatorvirus
Globuloviridae
Guelinviridae
Guttaviridae
Herelleviridae
Inoviridae
Jamesmcgillvirus
Keshuvirus
Kratiovirus
Leviviridae
Lipothrixviridae
Microviridae
Microwolfvirus
Myoviridae
Paulinoviridae
Plasmaviridae
Plectroviridae
Pleolipoviridae
Podoviridae
Pukovnikvirus
Rountreeviridae
Rudiviridae
Salasmaviridae
Schitoviridae
Siphoviridae
Sphaerolipoviridae
Spiraviridae
Steigviridae
Steitzviridae
Straboviridae
Suoliviridae
Swiduovirus
Tectiviridae
Timshelvirus
Tristromaviridae
Tsukubavirus
Turbidovirus
Turriviridae
Veracruzvirus
Zobellviridae/;
foreach (@PHAGEFAMS) {
return 1 if ($_ eq ucfirst $family);
}
return 0;
}
=head2 get_genome_type
Title : get_genome_type
Usage : $genometype = get_genome_type("Adenoviridae")
Function : Obtain the genome type of the argument
Returns : A string - if family is not found or is "NoFamily", returns "Unknown"
Args : A string (virus family name)
=cut
sub get_genome_type {
my $family = shift;
return unless ($family);
my $UNKNOWN = "Unknown";
my %vf2genome = (
# unknown
NoFamily => 'Unknown',
Satellites => 'Unknown',
# ssDNA
Anelloviridae => 'ssDNA,circular,nonsegmented',
Bidnaviridae => 'ssDNA,linear,segmented',
Circoviridae => 'ssDNA,circular,nonsegmented',
Geminiviridae => 'ssDNA,circular,both',
Genomoviridae => 'ssDNA,circular,nonsegmented',
Inoviridae => 'ssDNA,circular,nonsegmented',
Microviridae => 'ssDNA,linear,nonsegmented',
Nanoviridae => 'ssDNA,circular,nonsegmented',
Parvoviridae => 'ssDNA,linear,nonsegmented',
Pleolipoviridae => 'ssDNA,circular,nonsegmented',
Spiraviridae => 'ssDNA,circular,nonsegmented',
Tolecusatellitida => 'ssDNA,circular,nonsegmented',
# dsDNA
Adenoviridae => 'dsDNA,linear,nonsegmented',
Alloherpesviridae => 'dsDNA,linear,nonsegmented',
Ascoviridae => 'dsDNA,circular,nonsegmented',
Asfarviridae => 'dsDNA,linear,nonsegmented',
Baculoviridae => 'dsDNA,circular,nonsegmented',
Bicaudaviridae => 'dsDNA,circular,nonsegmented',
Caudovirales => 'dsDNA,linear,nonsegmented',
Caulimoviridae => 'dsDNA RT,circular,nonsegmented',
Corticoviridae => 'dsDNA,circular,nonsegmented',
Fuselloviridae => 'dsDNA,circular,nonsegmented',
Globuloviridae => 'dsDNA,linear,nonsegmented',
Guttaviridae => 'dsDNA,circular,nonsegmented',
Herpesviridae => 'dsDNA,linear,nonsegmented',
Hepadnaviridae => 'dsDNA RT,circular,nonsegmented',
Hytrosaviridae => 'dsDNA,circular,nonsegmented',
Iridoviridae => 'dsDNA,linear,nonsegmented',
Lavidaviridae => 'dsDNA,circular,nonsegmented',
Lipothrixviridae => 'dsDNA,linear,nonsegmented',
Marseilleviridae => 'dsDNA,circular,nonsegmented',
Malacoherpesviridae => 'dsDNA,linear,nonsegmented',
Mimiviridae => 'dsDNA,linear,nonsegmented',
Myoviridae => 'dsDNA,linear,nonsegmented',
Nimaviridae => 'dsDNA,circular,nonsegmented',
Nudiviridae => 'dsDNA,circular,nonsegmented',
Papillomaviridae => 'dsDNA,circular,nonsegmented',
Phycodnaviridae => 'dsDNA,linear,nonsegmented',
Plasmaviridae => 'dsDNA,circular,nonsegmented',
Podoviridae => 'dsDNA,linear,nonsegmented',
Polydnaviridae => 'dsDNA,circular,segmented',
Polyomaviridae => 'dsDNA,circular,nonsegmented',
Poxviridae => 'dsDNA,linear,nonsegmented',
Rudiviridae => 'dsDNA,linear,nonsegmented',
Siphoviridae => 'dsDNA,linear,nonsegmented',
Sphaerolipoviridae =>'dsDNA,linear/circular,nonsegmented',
Tectiviridae => 'dsDNA,linear,nonsegmented',
Tristromaviridae => 'dsDNA,linear,nonsegmented',
Turriviridae => 'dsDNA,linear,nonsegmented',
# dsRNA
Amalgaviridae => 'dsRNA,linear,nonsegmented',
Birnaviridae => 'dsRNA,linear,segmented',
Chrysoviridae => 'dsRNA,linear,segmented',
Cystoviridae => 'dsRNA,linear,segmented',
Endornaviridae => 'dsRNA,linear,nonsegmented,14-17.6kb',
Hypoviridae => 'dsRNA,linear,nonsegmented,9-13kb',
Megabirnaviridae => 'dsRNA,linear,segmented,7-9kb each',
Partitiviridae => 'dsRNA,linear,segmented,1.4-3kb each',
Picobirnaviridae => 'dsRNA,linear,segmented',
Quadriviridae => 'dsRNA,linear,segmented,3-5kb each',
Reoviridae => 'dsRNA,linear,segmented',
Totiviridae => 'dsRNA,linear,nonsegmented',
# ssRNA(RT)
Metaviridae => 'ssRNA(?,RT)',
Pseudoviridae => 'ssRNA(?,RT)',
Retroviridae => 'ssRNA(+,RT),linear,nonsegmented',
# ssRNA(+)
# Nidovirales
Arteriviridae => 'ssRNA(+),linear,nonsegmented',
Coronaviridae => 'ssRNA(+),linear,nonsegmented,27-32kb',
Mesoniviridae => 'ssRNA(+),linear,nonsegmented,20kb',
Roniviridae => 'ssRNA(+),linear,nonsegmented,26kb',
# Picornavirales
Dicistroviridae => 'ssRNA(+),linear,nonsegmented',
Iflaviridae => 'ssRNA(+),linear,nonsegmented',
Marnaviridae => 'ssRNA(+),linear,nonsegmented',
Picornavirales => 'ssRNA(+),linear,nonsegmented',
Picornaviridae => 'ssRNA(+),linear,nonsegmented',
Secoviridae => 'ssRNA(+),linear,segmented',
# Tymovirales
Alphaflexiviridae => 'ssRNA(+),linear,nonsegmented',
Betaflexiviridae => 'ssRNA(+),linear,nonsegmented',
Gammaflexiviridae => 'ssRNA(+),linear,nonsegmented',
Tymoviridae => 'ssRNA(+),linear,nonsegmented',
# Unassigned
Alphatetraviridae => 'ssRNA(+),linear,both',
Alvernaviridae => 'ssRNA(+),linear,nonsegmented',
Astroviridae => 'ssRNA(+),linear,nonsegmented',
Barnaviridae => 'ssRNA(+),linear,nonsegmented',
Benyviridae => 'ssRNA(+),linear,segmented',
Bromoviridae => 'ssRNA(+),linear,segmented',
Caliciviridae => 'ssRNA(+),linear,nonsegmented',
Carmotetraviridae => 'ssRNA(+),linear,nonsegmented',
Closteroviridae => 'ssRNA(+),linear,nonsegmented',
Flaviviridae => 'ssRNA(+),linear,nonsegmented',
Hepeviridae => 'ssRNA(+),linear,nonsegmented',
Leviviridae => 'ssRNA(+),linear,nonsegmented',
Luteoviridae => 'ssRNA(+),linear,nonsegmented',
Narnaviridae => 'ssRNA(+),linear,nonsegmented,2.5-2.9kb',
Nodaviridae => 'ssRNA(+),linear,segmented',
Permutotetraviridae => 'ssRNA(+),linear,nonsegmented,5.6kb',
Potyviridae => 'ssRNA(+),linear,nonsegmented',
Sarthroviridae => 'ssRNA(+),linear,nonsegmented,0.8kb',
Solinviviridae => 'ssRNA(+),linear,nonsegmented,10-11kb',
Togaviridae => 'ssRNA(+),linear,nonsegmented,9.7-11.8kb',
Tobamovirus => 'ssRNA(+),linear,nonsegmented',
Tombusviridae => 'ssRNA(+),linear,nonsegmented',
Virgaviridae => 'ssRNA(+),linear,nonsegmented',
# ssRNA(-)
# Mononegavirales
Bornaviridae => 'ssRNA(-),linear,nonsegmented',
Filoviridae => 'ssRNA(-),linear,nonsegmented',
Mymonaviridae => 'ssRNA(-),linear,nonsegmented',
Nyamiviridae => 'ssRNA(-),linear,nonsegmented',
Paramyxoviridae => 'ssRNA(-),linear,nonsegmented',
Pneumoviridae => 'ssRNA(-),linear,nonsegmented',
Rhabdoviridae => 'ssRNA(-),linear,nonsegmented',
Sunviridae => 'ssRNA(-),linear,nonsegmented',
# Bunyavirales
Feraviridae => 'ssRNA(-),linear,segmented',
Fimoviridae => 'ssRNA(-),linear,segmented',
Hantaviridae => 'ssRNA(-),linear,segmented',
Jonviridae => 'ssRNA(-),linear,segmented',
Nairoviridae => 'ssRNA(-),linear,segmented',
Phasmaviridae => 'ssRNA(-),linear,segmented',
Phenuiviridae => 'ssRNA(-),linear,segmented',
Peribunyaviridae => 'ssRNA(-),linear,segmented',
Tospoviridae => 'ssRNA(-),linear,segmented',
# Unassigned
Arenaviridae => 'ssRNA(-),linear,segmented',
Ophioviridae => 'ssRNA(-),linear,segmented',
Orthomyxoviridae => 'ssRNA(-),linear,segmented',
);
return $vf2genome{$family} if (exists $vf2genome{$family});
return $UNKNOWN;
}
=head1 Internal methods
There are internal methods to Taxonomy
=cut
=head2 _foo
=cut
1;