Skip to content

Commit

Permalink
Merge pull request #4403 from nomadscientist/remove_sc_tag
Browse files Browse the repository at this point in the history
remove single cell tag from tutorials
  • Loading branch information
hexylena authored Oct 10, 2023
2 parents 93c3c59 + a51681e commit 2f15950
Show file tree
Hide file tree
Showing 32 changed files with 16 additions and 45 deletions.
6 changes: 3 additions & 3 deletions _plugins/jekyll-jsonld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def generate_news_jsonld(page, site)
url: "#{site['url']}#{site['baseurl']}#{page['url']}",
name: page['title'],
headline: page.excerpt[0..100].gsub(/\n/, ' '), # TODO: remove html tags.
keywords: page.fetch('tags', []),
keywords: page['tags'] || [],
description: page.excerpt[0..100].gsub(/\n/, ' '), # TODO: remove html tags
articleBody: page.content, # TODO: remove html tags
datePublished: page.date,
Expand Down Expand Up @@ -395,7 +395,7 @@ def to_jsonld(material, topic, site)
end

# Keywords
data['keywords'] = [topic['name']] + material.fetch('tags', [])
data['keywords'] = [topic['name']] + (material['tags'] || [])
data['keywords'] = data['keywords'].join(', ')
# Zenodo links
if material.key?('zenodo_link')
Expand Down Expand Up @@ -532,7 +532,7 @@ def to_jsonld(material, topic, site)
data['about'] = about

data['educationalLevel'] = material.key?('level') ? eduLevel[material['level']] : 'Introductory'
data['mentions'] = material.fetch('tags', []).map { |x| { '@type': 'Thing', name: x } }
data['mentions'] = (material['tags'] || []).map { |x| { '@type': 'Thing', name: x } }
data['abstract'] = material['content'].split("\n").first

JSON.pretty_generate(data)
Expand Down
6 changes: 3 additions & 3 deletions _plugins/jekyll-topic-filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def self.list_videos(site)
#
def self.list_all_tags(site)
materials = process_pages(site, site.pages)
materials.map { |x| x.fetch('tags', []) }.flatten.sort.uniq
materials.map { |x| (x['tags'] || []) }.flatten.sort.uniq
end

def self.filter_by_topic(site, topic_name)
Expand All @@ -622,7 +622,7 @@ def self.filter_by_topic(site, topic_name)
resource_pages = materials.select { |x| x['topic_name'] == topic_name }

# If there is nothing with that topic name, try generating it by tags.
resource_pages = materials.select { |x| x.fetch('tags', []).include?(topic_name) } if resource_pages.empty?
resource_pages = materials.select { |x| (x['tags'] || []).include?(topic_name) } if resource_pages.empty?

# The complete resources we'll return is the introduction slides first
# (EDIT: not anymore, we rely on prioritisation!)
Expand All @@ -640,7 +640,7 @@ def self.filter_by_tag(site, topic_name)
materials = process_pages(site, site.pages)

# If there is nothing with that topic name, try generating it by tags.
resource_pages = materials.select { |x| x.fetch('tags', []).include?(topic_name) }
resource_pages = materials.select { |x| (x['tags'] || []).include?(topic_name) }

# The complete resources we'll return is the introduction slides first
# (EDIT: not anymore, we rely on prioritisation!)
Expand Down
2 changes: 1 addition & 1 deletion _plugins/notebook-jupyter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def jupyter_pre_render(site)
notebook_language = page.data['notebook'].fetch('language', 'python')

# Tag our source page
page.data['tags'] = [] unless page.data.key? 'tags'
page.data['tags'] = page.data['tags'] || []
page.data['tags'].push('jupyter-notebook')

puts "[GTN/Notebooks] Rendering #{notebook_language} #{fn}"
Expand Down
2 changes: 1 addition & 1 deletion _plugins/notebook-rmarkdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def generate(site)
fn = File.join('.', page.url).sub(/html$/, 'Rmd')

# Tag our source page
page.data['tags'] = [] unless page.data.key? 'tags'
page.data['tags'] = page.data['tags'] || []
page.data['tags'].push('rmarkdown-notebook')

puts "[GTN/Notebooks/R] Rendering RMarkdown #{fn}"
Expand Down
4 changes: 1 addition & 3 deletions _plugins/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ def initialize(tag_name, text, tokens)
end

