Skip to content

Commit

Permalink
fixing wrong calling to NGSaligner
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacozzuto committed Jul 11, 2018
1 parent 6cbf83b commit 44981bb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/NGSaligner.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,24 @@
}
}

/*
* unique interface for extracting information from indexes
*/

def public genomeStatsFromIndex(String aligner) {
switch (aligner) {
case "bowtie2":
this.genomeStatsFromBowtie2Index()
break
case "bowtie":
this.genomeStatsFromBowtieIndex()
break
default:
break
}
}


/*
* Mapping SE and PE reads with STAR. Reads can be both gzipped and plain fastq
*/
Expand Down Expand Up @@ -209,6 +227,15 @@
bowtie2-inspect --summary ${this.index} | awk -F"\t" '{if (\$1~"Sequence") {split(\$2, a, " "); print a[1]"\t"\$3}}' > ${this.output}
"""
}

/*
* Get genome STATS from Bowtie index
*/

def private genomeStatsFromBowtieIndex() {
"""
bowtie-inspect --summary ${this.index} | awk -F"\t" '{if (\$1~"Sequence") {split(\$2, a, " "); print a[1]"\t"\$3}}' > ${this.output}
"""
}

}

0 comments on commit 44981bb

Please sign in to comment.