Skip to content
Snippets Groups Projects
Commit e714e45d authored by bow's avatar bow
Browse files

Avoid NullPointerException when checking for R2 in Gentrap

parent 40eeaa44
No related branches found
No related tags found
No related merge requests found
......@@ -790,7 +790,7 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
)
/** Convenience method to check whether the library is paired or not */
def paired: Boolean = Option(config("R2").asFile).isDefined
def paired: Boolean = config.contains("R2")
/** Alignment results of this library ~ can only be accessed after addJobs is run! */
def alnFile: File = mappingJob.outputFiles("finalBamFile")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment