The current behaviour makes things like filtering records by something like source difficult if any sources are missing (.).
I feel like returning missing might be a bit more idiomatic? It would also make the following code less perilous...
Iterators.filter(r -> GFF3.source(r) == "Pfam", reader)
which is the code currently crashing my whole script when it hits a single record missing a source.
Let me know if others agree that the API should return missing instead of throwing exceptions, and I'm more than happy to file a PR!
The current behaviour makes things like filtering records by something like
sourcedifficult if any sources are missing (.).I feel like returning missing might be a bit more idiomatic? It would also make the following code less perilous...
which is the code currently crashing my whole script when it hits a single record missing a source.
Let me know if others agree that the API should return
missinginstead of throwing exceptions, and I'm more than happy to file a PR!