def getlist(tutorial, attr)
[] if tutorial[attr].nil?

tutorial.fetch(attr, [])
tutorial[attr] || []
end

def render(context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ follow_up_training:
- bulk-music-3-preparebulk

tags:
- single-cell
- transcriptomics
- data management
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ contributions:
- MarisaJL

tags:
- single-cell
- transcriptomics
- data management

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ priority: 4
title: Comparing inferred cell compositions using MuSiC deconvolution
zenodo_link: https://zenodo.org/record/7319925
tags:
- single-cell
- transcriptomics
questions:
- How do the cell type distributions vary in bulk RNA samples across my variable of interest?
Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/bulk-music/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ redirect_from:
priority: 1
zenodo_link: https://zenodo.org/record/5719228
tags:
- single-cell
- transcriptomics
questions:
- How do we infer cell type proportions from bulk RNA-seq data?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ key_points:


tags:
- single-cell

contributions:
authorship:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ redirect_from:
- /topics/transcriptomics/tutorials/satac-preprocessing-tenx/tutorial
zenodo_link: "https://zenodo.org/record/7855968"
tags:
- single-cell
- 10x
- epigenetics
questions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
priority: 4

tags:
- single-cell

key_points:
- "Automated cell annotation is a useful tool for automatically assigning cell type labels to cell data."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ requirements:
- scrna-case_alevin
- scrna-case_alevin-combine-datasets
tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ requirements:


tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ requirements:
tutorials:
- galaxy-intro-jupyter
tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ key_points:
- Retreive partially analysed data from a public repository

tags:
- single-cell
- 10x
- paper-replication

Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/scrna-case_alevin/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ key_points:
- Create a scanpy-accessible AnnData object from FASTQ files, including relevant gene metadata

tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ requirements:
- scrna-case_alevin
- scrna-case_alevin-combine-datasets
tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ key_points:
- Cell cycle genes can conceal what is happening in your data if cells are grouping together according to their stage in the cycle
- Identifying the cell cycle genes and using them to regress out the effects of the cell cycle can reveal underlying patterns in the data
tags:
- single-cell
- 10x

contributions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ requirements:


tags:
- single-cell
- 10x
- paper-replication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ requirements:
- scrna-case_basic-pipeline
- scrna-case_JUPYTER-trajectories
tags:
- single-cell
- 10x
- paper-replication

Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/scrna-intro/slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
redirect_from:
- /topics/transcriptomics/tutorials/scrna-intro/slides
tags:
- single-cell

questions:
- How are samples compared?
Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/scrna-plant/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ redirect_from:
- /topics/transcriptomics/tutorials/scrna-plant/tutorial
zenodo_link: 'https://zenodo.org/record/4597857'
tags:
- single-cell
- plants
- paper-replication
questions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
video: yes
zenodo_link: ""
tags:
- single-cell
questions:
- "What is a batch when it comes to single cells?"
- "What’s the difference between a barcode and an index?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ redirect_from:
- /topics/transcriptomics/tutorials/scrna-preprocessing-tenx/tutorial
zenodo_link: "https://zenodo.org/record/3457880"
tags:
- single-cell
- 10x
questions:
- What is 10X?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
title: "Dealing with Cross-Contamination in Fixed Barcode Protocols"
zenodo_link: ""
tags:
- single-cell
questions:
- "What is cross-contamination?"
- "What are fixed barcodes?"
Expand Down
13 changes: 6 additions & 7 deletions topics/single-cell/tutorials/scrna-preprocessing/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ priority: 1

zenodo_link: "https://zenodo.org/record/3253142"
tags:
- single-cell
questions:
- "What is single-cell?"
- "How do we process a batch?"
Expand Down Expand Up @@ -56,7 +55,7 @@ gitter: Galaxy-Training-Network/galaxy-single-cell



#### Why do Single Cell sequencing?
## Why do Single Cell sequencing?


Single-cell RNA (scRNA) sequencing is the technological successor to classical "bulk" RNA-seq, where samples are no longer defined at the tissue level but at the individual cell level. The bulk RNA-seq methods seen in [previous hands-on material]({% link topics/transcriptomics/tutorials/ref-based/tutorial.md %}) would give the average expression of genes in a sample, whilst overlooking the distinct expression profiles given by the cell sub-populations due to their heterogeneity.
Expand Down Expand Up @@ -116,7 +115,7 @@ The second part of this tutorial will deal with merging several output count mat

# Single-Batch Processing

### Data upload and organization
## Data upload and organization

In this tutorial we will be analysing scRNA-seq data of bone marrow cells taken from a single C57 mouse by *Herman et al.* ({% cite Herman2018 %}) and producing a count matrix that we can use for later analysis.

Expand Down Expand Up @@ -268,7 +267,7 @@ Before continuing let us first look back on some of the previous stages:
>
{: .comment}

#### Confirming Reads in the BAM file
### Confirming Reads in the BAM file

We now have a BAM file of our aligned reads, with cell and UMI barcodes embedded in the read headers. We also have the chromosome and base-pair positions of where these reads are aligned. The can be confirmed by peeking into the BAM file:

Expand Down Expand Up @@ -307,7 +306,7 @@ The fields of the BAM file can be better explained at section 1.4 of [the SAM sp
* `nM`: The number of base mismatches in the alignment of this read to the reference (here `1`).


#### Filtering the BAM File
### Filtering the BAM File

If we perform counting on the current BAM file we will be counting all reads, even the undesirable ones such as those that did not align so optimally.

Expand Down Expand Up @@ -530,7 +529,7 @@ Handling more than one batch of sequencing data is rather trivial when we take i
The first step merely requires us to run the same workflow on each of our batches, using the exact same inputs except for the FASTQ paired data. The second step requires a minimal level of interaction from us; namely using a merge tool and selecting our matrices.


### Data upload and organisation
## Data upload and organisation

The count matrix we have generated in the previous section is too sparse to perform any reasonable analysis upon, and constitutes data only of a single batch. Here we will use more populated count matrices from multiple batches, under the assumption that we now know how to generate each individual one of them using the steps provided in the previous section. This data is available at [`Zenodo`](https://zenodo.org/record/3253142).

Expand Down Expand Up @@ -730,7 +729,7 @@ Let us now apply this protocol to our count matrix, and look for any cross-conta

The plot that follows tells us everything we need to know about each of our batches. Each batch is essentially tested against the full set of barcodes in order to assert that only the desired or 'Real' barcodes have been sequenced.

#### Cross-contamination Plot
### Cross-contamination Plot

![Contamination Plots]({% link topics/single-cell/images/scrna-pre-processing/scrna_crosscontamination.png %} "The Pre-filter and Post-filter plots")

Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/scrna-raceid/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ redirect_from:
- /topics/transcriptomics/tutorials/scrna-raceid/tutorial
zenodo_link: 'https://zenodo.org/record/1511582'
tags:
- single-cell
questions:
- What is normalisation and why is it necessary?
- How many types of unwanted variation are there?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ requirements:
- scrna-preprocessing
- scrna-preprocessing-tenx
tags:
- single-cell
- 10x
contributors:
- bebatut
Expand Down
1 change: 0 additions & 1 deletion topics/single-cell/tutorials/scrna-scater-qc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ redirect_from:
- /topics/transcriptomics/tutorials/scrna-scater-qc/tutorial
zenodo_link: 'https://zenodo.org/record/3386291'
tags:
- single-cell
questions:
- How to ensure the quality of single-cell RNA-seq data?
- What are the confounding factors that may affect the interpretation of downstream analyses?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- /topics/transcriptomics/tutorials/scrna-case_monocle3-trajectories/slides

tags:
- single-cell

subtopic: scintroduction
priority: 5
Expand Down
3 changes: 1 addition & 2 deletions topics/single-cell/tutorials/scrna-umis/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ redirect_from:

zenodo_link: "https://zenodo.org/record/2573177"
tags:
- single-cell
questions:
- "What are barcodes?"
- "What is their purpose?"
Expand Down Expand Up @@ -42,7 +41,7 @@ When the sequence is mapped against a reference genome, we can then see which ge

Barcodes come in a variety of formats, and in this tutorial we will be looking at the CEL-Seq2 protocol {% cite Hashimshony2016 %} used in droplet-based single-cell RNA-seq.

### The CEL-Seq2 Protocol
## The CEL-Seq2 Protocol

<small>[Back to previous](javascript:window.history.back())</small>

Expand Down

0 comments on commit 2f15950

Please sign in to comment.