Bioinformatics/Global alignment: Difference between revisions

m
→‎{{header|Phix}}: "stable" not actually needed
(Added Wren)
m (→‎{{header|Phix}}: "stable" not actually needed)
Line 181:
 
=={{header|Phix}}==
<lang Phix>procedure printcounts(sequence ss)
<lang Phix>requires("0.8.4") -- (or the trivial 7/2/21 bugfix in punique.e)
 
procedure printcounts(sequence ss)
-- Given DNA sequence(s), report the sequence, length and base counts
for i=1 to length(ss) do
Line 219 ⟶ 217:
procedure shortest_common_superstring(sequence ss)
-- Returns shortest common superstring of a vector of strings
ss = deduplicate(unique(ss,"STABLE"))
sequence shortestsuper = {join(ss,"")}
integer shortest = length(shortestsuper[1])
Line 269 ⟶ 267:
{{out}}
<pre>
Nucleotide counts for :TAAGAA
 
Base counts: Other:0, A:4, C:0, G:1, T:1, total:6
 
Nucleotide counts for :GAAGTA
 
Line 276 ⟶ 278:
 
Base counts: Other:0, A:3, C:0, G:2, T:1, total:6
 
Nucleotide counts for :TAAGAA
 
Base counts: Other:0, A:4, C:0, G:1, T:1, total:6
 
Nucleotide counts for :CATTAGGG
7,804

edits