Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
carjed committed Jul 23, 2018
2 parents 08a69eb + f09b75a commit 0b25d98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,18 @@ def processVCF(args, inputvcf, subtypes_dict, par):

for record in vcf_reader:

# Filter by allele count
if (record.INFO['AC'] > args.maxac > 0):
numsites_skip += 1
continue

# Filter by SNP status, # alt alleles, and FILTER column
if (not record.is_snp or
len(record.ALT) != 1 or
record.FILTER is not None):
numsites_skip += 1
continue

# Filter by allele count
if (record.INFO['AC'] > args.maxac > 0):
numsites_skip += 1
continue

# check and update chromosome sequence
if record.CHROM != chrseq:
sequence = fasta_reader[record.CHROM]
Expand Down

0 comments on commit 0b25d98

Please sign in to comment.