Skip to content
Snippets Groups Projects
Commit e4d8e06c authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added htseqCount job

parent af59b702
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,11 @@ class Gentrap(val root: Configurable) extends QScript
/** Default pipeline config */
override def defaults = Map(
"htseqcount" -> Map("stranded" -> (strandProtocol match {
case NonSpecific => "no"
case Dutp => "reverse"
case _ => null
}),
"merge_strategy" -> "preprocessmergesam",
"gsnap" -> Map(
"novelsplicing" -> 1,
......
package nl.lumc.sasc.biopet.pipelines.gentrap.measures
import nl.lumc.sasc.biopet.core.annotations.AnnotationGtf
import nl.lumc.sasc.biopet.extensions.HtseqCount
import nl.lumc.sasc.biopet.utils.config.Configurable
import org.broadinstitute.gatk.queue.QScript
/**
* Created by pjvan_thof on 1/12/16.
*/
class FragmentsPerGene(val root: Configurable) extends QScript with Measurement {
def bamToCountFile(id: String, bamFile: File): (String, File) = ???
class FragmentsPerGene(val root: Configurable) extends QScript with Measurement with AnnotationGtf {
def bamToCountFile(id: String, bamFile: File): (String, File) = {
//TODO: ID sorting job
val job = new HtseqCount(this)
job.inputAnnotation = annotationGtf
job.inputAlignment = bamFile
job.output = new File(outputDir, s"$name.$id.counts")
job.format = Option("bam")
// We are forcing the sort order to be ID-sorted, since HTSeq-count often chokes when using position-sorting due
// to its buffer not being large enough.
//TODO: ID sorting job
//job.order = Option("name")
id -> job.output
}
def mergeArgs = MergeArgs(List(1), 2, numHeaderLines = 1, fallback = "0")
}
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