Skip to content

Instantly share code, notes, and snippets.

@bruab
Created October 1, 2014 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruab/7a5ba03fd3188c4a71f5 to your computer and use it in GitHub Desktop.
Save bruab/7a5ba03fd3188c4a71f5 to your computer and use it in GitHub Desktop.
Lep-MAP refactor part 1
elif line.startswith("alleles"):
#this is the second line
alleles = line.strip().split()[1:]
else: # This "else" is currently on line 64
columns = line.split()
individual_info = get_ind_info(columns)
# I chopped out a bunch of stuff here
group = individual_info['group']
indID = individual_info['indID']
mother = individual_info['mother']
father = individual_info['father']
sex = individual_info['sex']
affected = individual_invo['affected']
# Picking back up at what used to be line 91 ...
locusgenotype = []
newline = str(group) + "\t" + str(indID) + "\t" + str(mother) + "\t" + str(father) + "\t" + str(sex) + "\t" + str(affected) + "\t"
for i, genotype in enumerate(genotypes):
current_allele = alleles[i]
if isoffspring:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment