• Use the following Genbank sequence as input (copy-paste into a vi file in your
ID: 3831971 • Letter: #
Question
• Use the following Genbank sequence as input (copy-paste into a vi file in your terminal) GenBank sample <http://quma.cdb.riken.jp/help/gbHelp.html> and then write BioPerl code to do the following:
•Read the Genbank file using the Bio:SeqIO and the sequences using Bio::Seq
•Check with a regular expression if the display_id contains "methyltranferase"
•Check if the sequence has the pattern: one or more g's, followed by t and any character repeated three times, followed by at least 2 t's.
•reverse complement the sequence and print the reverse complement
•after reverse complement write to a FASTA file
Explanation / Answer
First, make sure you're in edit mode (press i). Then you can paste with Ctrl+Shift+V, if you're in a terminal emulator like gnome-terminal (or select "Paste" from the right-click menu).
You can also type :set paste in vim before you paste to disable automated indenting, etc. Then :set nopaste after you've pasted the content.
Also check this question on stackoverflow.com for more information.
If you want to copy/paste lines in vim (as opposed to pasting clipboard content), you'll want to check out the yank command. Here is a cheat sheet that might help.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.