BioPHP - Reverse-complement of DNA or RNA sequence
Original code submitted by josebaCode bellow is covered by GNU GPL v2 license.
Description
Last change: 2010/10/18 17:04 | Edit description | Recent Changes | Original descriptionFirst gets the complement of a DNA or RNA sequence, and then returns it in reverse order. Uses the function complement
Code
Last change: 2010/10/18 17:04 | Edit Code | Recent Changes | Download | Original codefunction revcomp($seq, $moltype)
{
return strrev(complement($seq, $moltype));
}