Skip to content

Commit

Permalink
Merge pull request #32 from cflsjt/master
Browse files Browse the repository at this point in the history
updating PCR marker pipeline
  • Loading branch information
cflsjt committed Nov 11, 2015
2 parents 675b979 + 4cc6df1 commit c48f6d2
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions vcf_gff.py
Expand Up @@ -77,31 +77,9 @@ def get_gen(formatcols, ref):
reads = sample_dict.get("DP")
else:
reads = "NA"
if sample_dict.has_key("NF"):
if sample_dict.has_key("GT"):
"""
polysnp tool output
"""
freq = sample_dict.get("NF")
variants = freq.split("|")
if int(variants[0]) >= 1:
var += "A"
if int(variants[1]) >= 1:
var += "C"
if int(variants[2]) >= 1:
var += "G"
if int(variants[3]) >= 1:
var += "T"
if var == "":
gen = "NA"
elif var == ref:
gen = "HOM_ref"
elif len(var) >= 2:
gen = "HET"
else:
gen = "HOM_mut"
elif sample_dict.has_key("GT"):
"""
mpileup output, recommend ALWAYS have GT, note this only good scoring for diploids too!
mpileup output, recommend ALWAYS have GT, note this only good for scoring diploids too!
"""
genotypes = sample_dict.get("GT")
if genotypes == "1/1":
Expand Down

0 comments on commit c48f6d2

Please sign in to comment.