Skip to content

Commit

Permalink
pr comments: improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kdreval committed Mar 15, 2024
1 parent e7791d8 commit 8839fc1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions R/bins_to_bedgraph.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param min_value Minimum value to retain the bin.
#' @param filename Path to a local file on drive to save the resulting file.
#'
#' @return file
#' @return full path to the file that was written
#'
#' @export
bins_to_bedgraph = function(bin_df,min_value = 3,filename = "test.bed"){
Expand All @@ -17,8 +17,8 @@ bins_to_bedgraph = function(bin_df,min_value = 3,filename = "test.bed"){
bed_cols = mutate(bed_cols,chr = paste0("chr",chr))
}
bed_cols = dplyr::filter(bed_cols,value > min_value)
this = dplyr::filter(chr1p,bin_start==27985000)
this = dplyr::filter(chr1p,bin_start==27985000)
bed_cols = mutate(bed_cols,end=format(end, scientific=F),start=format(start, scientific=F))
write.table(bed_cols,row.names=F,col.names=F,quote=F,sep="\t",file=filename)

return(filename)
}
3 changes: 2 additions & 1 deletion R/cache_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @param function_params TODO.
#' @param additional_details TODO.
#'
#' @return file
#' @return full path to the file that was written
#'
#' @export
cache_output = function(result_df,
Expand Down Expand Up @@ -44,4 +44,5 @@ cache_output = function(result_df,

message(paste("creating/overwriting",cache_file_name))
write_tsv(result_df,file=cache_file_name)
return(cache_file_name)
}
2 changes: 1 addition & 1 deletion R/calculate_tmb.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @title Return TMB counts.
#' @title Calculate tumour mutation burden.
#'
#' @description This function implements tumor mutation burden calculation.
#' TODO: add more details.
Expand Down
3 changes: 2 additions & 1 deletion R/copy_no_clobber.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param to_file TODO.
#' @param force TODO.
#'
#' @return file
#' @return full path to the file that was written
#'
#' @export
copy_no_clobber = function(from_file,
Expand All @@ -19,4 +19,5 @@ copy_no_clobber = function(from_file,
if(force){
file.copy(from_file,to_file)
}
return(to_file)
}
2 changes: 1 addition & 1 deletion man/bins_to_bedgraph.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/cache_output.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/calculate_tmb.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/copy_no_clobber.Rd

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

0 comments on commit 8839fc1

Please sign in to comment.