Skip to content
Snippets Groups Projects
Commit d16a19c0 authored by Megens, Hendrik-Jan's avatar Megens, Hendrik-Jan
Browse files

helper scripts

parent 85a8c585
Branches master
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def vcfelements(line): # parse the main, tab-delimited elements of the VCF line
if len(vcf_elements)>9: # check if genotype fields present; this requires at least 2 additional columns
vcf_elements=list_genotypes(vcf_elements)
else :
vcf_elements.append([]) # make sure that the data structure is allways of lenth 9
vcf_elements.append([]) # make sure that the data structure is allways of length 9
return vcf_elements # return list
def list_genotypes(vcflist): # reshape the genotypes to a single list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment