This file contains hidden or 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
import argparse | |
import subprocess | |
import os | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser(description='Print annotated genome location for hand analysis') | |
parser.add_argument('chr', help='chr position', type=str) | |
parser.add_argument('start', help='start position', type=int) | |
parser.add_argument('end', help='end position', type=int) |
This file contains hidden or 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
" Put this in your ~/.vimrc | |
" Define the function to reverse complement a DNA sequence | |
" Run by calling <Leader>rc from normal mode. By default <Leader> is "\" so press \rc (you only have 1 second after \ to press rc) | |
function! ReverseComplement() | |
" Save the current cursor position | |
let save_cursor = getpos('.') | |
" Get the word under the cursor | |
let word = expand('<cword>') |