Created
July 8, 2020 17:47
-
-
Save hartzell/e0b03757bb02c86ead340aa96c7cd3d6 to your computer and use it in GitHub Desktop.
quick perl revcomp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n "CAAT" | perl -pe '{tr/atcgATCG/tagcTAGC/; $_=reverse}' | |
or for IUPAC: | |
tr/ABCDGHMNRSTUVWXYabcdghmnrstuvwxy/TVGHCDKNYSAABWXRtvghcdknysaabwxr/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment