How to resolve the algorithm Bioinformatics/base count step by step in the zkl programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Bioinformatics/base count step by step in the zkl programming language
Table of Contents
Problem Statement
Given this string representing ordered DNA bases:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Bioinformatics/base count step by step in the zkl programming language
Source code in the zkl programming language
bases:=
#<<<"
CGTAAAAAATTACAACGTCCTTTGGCTATCTCTTAAACTCCTGCTAAATG
CTCGTGCTTTCCAATTATGTAAGCGTTCCGAGACGGGGTGGTCGATTCTG
AGGACAAAGGTCAAGATGGAGCGCATCGAACGCAATAAGGATCATTTGAT
GGGACGTTTCGTCGACAAAGTCTTGTTTCGAGAGTAACGGCTACCGTCTT
CGATTCTGCTTATAACACTATGTTCTTATGAAATGGATGTTCTGAGTTGG
TCAGTCCCAATGTGCGGGGTTTCTTTTAGTACGTCGGGAGTGGTATTATA
TTTAATTTTTCTATATAGCGATCTGTATTTAAGCAATTCATTTAGGTTAT
CGCCGCGATGCTCGGTTCGGACCGCCAAGCATCTGGCTCCACTGCTAGTG
TCCTAAATTTGAATGGCAAACACAAATAAGATTTAGCAATTCGTGTAGAC
GACCGGGGACTTGCATGATGGGAGCAGCTTTGTTAAACTACGAACGTAAT" - " \n";
#<<<
[0..*,50].zipWith(fcn(n,bases){ println("%6d: %s".fmt(n,bases.concat())) },
bases.walker().walk.fp(50)).pump(Void); // .pump forces the iterator
println("\nBase Counts: ", bases.counts().pump(String,Void.Read,"%s: %d ".fmt));
println("Total: ",bases.len());
You may also check:How to resolve the algorithm Power set step by step in the Java programming language
You may also check:How to resolve the algorithm Cumulative standard deviation step by step in the FreeBASIC programming language
You may also check:How to resolve the algorithm Van Eck sequence step by step in the Scala programming language
You may also check:How to resolve the algorithm Loops/For with a specified step step by step in the Seed7 programming language
You may also check:How to resolve the algorithm 99 bottles of beer step by step in the Chapel programming language