Edited wiki page PhyloBioRuby through web user interface.
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 26 Mar 2011 06:11:09 +0000 (06:11 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 26 Mar 2011 06:11:09 +0000 (06:11 +0000)
wiki/PhyloBioRuby.wiki

index 0bd30f5..a3be960 100644 (file)
@@ -23,6 +23,16 @@ Copyright (C) 2011 Christian M Zmasek. All rights reserved.
 
 === Reading in a Multiple Sequence Alignment from a File ===
 
+This automatically determines the format
+{{{
+ff = Bio::FlatFile.auto('bcl2.fasta')
+ff.each_entry do |entry|
+  puts entry.entry_id          # identifier of the entry
+  puts entry.definition        # definition of the entry
+  puts entry.seq               # sequence data of the entry
+end
+}}}
+
 ==== ClustalW Format ====
 
 The following example shows how to read in a *ClustalW*-formatted multiple sequence alignment.