Skip to content

Commit

Permalink
add filter lines, but writer needs improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
James Casbon committed Jan 20, 2012
1 parent 7f7b7bd commit fb49dd4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
entry_points = {
'vcf.filters': [
'site_quality = vcf_filter:SiteQuality',
'vgq = vcf_filter:VariantGenotypeQuality',
]
}
)
19 changes: 19 additions & 0 deletions vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,25 @@ def _stringify(self, x):
return str(x)



class Filter(object):
name = 'filter'
description = 'VCF filter base class'
short_name = 'f'

@classmethod
def customize_parser(self):
pass

def __init__(self, args):
pass

def __call__(self):
raise NotImplementedError('Filters must implement this method')




def __update_readme():
import sys
file('README.rst', 'w').write(sys.modules[__name__].__doc__)
Expand Down

0 comments on commit fb49dd4

Please sign in to comment.