Skip to content

Commit

Permalink
change calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hrehrauer committed Dec 5, 2021
1 parent ec99455 commit 7163d04
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions R/app-gatkRnaHaplotyper.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,18 @@ ezMethodGatkRnaHaplotyper = function(input=NA, output=NA, param=NA){
ezSystem('mv local.bam withRg.bam')
}

ezSystem("samtools index withRg.bam")
cmd = paste(gatkCall, "SplitNCigarReads",
"-R", genomeSeq,
"-I", "withRg.bam",
"-L", exomeInterVals,
## this is the default! "-rf ReassignOneMappingQuality -RMQF 255 -RMQT 60 -U ALLOW_N_CIGAR_READS",
"-O splitNtrim.bam")
ezSystem(cmd)

ezSystem("samtools index splitNtrim.bam")

#BaseRecalibration is done only if known sites are available
if(param$knownSitesAvailable){
if(file.exists(dbsnpFile)){
cmd = paste(gatkCall, "BaseRecalibrator",
"-R", genomeSeq,
"-I splitNtrim.bam",
Expand All @@ -68,13 +70,15 @@ ezMethodGatkRnaHaplotyper = function(input=NA, output=NA, param=NA){
"--add-output-sam-program-record",
"--bqsr-recal-file recal.table",
"--output recal.bam")
ezSystem(cmd)
} else {
ezSystem('mv splitNtrim.bam recal.bam')
}
ezSystem("samtools index recal.bam")

########### haplotyping
outputFile = basename(output$getColumn("GVCF"))# paste0(sampleName, ".g.vcf.gz")
cmd = paste(gatkCal,'HaplotypeCaller',
cmd = paste(gatkCall,'HaplotypeCaller',
"-R", genomeSeq,
"-I recal.bam",
"-L", exomeInterVals,
Expand Down

0 comments on commit 7163d04

Please sign in to comment.