Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sailfish paired end #9

Merged
merged 15 commits into from
Feb 2, 2015
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
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class STAR extends CommandLineFunction {
var alpha: Boolean = false

this.wallTime = Option((8 * 60 * 60).toLong)
this.nCoresRequest = Option(8)
this.nCoresRequest = Option(16)
var gzip_regex = ".gz$".r

override def shortDescription = "STAR"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ import org.broadinstitute.sting.queue.function.CommandLineFunction
class Sailfish extends CommandLineFunction {


@Input(doc="input fastq file", shortName = "inFastq", fullName = "input_fastq_file", required = true)
@Input(doc="input fastq file, read1", shortName = "inFastq", fullName = "input_fastq_file", required = true)
var inFastq: File = _

@Input(doc="input fastq file, read 2", shortName = "inFastqPair", fullName = "input_fastq_file", required = false)
var inFastqPair: File = _

@Output(doc="output dir file", shortName = "outDir", fullName = "out_dir_file", required = true)
var outDir: File = _

Expand All @@ -18,18 +21,26 @@ class Sailfish extends CommandLineFunction {

@Argument(doc="sh script to output", shortName = "shScript", fullName = "ash_script", required = false)
var shScript: String = _

@Argument(doc="If provided, then the reads are strand-specific. Otherwise, the reads are assumed to be unstranded.",
shortName = "stranded", fullName = "strand_specific", required = false)
var stranded: Boolean = false

override def shortDescription = "sailfish"
this.nCoresRequest = Option(16)

this.wallTime = Option((4 * 60 * 60).toLong)

def commandLine = "sailfish_quant.py" +
required("-1", inFastq) +
optional("-2", inFastqPair) +
conditional(stranded, "--stranded") +
required("--out-dir", outDir) +
required("--index", index) +
required("-n", shScript) +
required("--out-sh", shScript) +
required("-i", index) +
"-p 16 --do-not-submit && echo $(tail -n 2 " +
"-p 16 --not-gzipped --do-not-submit && echo $(tail -n 2 " +
required(shScript) +
") | bash"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ object TsccUtils {
retval
}

def sailfishGenomeIndexLocation(genome: String) : String = {
//returns sailfish location for TSCC
var retval = "none"
if (genome == "hg19") {
retval = genome_directory + "/hg19/sailfish/gencode.v19.pc_lncRNA_transcripts.ercc_fluidigm_spikein.fa_sailfish_index_k31"
}else if(genome == "mm10") {
retval = genome_directory + "/mm10/sailfish_fixed/gencode.vM2.pc_lncRNA_transcripts.ercc_fluidigm_spikein.gfp.fa_sailfish_index"
}
retval
}


def chromSizeLocation(genome: String) : String = {
//Returns star genome Location for TSCC, could eventually be factored out into conf file

Expand Down