vcf.js
function parseVCF(text) {
    var lines = U.reject(text.split('\n'), function(line) {
      return line === '';
    });

    var partitions = U.partition(lines, function(line) {
      return line[0] === '#';
    });

    var header = parseHeader(partitions[0]),
        records = U.map(partitions[1], function(line) {
          return new Record(line, header);
        });

    return {header: header, records: records};
  }
function parseVCF(text) {
    var lines = U.reject(text.split('\n'), function(line) {
      return line === '';
    });

    var partitions = U.partition(lines, function(line) {
      return line[0] === '#';
    });

    var header = parseHeader(partitions[0]),
        records = U.map(partitions[1], function(line) {
          return new Record(line, header);
        });

    return {header: header, records: records};
  }
function parseVCF ( text ) { var lines = U . reject ( text . split ( '\n' ) , function ( line ) { return line === '' ; } ) ; var partitions = U . partition ( lines , function ( line ) { return line [ 0 ] === '#' ; } ) ; var header = parseHeader ( partitions [ 0 ] ) , records = U . map ( partitions [ 1 ] , function ( line ) { return new Record ( line , header ) ; } ) ; return { header : header , records : records } ; }
Returns a parsed VCF object, with attributes `records` and `header`. `records` - a list of VCF Records. `header` - an object of the metadata parsed from the VCF header.  `text` - VCF plaintext.
Returns a parsed VCF object with attributes records and header . records - a list of VCF Records . header - an object of the metadata parsed from the VCF header . text - VCF plaintext .