Skip to content

Instantly share code, notes, and snippets.

View mamanambiya's full-sized avatar
🏠
Working from home

Mamana Mbiyavanga mamanambiya

🏠
Working from home
  • University of Cape Town
  • Cape Town, South Africa
  • X @mamanambiya
View GitHub Profile
@mamanambiya
mamanambiya / RSnquery.py
Created October 22, 2016 19:51 — forked from stedy/RSnquery.py
A script for getting ancestral alleles from dbSNP based on input list of RS #
#! usr/bin/python
#Filename: rsquery2.py
import re, urllib, time
rsnumbers = []
f = open('ancestral0624', 'a')
urltest = re.compile
prefix = "http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs="
rsn = open("snplist")
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE: