Skip to content

Commit

Permalink
update Rd files
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerpadhye committed Sep 12, 2024
1 parent 599c5fa commit 1a04458
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
12 changes: 6 additions & 6 deletions R/bold.analyze.align.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
#' @param ... additional arguments that can be passed to msa::msa() function.
#'
#' @details
#' `bold.analyze.align` retrieves the sequence information obtained using `bold.fetch` function and performs a multiple sequence alignment. Type of clustering method can be specified using the `align.method` argument. It utilizes the msa::msa() function with default settings but additional arguments can be passed via the `...` argument. Marker name provided must match with the standard marker names available on the BOLD webpage. Name for individual sequences in the output can be customized by using the `seq.name.fields` argument. If more than one field is specified, the name will follow the sequence of the fields given in the vector. Performing a multiple sequence alignment on large sequence data might slow the system. Additionally, users are responsible for verifying the sequence quality and integrity, as the function does not provide any checks on issues like STOP codons and indels within the data. The output of this function is a modified Barcode Core Data Model (BCDM) dataframe, which includes two additional columns: one for the aligned sequences and another for the names given to the sequences.
#' `bold.analyze.align` retrieves the sequence information obtained using `bold.fetch` function and performs a multiple sequence alignment. Type of clustering method can be specified using the `align.method` argument. It utilizes the `msa::msa()` function with default settings but additional arguments can be passed via the `...` argument. Marker name provided must match with the standard marker names available on the BOLD webpage (Ex. COI-5P). Name for individual sequences in the output can be customized by using the `seq.name.fields` argument. If more than one field is specified, the name will follow the sequence of the fields given in the vector. Performing a multiple sequence alignment on large sequence data might slow the system. Additionally, users are responsible for verifying the sequence quality and integrity, as the function does not provide any checks on issues like STOP codons and indels within the data by default. The output of this function is a modified Barcode Core Data Model (BCDM) dataframe, which includes two additional columns: one for the aligned sequences and another for the names given to the sequences.
#'
#' \emph{Note: }. Users are required to install and load the `Biostrings` and `msa` packages using `BiocManager` before running this function.
#'
#' @returns An 'output' list containing:
#' @returns
#' * bold.df.mod = A modified BCDM data frame with two additional columns (’aligned_seq’ and ’msa.seq.name’).
#'
#' @export
Expand All @@ -35,12 +35,12 @@
#' # Both the packages are installed using `BiocManager`.
#'
#' # Align the data (using bin_uri as the name for each sequence)
#' # seq.align <- bold.analyze.align(seq.data,
#' # seq.name.fields = c("bin_uri"),
#' # align.method="ClustalOmega")
#' seq.align <- bold.analyze.align(seq.data,
#' seq.name.fields = c("bin_uri"),
#' align.method="ClustalOmega")
#'
#' # Dataframe of the sequences (aligned) with their corresponding names
#' # head(seq.align)
#' head(seq.align)
#' }
#'
bold.analyze.align<-function (bold.df,
Expand Down
5 changes: 5 additions & 0 deletions R/bold.public.search.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@
#'
#' # Taxonomy
#' bold.data <- bold.public.search(taxonomy = "Panthera leo")
#'
#' #Result
#' head(bold.data,10)
#'
#' # Taxonomy and Geography
#' bold.data.taxo.geo <- bold.public.search(taxonomy = "Panthera uncia",
#' geography = "India")
#'
#' #Result
#' head(bold.data.taxo.geo,10)
#'
#' # Taxonomy, Geography and BINs
#' bold.data.taxo.geo.bin <- bold.public.search("Panthera leo",
#' geography = "India",
#' bins=c("BOLD:AAD6819"))
#'
#' #Result
#' bold.data.taxo.geo.bin
#'
#' @importFrom utils URLencode
Expand Down
11 changes: 5 additions & 6 deletions man/bold.analyze.align.Rd

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

5 changes: 5 additions & 0 deletions man/bold.public.search.Rd

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

0 comments on commit 1a04458

Please sign in to comment.