Created
October 1, 2014 00:04
-
-
Save bruab/7a5ba03fd3188c4a71f5 to your computer and use it in GitHub Desktop.
Lep-MAP refactor part 1
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
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