Comments (4)
There is an eCode called Esf0042 in gff3.py line #866 with the message 'Unresolved forward reference.' However, the eCode Esf0042 is currently not documented in gff3_QC full documentation and not listed in the dictionary of ERROR.py as well. It might need to be documented.
from gff3toolkit.
Attached is the documentation for three categories of general error handling in gff3QC codes (function4gff.py, intra_model.py, inter_model.py, gff3_QC.py, and gff3.py).
error handling in gff3_QC.docx
from gff3toolkit.
Since both gff3 QC errors and program errors are handled with pre-defined log levels of the logging module, we considered defining separate levels for gff3 QC errors (like gff3_ERROR). The way to do this is to use the logging.addLevelName
function and setup like the following example.
import logging
DEBUG_LEVELV_NUM = 9
logging.addLevelName(DEBUG_LEVELV_NUM, "DEBUGV")
def debugv(self, message, *args, **kws):
if self.isEnabledFor(DEBUG_LEVELV_NUM):
# Yes, logger takes its '*args' as 'args'.
self._log(DEBUG_LEVELV_NUM, message, args, **kws)
logging.Logger.debugv = debugv
(reference: https://newbedev.com/how-to-add-a-custom-loglevel-to-python-s-logging-facility)
However, we decided not to do it. Because gff3 QC errors are already put in the QC report with clear error messages for each eCode, defining new error levels adds unnecessary complications. In addition, custom levels are not recommended for developing a library in the python document. As a result, the error update for this issue will use the current handling method.
from gff3toolkit.
Closed via #116 .
from gff3toolkit.
Related Issues (20)
- gff3_fix - problem with split function HOT 1
- Pip install HOT 3
- Add Support for GZIP/BGZIP Compressed Files HOT 3
- gff3_fix error HOT 9
- can't install HOT 9
- gff3_merge user-defined file option does not work in python 3
- gff3_merge iteritems error HOT 3
- Anaconda have something wrong when runing example script HOT 2
- ValueError: max() arg is an empty sequence HOT 3
- gff3_fix error HOT 5
- removing models from a list HOT 2
- inquiry about "gff3_to_fasta -st user_defined -u mRNA CDS" HOT 5
- Error when running gff3_ID_generator.py HOT 4
- SeqID does not end with a number. HOT 6
- KeyError: 'replace' HOT 6
- Error in gff3_fix HOT 1
- Problem with "gff3_ID_generator.py" HOT 8
- Program gff3_sort encountered an error.
- Extract protein seq HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gff3toolkit.