Skip to content

Commit

Permalink
Merge pull request #8 from albarema/webpage
Browse files Browse the repository at this point in the history
updates practical
  • Loading branch information
albarema authored May 3, 2024
2 parents d5a3c27 + 473a54b commit 17c7bff
Show file tree
Hide file tree
Showing 24 changed files with 2,304 additions and 596 deletions.
3 changes: 3 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ website:
- title: "Use cases"
contents:
- use_cases.qmd
- section: "General"
contents:
- develop/examples/mkdocs_pages.qmd
- section: "NGS data"
contents:
- develop/examples/NGS_OS_FAIR.qmd
Expand Down
5 changes: 3 additions & 2 deletions _site/develop/03_DOD.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ <h1 class="title">3. Data organization and storage</h1>
<div>
<div class="quarto-title-meta-heading">Modified</div>
<div class="quarto-title-meta-contents">
<p class="date-modified">April 26, 2024</p>
<p class="date-modified">April 29, 2024</p>
</div>
</div>

Expand Down Expand Up @@ -724,6 +724,8 @@ <h2 class="anchored" data-anchor-id="template-engine">Template engine</h2>
</div>
<div class="callout-body-container callout-body">
<ul>
<li><a href="https://github.com/hds-sandbox/cookiecutter-template">Sandbox Project/Data analysis template</a></li>
<li><a href="https://github.com/hds-sandbox/cc-data-template">Sandbox Data/Assay template</a></li>
<li>Cookiecutter template for <a href="https://github.com/drivendata/cookiecutter-data-science">Data science projects</a></li>
<li>Brickmanlab template for <a href="https://github.com/brickmanlab/ngs-template">NGS data</a>: similar to the folder structures in the examples above. You can download and modify it to suit your needs.</li>
</ul>
Expand All @@ -742,7 +744,6 @@ <h3 class="anchored" data-anchor-id="quick-tutorial-on-cookiecutter">Quick tutor
</div>
<div class="callout-body-container callout-body">
<p><strong>Learn how to create your own template <a href="../develop/practical_workshop.html">here</a>.</strong></p>
<p>We offer workshops on practical RDM for biodata. Keep an eye on the upcoming events on the <a href="https://hds-sandbox.github.io/news/news.html">Sandbox website</a>.</p>
</div>
</div>
</section>
Expand Down
291 changes: 109 additions & 182 deletions _site/develop/04_metadata.html

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions _site/develop/05_VC.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ <h1 class="title">5. Data Analysis with Version Control</h1>
<div>
<div class="quarto-title-meta-heading">Modified</div>
<div class="quarto-title-meta-contents">
<p class="date-modified">April 17, 2024</p>
<p class="date-modified">May 2, 2024</p>
</div>
</div>

