Added : String reverse(String s) - reverses a string

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1416 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
asivache 2009-08-12 20:16:22 +00:00
parent 143f8eea4e
commit 144b424933
1 changed files with 10 additions and 0 deletions

View File

@ -253,6 +253,16 @@ public class BaseUtils {
return rcbases;
}
/**
* Reverse (NOT reverse-complement!!) a string
*
* @param bases input string
* @return the reversed string
*/
static public String reverse(String bases) {
return new String( reverse( bases.getBytes() )) ;
}
/**
* For the most frequent base in the sequence, return the percentage of the read it constitutes.
*