mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
More natural checks
This commit is contained in:
@@ -33,11 +33,11 @@ class GFFInterval(GenomicInterval):
|
||||
|
||||
# Handle feature, score column.
|
||||
self.feature_col = feature_col
|
||||
if self.feature_col >= self.nfields:
|
||||
if self.nfields <= self.feature_col:
|
||||
raise MissingFieldError("No field for feature_col (%d)" % feature_col)
|
||||
self.feature = self.fields[self.feature_col]
|
||||
self.score_col = score_col
|
||||
if self.score_col >= self.nfields:
|
||||
if self.nfields <= self.score_col:
|
||||
raise MissingFieldError("No field for score_col (%d)" % score_col)
|
||||
self.score = self.fields[self.score_col]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user