From 3b13b835acf5bc4ed44cf28682a846e748f9b46b Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Sat, 26 Mar 2011 06:11:09 +0000 Subject: [PATCH] Edited wiki page PhyloBioRuby through web user interface. --- wiki/PhyloBioRuby.wiki | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wiki/PhyloBioRuby.wiki b/wiki/PhyloBioRuby.wiki index 0bd30f5..a3be960 100644 --- a/wiki/PhyloBioRuby.wiki +++ b/wiki/PhyloBioRuby.wiki @@ -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. -- 1.7.10.2