Skip to content

Recent genomedata versions break previous (version 1.3.6) masking #51

@EricR86

Description

@EricR86

Original report (archived issue) by Coby Viner (Bitbucket: cviner2, GitHub: cviner).

The original report had attachments: mm9_chrY-only_MASK-cov.bedGraph.gz


The following error occurs on the latest version (1.4.4), but works fine in version 1.3.6. It seems like this is due to the new masking functionality, added in 1.4.0.

#!text

>> <cytomod.py> 2019-01-02T17:18:55.693228 Genomedata archive
                                           successfully loaded.
>> <cytomod.py> 2019-01-02T17:18:55.697772 Masking is enabled. All
                                           loci implicated by the mask
                                           will be masked
                                           irrespective of any mods at
                                           those loci.
>> <cytomod.py> 2019-01-02T17:18:55.697999 The order of preference for
                                           base
                                           modifications (from highest
                                           to lowest) is:
                                           f,h,m,c,w,x,y,z.
>> <cytomod.py> 2019-01-02T17:18:55.700827 Outputting the modified
                                           genome for: chrY
>> <cytomod.py> 2019-01-02T17:18:55.706329 Now outputting chrY for
                                           region: (0, 2000000)
Traceback (most recent call last):
  File "../../src/cytomod.py", line 859, in <module>
    args.maskAllUnsetRegions)
  File "../../src/cytomod.py", line 313, in generateFASTAFile
    maskAllUnsetRegions) + "\n")
  File "../../src/cytomod.py", line 147, in getModifiedGenome
    maskTrack = chromosome[s:e, maskRegionTName]
  File "/home/cviner2/.local/lib/python2.7/site-packages/genomedata/__init__.py", line 755, in __getitem__
    track_key)
TypeError: Unrecognized track indexing method: mm9_chrY-only_MASK-cov.bedGraph.gz

It would be nice if backward compatibility could be restored and preserved.

Please find the offending BEDGraph file (mm9_chrY-only_MASK-cov.bedGraph.gz) enclosed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions