Created
October 7, 2016 16:35
-
-
Save CalebFenton/19f3264d99c681499cdaa4fadc791cea to your computer and use it in GitHub Desktop.
Convert 23andme raw data to dumb string of G's A's T's and C's
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
import sys | |
with open(sys.argv[1], 'r') as f: | |
lines = f.readlines() | |
for line in lines: | |
if line.startswith('#'): | |
continue | |
parts = line.strip().split('\t') | |
chem = parts[len(parts) - 1] | |
sys.stdout.write(chem) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: