Posts tagged with ‘bioinformatics’
Strings transliteration in Java with Apache Commons Lang
kinow @ Aug 09, 2014 12:49:33Tweet
Rosalind is a website with a curated set of exercices for bioinformatics, organized hierarchily. In some of these examples you are required to replace characters (nucleotides) by other characters. It is a rather common task for developers, like when you need to replace special characters in user’s names.
There are different ways of describing it, such as translate, replace, or transliterate. The latter being my favorite definition.
Turns out that Apache Commons Lang, which I use in most of my projects, provided this feature. What means that I will be able to reduce the length of my code, what also means less code to be tested (and one less place to look for bugs).
String s = StringUtils.replaceChars("ATGCATGC", "GTCA", "CAGT"); // "TACGTACG" System.out.println(s);
What the code above does, is replace G by C, T by A, C by G and A by T. This process is part of finding the DNA reverse complement. But you can also use this for replacing special characters, spaces by _, and so it goes.
Bioinformatics tools: Stacks
kinow @ Sep 25, 2012 16:08:03Tweet
It is the first post about bioinformatics tools, but I will try to post more about other tools such as MrBayes, Structure, maybe some next generation sequencing tools too, and Bioperl, Biojava, and so on.
As I am more a computer geek, rather than a bioinformatics one, I will focus on requirements for running these tools on clusters and the requirements to install them on your machine. The instructions require that you have an intermediary knowledge on *nix OS and sometimes a bit of programming experience.