Skip to content

Commit

Permalink
add lee2023.rda
Browse files Browse the repository at this point in the history
Signed-off-by: Daena Rys <[email protected]>
  • Loading branch information
Daenarys8 committed Sep 25, 2024
1 parent e58cb4a commit 90a8828
Show file tree
Hide file tree
Showing 26 changed files with 910 additions and 209 deletions.
5 changes: 5 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ License: Artistic-2.0
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Depends:
R (>= 4.0),
SummarizedExperiment,
SingleCellExperiment,
TreeSummarizedExperiment (>= 1.99.3),
URL: https://github.com/NCBI-Codeathons/amr-2024-team-lahti
BugReports: https://github.com/NCBI-Codeathons/amr-2024-team-lahti/issues
Suggests:
Expand Down
87 changes: 87 additions & 0 deletions R/teamlahti.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#' \code{teamlahti} Package.
#'
#' \code{teamlahti} aims to develop [R/Bioconductor](https://www.bioconductor.org/)
#' tools to analyze AMR data by integrating publicly available human gut
#' metagenomes with ARG profiles (e.g.
#' [metagenomics](https://www.nature.com/subjects/metagenomics)) and
#' epidemiological, transmission data to study AMR gene co-migration.
#'
#' @name teamlahti-package
"_PACKAGE"
NULL


#' teamlahti datasets
#'
#' teamlahti provides Lee2023 dataset derived from independent experimental
#' studies.The dataset represents instances of the TreeSummarizedExperiment to
#' serve as tools to practice the teamlahti functionality.
#'
#' Currently, the following datasets are available:
#' \itemize{
#' \item{\code{\link{Lee2023}}: A TreeSummarizedExperiment with 9,251 samples}
#' }
#'
#' @name teamlahti-datasets
#' @docType data
#' @keywords datasets
#'
#' @examples
#' # Load dataset from teamlahti
#' library(teamlahti)
#' data("Lee2023", package = "teamlahti")
#'
#' # In this case, the dataset is a TreeSE, so it is renamed as tse
#' tse <- Lee2023
#'
#' # Print summary
#' tse
NULL

#' Metagenome assembly data
#'
#' Lee2023 includes a total of 9,251 human microbiome samples from multiple body
#' sites (7718 stool, 783 oral cavity, 410 skin, 150 airway, 93 nasal cavity,
#' 88 vagina, and 9 milk) which had been sequenced in various studies.
#'
#' @format A TreeSummarizedExperiment with 4182 features and 5195 samples. The
#' rowData contains taxonomic information at Kingdom, Phylum, Class, Order,
#' Family and Genus level. The colData includes:
#'
#' \describe{
#' \item{Tier_1.Exclusion_before_analysis}
#' \item{Tier_2.Recover_all_40_SCGs}
#' \item{Tier_3.Adult_stool_from_well_sampled_countries}
#' \item{Tier_4.Adult_stool_from_healthy_subjects_not_currently_on_antibiotic}
#' \item{Study}
#' \item{Sample_ID}
#' \item{Sample_assembly_ID}
#' \item{NumReads}
#' \item{NumBases}
#' \item{MedianReadLength}
#' \item{BodySite}
#' \item{BodySubsite}
#' \item{AgeYears}
#' \item{AgeCategory}
#' \item{InfantAge}
#' \item{Westernized}
#' \item{Country}
#' \item{Gender}
#' \item{BMI}
#' \item{Disease}
#' \item{antibiotic_exposure_status_descriptive}
#' \item{antibiotic_current_use_binary}
#' }
#'
#' @name Lee2023
#' @docType data
#' @keywords datasets
#' @usage data(Lee2023)
#' @seealso \code{\link{teamlahti-datasets}}
#' @author Lee, K., Raguideau, S., Sirén, K. et al.
#' @references
#' Lee, K., Raguideau, S., Sirén, K. et al.
#' Population-level impacts of antibiotic usage on the human gut microbiome.
#' Nat Commun 14, 1191 (2023). \url{https://doi.org/10.1038/s41467-023-36633-7}
#'
NULL
6 changes: 5 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ reference:
desc: ~
- title: Internals
desc: ~
contents:
- '`Lee2023`'
- '`teamlahti-datasets`'
- '`teamlahti-package`'
navbar:
type: inverse
left:
Expand Down Expand Up @@ -36,7 +40,7 @@ navbar:
href: https://github.com/NCBI-Codeathons/amr-2024-team-lahti
- icon: fa-file-code-o
text: "Methods"
href: https://github.com/NCBI-Codeathons/amr-2024-team-lahti
href: reference/index.html
- icon: fa-github fa-lg
text: "github"
href: https://github.com/NCBI-Codeathons/amr-2024-team-lahti
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/404.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/articles/addqmd.html

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

91 changes: 27 additions & 64 deletions docs/articles/data_summary.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!DOCTYPE html>
<html lang="en"><head>
<script src="data_summary_files/libs/clipboard/clipboard.min.js"></script>
<script src="data_summary_files/libs/quarto-html/tabby.min.js"></script>
<script src="data_summary_files/libs/quarto-html/popper.min.js"></script>
<script src="data_summary_files/libs/quarto-html/tippy.umd.min.js"></script>
<link href="data_summary_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="data_summary_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="data_summary_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="data_summary_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.4.553">
<script src="site_libs/clipboard/clipboard.min.js"></script>
<script src="site_libs/quarto-html/tabby.min.js"></script>
<script src="site_libs/quarto-html/popper.min.js"></script>
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/light-border.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.4.555">

<title>Data Summary</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="data_summary_files/libs/revealjs/dist/reset.css">
<link rel="stylesheet" href="data_summary_files/libs/revealjs/dist/reveal.css">
<link rel="stylesheet" href="site_libs/revealjs/dist/reset.css">
<link rel="stylesheet" href="site_libs/revealjs/dist/reveal.css">
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand All @@ -29,11 +29,11 @@
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="data_summary_files/libs/revealjs/dist/theme/quarto.css">
<link href="data_summary_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css" rel="stylesheet">
<link href="data_summary_files/libs/revealjs/plugin/reveal-menu/menu.css" rel="stylesheet">
<link href="data_summary_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css" rel="stylesheet">
<link href="data_summary_files/libs/revealjs/plugin/quarto-support/footer.css" rel="stylesheet">
<link rel="stylesheet" href="site_libs/revealjs/dist/theme/quarto.css">
<link href="site_libs/revealjs/plugin/quarto-line-highlight/line-highlight.css" rel="stylesheet">
<link href="site_libs/revealjs/plugin/reveal-menu/menu.css" rel="stylesheet">
<link href="site_libs/revealjs/plugin/reveal-menu/quarto-menu.css" rel="stylesheet">
<link href="site_libs/revealjs/plugin/quarto-support/footer.css" rel="stylesheet">
<style type="text/css">

.callout {
Expand Down Expand Up @@ -358,6 +358,7 @@ <h2>Methods: Data Collection &amp; Compilation</h2>
</ul>
<p><img data-src="images/Disease.png"></p>
<p><img data-src="images/AgeCategory.png"></p>

<div class="quarto-auto-generated-content">
<div class="footer footer-default">

Expand All @@ -368,19 +369,19 @@ <h2>Methods: Data Collection &amp; Compilation</h2>
</div>

<script>window.backupDefine = window.define; window.define = undefined;</script>
<script src="data_summary_files/libs/revealjs/dist/reveal.js"></script>
<script src="site_libs/revealjs/dist/reveal.js"></script>
<!-- reveal.js plugins -->
<script src="data_summary_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/pdf-export/pdfexport.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/reveal-menu/menu.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/reveal-menu/quarto-menu.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/quarto-support/support.js"></script>
<script src="site_libs/revealjs/plugin/quarto-line-highlight/line-highlight.js"></script>
<script src="site_libs/revealjs/plugin/pdf-export/pdfexport.js"></script>
<script src="site_libs/revealjs/plugin/reveal-menu/menu.js"></script>
<script src="site_libs/revealjs/plugin/reveal-menu/quarto-menu.js"></script>
<script src="site_libs/revealjs/plugin/quarto-support/support.js"></script>


<script src="data_summary_files/libs/revealjs/plugin/notes/notes.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/search/search.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/zoom/zoom.js"></script>
<script src="data_summary_files/libs/revealjs/plugin/math/math.js"></script>
<script src="site_libs/revealjs/plugin/notes/notes.js"></script>
<script src="site_libs/revealjs/plugin/search/search.js"></script>
<script src="site_libs/revealjs/plugin/zoom/zoom.js"></script>
<script src="site_libs/revealjs/plugin/math/math.js"></script>
<script>window.define = window.backupDefine; window.backupDefine = undefined;</script>

<script>
Expand Down Expand Up @@ -575,81 +576,43 @@ <h2>Methods: Data Collection &amp; Compilation</h2>
});
</script>


<script>

// htmlwidgets need to know to resize themselves when slides are shown/hidden.

// Fire the "slideenter" event (handled by htmlwidgets.js) when the current

// slide changes (different for each slide format).

(function () {

// dispatch for htmlwidgets

function fireSlideEnter() {

const event = window.document.createEvent("Event");

event.initEvent("slideenter", true, true);

window.document.dispatchEvent(event);

}



function fireSlideChanged(previousSlide, currentSlide) {

fireSlideEnter();



// dispatch for shiny

if (window.jQuery) {

if (previousSlide) {

window.jQuery(previousSlide).trigger("hidden");

}

if (currentSlide) {

window.jQuery(currentSlide).trigger("shown");

}

}

}



// hookup for slidy

if (window.w3c_slidy) {

window.w3c_slidy.add_observer(function (slide_num) {

// slide_num starts at position 1

fireSlideChanged(null, w3c_slidy.slides[slide_num - 1]);

});

}



})();

</script>



<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
Expand Down
Loading

0 comments on commit 90a8828

Please sign in to comment.