People sometimes load tracks for use in Segway that only have positive values and no zero values. The generator of the track did not distinguish between locations of no signal (which should be zero) and location where no signal can be generated (for example, uninterrogated regions or repeat regions).
Segway should generate a warning for any track in use where the minimum (as determined from genomedata mins attribute) is >0. This should be a new class called something like NeverZeroDataWarning, a child of a new DataWarning class, which is a warnings.UserWarning.
When discussing data preparation, we should mention this issue, and include this warning and its meaning, and also how to turn it off using the PYTHONWARNINGS environment variable.
If possible, this warning should include a link to the page on readthedocs.io that describes what to do.
There should be a very simple test that tests this and disabling it with PYTHONWARNINGS.
Original report (BitBucket issue) by Michael Hoffman (Bitbucket: hoffman, GitHub: michaelmhoffman).
People sometimes load tracks for use in Segway that only have positive values and no zero values. The generator of the track did not distinguish between locations of no signal (which should be zero) and location where no signal can be generated (for example, uninterrogated regions or repeat regions).
mins
attribute) is >0. This should be a new class called something likeNeverZeroDataWarning
, a child of a newDataWarning
class, which is awarnings.UserWarning
.PYTHONWARNINGS
environment variable.PYTHONWARNINGS
.