Skip to content

Commit

Permalink
fix documentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmorin committed Jan 13, 2025
1 parent ee585ce commit b3da51a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
8 changes: 2 additions & 6 deletions R/decorate_bed.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#' Add reciprocal events to a bedpe file
#'
#' @param bed_df
#' @param bed_df A bed or bedpe data frame (e.g. containing SVs from SVAR or Manta)
#' @param shift_by The positions of START_A and END_A will be increased by this value (default 30). When combining this with decorate_bed, this offset ensures IGV shows the intended colour instead of the colour of the reciprocal event.

#'
#' @return data frame with each row duplicated and the contents of CHROM_A, START_A etc swapped with CHROM_B, START_B
#' @export
#'
Expand All @@ -11,7 +11,6 @@
#'
#' recip_bed = reciprocate_bedpe(in_bed)
#' coloured_bed = decorate_bed(recip_bed,
#' is_bedpe=T,
#' colour_mapping = get_gambl_colours("chromosome",
#' as_rgb_string = T))
#'
Expand All @@ -31,7 +30,6 @@ reciprocate_bedpe = function(bed_df,shift_by=30){
#' Decorate a bed or bedpe file
#'
#' @param bed_df A bed or bedpe data frame
#' @param is_bedpe Set to FALSE if the input is a in the basic bed format rather than bedpe (default TRUE)
#' @param colour_by Specify the name of the column used to define the colours
#' @param colour_mapping Named vector specifying the colour for each possible value in the colour_by column
#' @param new_column_name The name to use for the colour column (default is 'color' for IGV compatability)
Expand All @@ -43,11 +41,9 @@ reciprocate_bedpe = function(bed_df,shift_by=30){
#'
#' in_bed = get_combined_sv()
#' coloured_bed = decorate_bed(in_bed,
#' is_bedpe=T,
#' colour_mapping = get_gambl_colours("chromosome",
#' as_rgb_string = T))
decorate_bed = function(bed_df,
is_bedpe=FALSE,
colour_by="CHROM_B",
colour_mapping,
new_column_name="color"){
Expand Down
4 changes: 0 additions & 4 deletions man/decorate_bed.Rd

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

3 changes: 1 addition & 2 deletions man/reciprocate_bedpe.Rd

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

0 comments on commit b3da51a

Please sign in to comment.