Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareLtE Num Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Print BinOpMod Str Call AttributeLoad NameLoad attr NameLoad orelse Print BinOpMod Str Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A A reducer for expansion of gVCF or CGI data.

To test locally, set both BIG_QUERY_SOURCE and BIG_QUERY_SINK to False and run:
  cat ./data/platinum-genomes-brca1.json | ./gvcf-expand-mapper.py | sort   | ./gvcf-expand-reducer.py > out.json
 N/A json N/A sys gvcf_expander GvcfExpander gvcf_expander Pair N/A BIG_QUERY_SINK True main N/A N/A N/A N/A N/A Entry point to the script. N/A file_handle N/A sys stdin N/A N/A 2 N/A len N/A sys argv N/A N/A file_handle N/A open N/A N/A sys argv N/A 1 r N/A expander N/A GvcfExpander bin_size 1000 filter_ref_matches False emit_ref_blocks False N/A line N/A N/A file_handle readline N/A line N/A N/A line N/A N/A line strip N/A N/A line N/A N/A line N/A N/A file_handle readline N/A N/A N/A key value N/A N/A line split N/A fields N/A N/A json loads value N/A results N/A N/A expander reduce pair N/A Pair key fields N/A result results N/A N/A N/A emit result N/A line N/A N/A file_handle readline N/A results N/A N/A expander finalize N/A result results N/A N/A N/A emit result N/A emit N/A N/A fields N/A N/A N/A Emits a reduced value to stdout.

  Args:
    fields: (dict)

  Returns: n/a

  Side Effects:
    a value is written to stdout
   N/A BIG_QUERY_SINK N/A N/A N/A 0	%s N/A N/A json dumps fields N/A N/A N/A %s N/A N/A json dumps fields N/A N/A N/A __name__ __main__ N/A N/A N/A main