Skip to content

Commit

Permalink
Update package documentation and small fix in dpclust master file pip…
Browse files Browse the repository at this point in the history
…eline
  • Loading branch information
Stefan Dentro committed Nov 2, 2018
1 parent 9ec2a9f commit 8cd4615
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 63 deletions.
4 changes: 2 additions & 2 deletions R/preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ addVcfInfoCol = function(vcf, data, number, type, description, abbreviation) {
#' @param purities A vector with a purity value per sample
#' @param sex A vector with the sex of each donor
#' @param datafiles Vector with filenames in which the DPClust input is contained (Default: [samplename]_allDirichletProcessInfo.txt)
#' @param cnadatafiles A vector with CNA DPClust input files (Default: NULL)
#' @param cndatafiles A vector with CNA DPClust input files (Default: NULL)
#' @param indeldatafiles A vector with indel DPClust input files (Default: NULL)
#' @author sd11
#' @export
Expand Down Expand Up @@ -768,7 +768,7 @@ createProjectFile = function(outputfile, donornames, samplenames, sex, purities=
datafile=datafiles,
cellularity=purities,
sex=sex,
cnadatafile=ifelse(!is.null(cnadatafiles), cnadatafiles, NA),
cnadatafile=ifelse(!is.null(cndatafiles), cndatafiles, NA),
indeldatafiles=ifelse(!is.null(indeldatafiles), indeldatafiles, NA), stringsAsFactors=F)
write.table(output, file=outputfile, quote=F, row.names=F, sep="\t")
}
Expand Down
6 changes: 3 additions & 3 deletions inst/example/preproc_dpclust_master_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ option_list = list(
opt_parser = OptionParser(option_list=option_list)
opt = parse_args(opt_parser)

donornames = strsplit(opt$donornames, ",")
samplenames = strsplit(opt$samplenames, ",")
sex = strsplit(opt$sex, ",")
donornames = unlist(strsplit(opt$donornames, ","))
samplenames = unlist(strsplit(opt$samplenames, ","))
sex = unlist(strsplit(opt$sex, ","))
outputfile = opt$output

if (!is.null(opt$rho_and_psi)) {
Expand Down
2 changes: 1 addition & 1 deletion man/ascatNgsToBattenberg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ascatToBattenberg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions man/createProjectFile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 0 additions & 49 deletions man/load.data.Rd

This file was deleted.

0 comments on commit 8cd4615

Please sign in to comment.