Skip to content

Commit

Permalink
Merge pull request #4141 from Camila-goclowski/Filter,-Plot,-and-Expl…
Browse files Browse the repository at this point in the history
…ore_WIP

New Single Cell Tutorial in R
  • Loading branch information
hexylena authored Oct 2, 2023
2 parents ffedc4a + 3ca9f94 commit 0c9d252
Show file tree
Hide file tree
Showing 28 changed files with 889 additions and 38 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ cfusterbarcelo:
orcid: 0000-0002-4784-6957
bio: Post-doctoral researcher at UC3M

Camila-goclowski:
name: Camila Goclowski
joined: 2023-01
email: [email protected]
linkedin: camila-goclowski

charitylaw:
name: Charity Law
joined: 2018-09
Expand Down
55 changes: 17 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.0)
addressable (2.8.4)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
afm (0.2.2)
async (2.6.2)
console (~> 1.10)
fiber-annotation
io-event (~> 1.1)
timers (~> 4.1)
awesome_bot (1.20.0)
parallel (= 1.20.1)
bibtex-ruby (6.0.0)
Expand All @@ -23,9 +16,6 @@ GEM
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.2.2)
console (1.17.2)
fiber-annotation
fiber-local
csl (2.0.0)
namae (~> 1.0)
rexml
Expand All @@ -38,26 +28,22 @@ GEM
ffi (>= 1.15.0)
eventmachine (1.2.7)
fastimage (2.2.7)
ffi (1.15.5)
fiber-annotation (0.2.0)
fiber-local (1.0.0)
ffi (1.16.2)
forwardable-extended (2.6.0)
google-protobuf (3.23.3-x86_64-linux)
hashery (2.1.2)
google-protobuf (3.24.3-x86_64-linux)
highline (2.0.3)
html-proofer (5.0.7)
html-proofer (4.4.3)
addressable (~> 2.3)
async (~> 2.1)
mercenary (~> 0.3)
nokogiri (~> 1.13)
pdf-reader (~> 2.11)
parallel (~> 1.10)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
zeitwerk (~> 2.5)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-event (1.2.2)
jekyll (4.3.2)
addressable (~> 2.4)
colorator (~> 1.0)
Expand Down Expand Up @@ -94,40 +80,33 @@ GEM
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
namae (1.1.1)
nokogiri (1.15.2-x86_64-linux)
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
parallel (1.20.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
pdf-reader (2.11.0)
Ascii85 (~> 1.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
ttfunk
pkg-config (1.5.2)
public_suffix (5.0.1)
pkg-config (1.5.5)
public_suffix (5.0.3)
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (4.1.2)
ruby-rc4 (0.1.5)
rexml (3.2.6)
rouge (4.1.3)
safe_yaml (1.0.5)
sass-embedded (1.63.5-x86_64-linux-gnu)
sass-embedded (1.68.0)
google-protobuf (~> 3.23)
rake (>= 13.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
timers (4.3.5)
ttfunk (1.7.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.4.2)
unicode-display_width (2.5.0)
webrick (1.8.1)
yell (2.2.2)
zeitwerk (2.6.8)
zeitwerk (2.6.12)

PLATFORMS
x86_64-linux
Expand All @@ -150,4 +129,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
2.4.2
2.4.20
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: faq-page
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Introduction

You’ve previously done all the work to make a single cell matrix. Now it’s time to fully process our data using Seurat: remove low quality cells, reduce the many dimensions of data that make it difficult to work with, and ultimately try to define clusters and find some biological meaning and insights! There are many packages for analysing single cell data - Seurat ({% cite Satija2015 %}), Scanpy ({% cite Wolf2018 %}), Monocle ({% cite Trapnell2014 %}), Scater ({% cite McCarthy2017 %}), and many more. We’re working with Seurat in RStudio because it is well updated, broadly used, and highly trusted within the field of bioinformatics.

> <comment-title></comment-title>
> This tutorial is significantly based on the Seurat documentation({% cite Satija2015 %}) as well as [Seurat's Guided Clustering Tutorial](https://satijalab.org/seurat/articles/pbmc3k_tutorial.html).
{: .comment}

> <agenda-title></agenda-title>
>
> In this tutorial, we will cover:
>
> 1. TOC
> {:toc}
>
{: .agenda}

We’ll provided you with experimental data to analyse from a mouse dataset of fetal growth restriction ({% cite Bacon2018 %}). This is the full dataset generated from [this tutorial]({% link topics/single-cell/tutorials/scrna-case_alevin/tutorial.md %}).

# Get Data onto Galaxy
To start, let's get our dataset loaded into Galaxy.

You can access the data for this tutorial in multiple ways:
1. **EBI Data Retrieval** - You may retrieve that files necessary to construct a Seurat Object in this way.Doing to will alleviate the necessity to convert AnnData (Python) objects into Seurat (R) objects:

> <hands-on-title>GetData</hands-on-title>
>
> Run{% tool [EBI SCXA Data Retrieval](toolshed.g2.bx.psu.edu/repos/ebi-gxa/retrieve_scxa/retrieve_scxa/v0.0.2+galaxy2) %} with the following parameters:
> - *"SC-Atlas experiment accession"*: `E-MTAB-6945`
> - *"Choose the type of matrix to download"*: `Raw filtered counts`
{: .hands_on}

2. **Importing from a history** - You can import [this history](https://usegalaxy.eu/u/camila-goclowski/h/fpe)

{% snippet faqs/galaxy/histories_import.md %}
This also alleviates the necessity to convert the AnnData object into a Seurat one.

3. **Uploading from Zenodo** (see below)

> <hands-on-title>Option 3: Uploading from Zenodo</hands-on-title>
>
> 1. Create a new history for this tutorial
> 2. Import the AnnData object from [Zenodo]({{ page.zenodo_link }})
>
> ```
> {{ page.zenodo_link }}/files/Mito-counted_AnnData
> ```
>
> {% snippet faqs/galaxy/datasets_import_via_link.md %}
>
> 3. **Rename** {% icon galaxy-pencil %} the datasets `Mito-counted AnnData`
> 4. Check that the datatype is `h5ad`
>
> {% snippet faqs/galaxy/datasets_change_datatype.md datatype="h5ad" %}
>
{: .hands_on}
# Important tips for easier analysis
{% snippet faqs/galaxy/tutorial_mode.md %}
> <comment-title></comment-title>
> - The Galaxy tool search panel sometimes doesn't find the tools we need from the thousands available.
> - You'll have a much easier time selecting tools from the panel (if you aren't using tutorial mode!) if you are on the [https://humancellatlas.usegalaxy.eu](https://humancellatlas.usegalaxy.eu)
{: .comment}
# Open RStudio in Galaxy
You now should have imported the matrix.mtx, genes.tsv, barcodes.tsv, and exp_design.tsv files into your Galaxy history. For the rest of the workflow, let's move onto RStudio and get coding!
> <hands-on-title>Open RStudio in Galaxy</hands-on-title>
> Run {% tool [RStudio](interactive_tool_rstudio)%}
{: .hands_on}
><comment-title>Next Step</comment-title>
> The interactive RStudio tool should begin to load now. Make your way over to your Active Interactive Tools page (User (in the top bar of the usegalaxy page)> Active Interactive Tools > RStudio)
>
>Alternatively, you may use the view (eye) button in your Galaxy History to open the interactive RStudio environment.
{: .comment}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# This is the bibliography file for your tutorial.
#
# To add bibliography (bibtex) entries here, follow these steps:
# 1) Find the DOI for the article you want to cite
# 2) Go to https://doi2bib.org and fill in the DOI
# 3) Copy the resulting bibtex entry into this file
#
# To cite the example below, in your tutorial.md file
# use {% cite Batut2018 %}
#
# If you want to cite an online resourse (website etc)
# you can use the 'online' format (see below)
#
# You can remove the examples below
@article{Bacon2018,
doi = {10.3389/fimmu.2018.02523},
url = {https://doi.org/10.3389/fimmu.2018.02523},
year = {2018},
month = nov,
publisher = {Frontiers Media {SA}},
volume = {9},
author = {Wendi A. Bacon and Russell S. Hamilton and Ziyi Yu and Jens Kieckbusch and Delia Hawkes and Ada M. Krzak and Chris Abell and Francesco Colucci and D. Stephen Charnock-Jones},
title = {Single-Cell Analysis Identifies Thymic Maturation Delay in Growth-Restricted Neonatal Mice},
journal = {Frontiers in Immunology}
}

@article{Wolf2018,
doi = {10.1186/s13059-017-1382-0},
url = {https://doi.org/10.1186/s13059-017-1382-0},
year = {2018},
month = feb,
publisher = {Springer Science and Business Media {LLC}},
volume = {19},
number = {1},
author = {F. Alexander Wolf and Philipp Angerer and Fabian J. Theis},
title = {{SCANPY}: large-scale single-cell gene expression data analysis},
journal = {Genome Biology}
}

@article{Satija2015,
doi = {10.1038/nbt.3192},
url = {https://doi.org/10.1038/nbt.3192},
year = {2015},
month = May,
publisher = {Nature Anerica Inc. All rights reserved},
volume = {33},
number = {5},
author = {Rahul Satija and Jeffrey A. Farrell and David Gennert and Alexander F Schier and Aviv Regev},
title = {Spatial reconstruction of single-cell gene expression data},
journal = {Nature Biotechnology}
}

@article{Trapnell2014,
doi = {10.1038/nbt.2859},
url = {https://doi.org/10.1038/nbt.2859},
year = {2014},
month = April,
publisher = {Nature Anerica Inc. All rights reserved},
volume = {32},
number = {4},
author = {Cole Trapnell and Davide Cacchiarelli and Jonna Grimsby and Prapti Pokharel and Shuqiang Li and Michael Morse and Niall J Lennon and Kenneth J Livak and Tarjei S Mikkelsen and John L Rinn},
title = {Pseudo-temporal ordering of individual cells reveals dynamics and regulators of cell fate decisions},
journal = {Nature Biotechnology}
}

@article{McCarthy2017,
doi = {10.1093/bioinformatics/btw777},
url = {https://doi.org/10.1093/bioinformatics/btw777},
year = {2017},
month = January,
publisher = {Advanced Access Publication},
volume = {33},
number = {8},
author = {Davis J McCarthy and Kieran R Campbell and Aaron T L Lun and Quin F Wills},
title = {Scater: pre-processing, quality control, normalization and visualization of single-cell RNA-seq data in R},
journal = {Bioinformatics}
}
Loading

0 comments on commit 0c9d252

Please sign in to comment.