[BioRuby-cvs] bioruby/lib/bio/appl/blast format0.rb,1.22,1.23
Katayama Toshiaki
k at dev.open-bio.org
Fri Dec 14 16:09:39 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/appl/blast
In directory dev.open-bio.org:/tmp/cvs-serv23128/lib/bio/appl/blast
Modified Files:
format0.rb
Log Message:
* added target_id for compatibility with other format parsers
Index: format0.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/blast/format0.rb,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** format0.rb 21 Apr 2007 08:58:17 -0000 1.22
--- format0.rb 14 Dec 2007 16:09:36 -0000 1.23
***************
*** 861,867 ****
def definition; parse_hitname; @definition; end
#--
# Aliases to keep compatibility with Bio::Fasta::Report::Hit.
- #alias target_id accession
alias target_def definition
alias target_len len
--- 861,868 ----
def definition; parse_hitname; @definition; end
+ def target_id; definition[/^\s*(\S+)/]; end
+
#--
# Aliases to keep compatibility with Bio::Fasta::Report::Hit.
alias target_def definition
alias target_len len
More information about the bioruby-cvs
mailing list