Skip to content

Commit

Permalink
Slight changes to output file format
Browse files Browse the repository at this point in the history
  • Loading branch information
axelgschwind committed Sep 12, 2018
1 parent f0e0d6b commit 9dbeb58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion somatic/firstStep.R
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,9 @@ for (sam_no in 1:ncol(matrixOfLogFold)) {
}
fileToOut <- paste0(folder_name, sample_name, "/CNAs.txt")
fileConn<-file(fileToOut)
writeLines(c(paste("##"," QC ", finalPValue, collapse = " ")), fileConn)
writeLines(c(paste("##"," QC ", signif(finalPValue,2), collapse = " ")), fileConn)
close(fileConn)
print(found_CNVs_total)
write.table(found_CNVs_total, file = fileToOut, quote=F, row.names = F, sep="\t", append = T)
}
}
2 changes: 1 addition & 1 deletion somatic/helpersSomatic.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ plotFoundCNVs <- function(found_CNVs, toyLogFoldChange, toyBedFile, outputFolder
if(opt$debug) {
print(annotationGenes)
}
CNVtoOut <- matrix(c(chrom, toyBedFile[found_CNVs[s,2],2], toyBedFile[found_CNVs[s,3],3], vector_of_states[found_CNVs[s,4]], -1 * found_CNVs[s,1], annotationGenes), nrow=1)
CNVtoOut <- matrix(c(chrom, toyBedFile[found_CNVs[s,2],2], toyBedFile[found_CNVs[s,3],3], vector_of_states[found_CNVs[s,4]], round(-1 * found_CNVs[s,1],0), annotationGenes), nrow=1)
if(opt$debug)
{
print(CNVtoOut)
Expand Down

0 comments on commit 9dbeb58

Please sign in to comment.