Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions gortools/src/main/scala/gorsat/Analysis/GrannoAnalysis.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ object GrannoAnalysis {
def process(r: Row, BA: BinAggregator): Unit = {
val chr = r.chr
val binID = binIDgen.ID(1)
val sta : Int = 0
var sto : Int = 1000000000
try {
val (sta, sto) = (0, session.getProjectContext.getReferenceBuild.getBuildSize.get(r.chr))
BA.update(r, binID, chr, sta, sto)
sto = session.getProjectContext.getReferenceBuild.getBuildSize.get(r.chr)
} catch {
case _: Exception =>
val (sta, sto) = (0, 1000000000)
BA.update(r, binID, chr, sta, sto)
case _: Exception => // Ignore, use default value
}

BA.update(r, binID, chr, sta, sto)
} // One ouput row per input row
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ case class WhereAnalysis(context: GorContext, executeNor: Boolean, paramString:
}

override def process(r: Row): Unit = {
if (!isFilterValid || filter.evalBooleanFunction(r)) {
if ((isFilterValid && filter.evalBooleanFunction(r)) || (!isFilterValid && ignoreFilterError)) {
// Row is passed if the filter is invalid (TRYWHERE) or if the filter evaluates to true
statsInc("rows passed through filter")
super.process(r)
Expand Down
Loading