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:
parent
143f8eea4e
commit
144b424933
|
|
@ -253,6 +253,16 @@ public class BaseUtils {
|
||||||
return rcbases;
|
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.
|
* For the most frequent base in the sequence, return the percentage of the read it constitutes.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue