Laurmagee: Week 3
From LMU BioDB 2013
Complement of a Strand
- The appropriate processing commands are the following: cat sequence_file | sed "y/atgc/tacg/"
- This will turn a nucleotide sequence, "agcggtatac", into "tcgccatatg", it's compliment.
Reading Frames
- First Reading Frame (+1)
- cat sequence_file | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed
- Second Reading Frame (+2)
- cat sequence_file | sed "s/^.//g" | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed
- Third Reading Frame (+3)
- cat sequence_file | sed "s/^..//g" | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed
- Fourth Reading Frame (-1)
- rev sequence_file | sed "y/atgc/tacg/" | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed
- Fifth Reading Frame (-2)
- rev sequence_file | sed "y/atgc/tacg/" | sed "s/^.//g" | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed
- Sixth Reading Frame (-3)
- rev sequence_file | sed "y/atgc/tacg/" | sed "s/^..//g" | sed "s/.../&/g" | sed "s/t/u/g" | sed genetic-code.sed