Expand Down Expand Up @@ -406,7 +406,7 @@ <h4 class="anchored" data-anchor-id="from-project-folders-to-git-repositories">F
</div>
<div class="callout-body-container callout-body">
<ul>
<li>If you don’t have a GitHub account yet, click <a href="https://github.com/signup">here</a>.</li>
<li>If you don’t have a GitHub account yet, click <a href="https://github.com/signup">here</a></li>
<li>Install Git from <a href="https://git-scm.com/downloads">Git webpage</a></li>
</ul>
</div>
Expand Down Expand Up @@ -445,20 +445,20 @@ <h5 class="anchored" data-anchor-id="converting-folders-to-git-repositories">Con
<div>
<div class="callout-exercise">
<ol type="1">
<li>First, initialize the repository using the command <code>git init</code>. This command is run only once, even in collaborative projects (<a href="https://git-scm.com/docs/git-init"><code>git init</code></a>).</li>
<li>Once the repository is initialized, create a remote repository on GitHub.</li>
<li>Add the remote URL to your local git repository using git remote add origin &lt;URL&gt;`. This associates the remote URL with the name “origin”.</li>
<li>Ensure you have at least one commit in your history by staging existing files with <code>git add</code> and then creating a snapshot, known as committing, with <code>git commit</code>.</li>
<li>Finally, push your local commits to the remote repository and establish a tracking relationship using <code>git push -u origin master</code>.</li>
<li>Initialize the repository: Begin by running the command <code>git init</code> in your project directory. This command sets up a new Git repository in the current directory and is executed only once, even for collaborative projects. See (<a href="https://git-scm.com/docs/git-init"><code>git init</code></a>) for more details.</li>
<li>Create a remote repository: Once the local repository is initialized, create am empty new repository on GitHub.</li>
<li>Connect the remote repository: Add the GitHub repository URL to your local repository using the command <code>git remote add origin &lt;URL&gt;</code>. This associates the remote repository with the name “origin.”</li>
<li>Commit changes: If you have files you want to add to your repository, stage them using <code>git add .</code>, then create a commit to save a snapshot of your changes with <code>git commit -m "add local folder"</code>.</li>
<li>Push to GitHub: To synchronize your local repository with the remote repository and establish a tracking relationship, push your commits to the GitHub repository using <code>git push -u origin main</code>.</li>
</ol>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="set-up-a-git-repository-and-copy-your-project-folder" class="level5">
<h5 class="anchored" data-anchor-id="set-up-a-git-repository-and-copy-your-project-folder">Set Up a Git Repository and copy your project folder</h5>
<section id="setting-up-a-git-repository-and-copying-an-existing-folder" class="level5">
<h5 class="anchored" data-anchor-id="setting-up-a-git-repository-and-copying-an-existing-folder">Setting Up a Git Repository and copying an existing folder</h5>
<p>Alternatively to converting folders to repositories, you can create a new repository remotely, and then clone (<code>git clone</code>) it locally. Here, <code>git init</code> is not needed. You can move the files into the repository locally (<code>git add</code>, <code>git commit</code>, and <code>git push</code>). If you are creating a collaborative repository, you can now share it with your colleagues.</p>
<div class="callout callout-style-default callout-tip callout-titled" title="Tips to write good commit messages">
<div class="callout-header d-flex align-content-center">
Expand All @@ -478,8 +478,8 @@ <h5 class="anchored" data-anchor-id="set-up-a-git-repository-and-copy-your-proje
</section>
<section id="github-pages" class="level3">
<h3 class="anchored" data-anchor-id="github-pages">Github pages</h3>
<p>After setting up your repository on GitHub, take advantage of the opportunity to enhance it by adding your data analysis reports. Whether they are in Jupyter Notebooks, Rmarkdowns, or HTML reports, you can showcase them on a <a href="https://pages.github.com/">GitHub Page</a>.</p>
<p>Once you have created your repository (and put it in GitHub), you have now the opportunity to add your data analysis reports that you created, in either Jupyter Notebooks, Rmarkdowns, or HTML reports, in a <a href="https://pages.github.com/">GitHub Page website</a>. Creating a GitHub page is very simple, and we recommend that you follow the nice tutorial that GitHub has put for you.</p>
<p>After setting up your repository on GitHub, take advantage of the opportunity to enhance it by adding your data analysis reports. Whether they are in Jupyter Notebooks, R Markdown files, or HTML reports, you can showcase them on a <a href="https://pages.github.com/">GitHub Page</a>.</p>
<p>Once you have created your repository (and put it in GitHub), you have now the opportunity to add your data analysis reports that you created, in either Jupyter Notebooks, R Markdown files, or HTML reports, in a <a href="https://pages.github.com/">GitHub Page website</a>. Creating a GitHub page is very simple, and we recommend that you follow the nice tutorial that GitHub has put for you.</p>
<p>For simplicity, we recommend using <a href="https://quarto.org/">Quarto</a> or <a href="https://www.mkdocs.org/">MkDocs</a>. Visit their websites and follow the instructions to get started.</p>
<div class="callout callout-style-default callout-note callout-titled" title="Tutorial links">
<div class="callout-header d-flex align-content-center">
Expand Down Expand Up @@ -510,6 +510,7 @@ <h2 class="anchored" data-anchor-id="wrap-up">Wrap up</h2>
<h3 class="anchored" data-anchor-id="sources">Sources</h3>
<ul>
<li><a href="https://guides.library.jhu.edu/c.php?g=1096705&amp;p=8066729">Version Control and Code Repository Link</a>.</li>
<li><a href="https://education.github.com/git-cheat-sheet-education.pdf">Git cheat sheet</a>.</li>
</ul>


Expand Down
3 changes: 2 additions & 1 deletion _site/develop/06_pipelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h1 class="title">6. Processing and analyzing biodata</h1>
<div>
<div class="quarto-title-meta-heading">Modified</div>
<div class="quarto-title-meta-contents">
<p class="date-modified">April 22, 2024</p>
<p class="date-modified">April 29, 2024</p>
</div>
</div>

Expand Down Expand Up @@ -316,6 +316,7 @@ <h3 class="anchored" data-anchor-id="sources">Sources</h3>
<li><a href="https://www.britishecologicalsociety.org/wp-content/uploads/2017/12/guide-to-reproducible-code.pdf">Guide to reproducible code in ecology and evolution</a></li>
<li><a href="https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001745">Best practices for Scientific computing</a></li>
<li><a href="https://elixir-europe.org/platforms/tools/software-best-practices">Elixir Software Best Practices</a></li>
<li><a href="https://faircookbook.elixir-europe.org/content/recipes/applied-examples/fair-workflows.html">faircookbook worflows</a></li>
</ul>


Expand Down
38 changes: 34 additions & 4 deletions _site/develop/examples/NGS_OS_FAIR.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,22 +162,39 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" aria-expanded="true">
<span class="menu-text">NGS data</span></a>
<span class="menu-text">General</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
</div>
<ul id="quarto-sidebar-section-1" class="collapse list-unstyled sidebar-section depth1 show">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../../develop/examples/mkdocs_pages.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Exercise 5: make a project folder and publish a data analysis webpage</span></a>
</div>
</li>
</ul>
</li>
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-2" aria-expanded="true">
<span class="menu-text">NGS data</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-2" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
</div>
<ul id="quarto-sidebar-section-2" class="collapse list-unstyled sidebar-section depth1 show">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../../develop/examples/NGS_OS_FAIR.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text">Applied Open Science and FAIR principles to NGS</span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../../develop/examples/NGS_management.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">NGS data strategies</span></a>
<span class="menu-text">Effective RDM Practices in NGS Analysis</span></a>
</div>
</li>
<li class="sidebar-item">
Expand All @@ -189,8 +206,21 @@
</ul>
</li>
<li class="sidebar-item sidebar-item-section">
<span class="sidebar-item-text sidebar-link text-start">
<span class="menu-text">Proteomics</span></span>
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-3" aria-expanded="true">
<span class="menu-text">Proteomics</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-3" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
</div>
<ul id="quarto-sidebar-section-3" class="collapse list-unstyled sidebar-section depth1 show">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../../develop/examples/proteomics_metadata.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Protemics metadata (<em>In development</em>)</span></a>
</div>
</li>
</ul>
</li>
</ul>
</div>
Expand Down
Loading

0 comments on commit 17c7bff

Please sign in to comment.