Skip to content

Conversation

@bunop
Copy link

@bunop bunop commented Dec 11, 2015

Dear Aaron,

here some minor fixes to your library:

  • I've changed self.metadata, self.infos, self.filters, self.formats in Reader class from dictionaries to collections.OrderedDict: By using Writer class, those records will be placed in random order to output file. The VCF file format records (eg. ##fileformat=VCFv4.1) must be the first record in a VCF file, or other VCF processing softwares will fail (bcftools) or raise warnings
  • I've merged the modification proposed by cfriedline in your pull request #29
  • I've updated the software version and placed install_requires = ["cython"], in setup.py in order to check and install cython while installing cyvcf
  • the Writer method force the csv.writer to use the standard linux line terminator \n, not the default windows \r\n

Regards,

Paolo

cfriedline and others added 3 commits October 15, 2015 16:07
While writing VCF metadata with the Writer class, ordering could put
the vcf file format metadata after others metadata, causing warnings
while dealing with VCF and breaking analises with the last BCF tools
e to explain why this merge is necessary,
@bunop bunop changed the title Dev Metadata modification and others minor update Dec 11, 2015
@bunop bunop changed the title Metadata modification and others minor update Metadata modification and others minor updates Dec 11, 2015
bunop and others added 18 commits December 14, 2015 11:01
The Writer class make use of csv.writer which by default uses the windows
encoding line terminator while writing files. Forced to use the standard
'\n' newline
I'm trying to fix tests and resolve bugs when comparing records
Checking record equality (only by positions on chromosome). Only
a test fails:

Traceback (most recent call last):
  File "/home/paolo/Projects/cyvcf/test/test_vcf.py", line 767, in testApplyMultipleFilters
    assert s == 0
AssertionError

This seems a problem inside pyvcf library, used only for tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants