Skip to content

Commit

Permalink
Merge pull request #80 from sanjaynagi/results-book-21-07-23
Browse files Browse the repository at this point in the history
Implement rna-seq-pop results book
  • Loading branch information
sanjaynagi authored Jul 25, 2023
2 parents 60b0aec + 731939d commit 509199a
Show file tree
Hide file tree
Showing 63 changed files with 9,211 additions and 72 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/github-action-rna-seq-pop-paired-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive


- name: cp results book yamls
run: cp docs/rna-seq-pop-results/_toc.yml docs/rna-seq-pop-results/_config.yml .test/docs/rna-seq-pop-results

- name: cp landing page
run: cp docs/rna-seq-pop-results/landing-page.md .test/docs/rna-seq-pop-results

- name: Test workflow paired-end
uses: snakemake/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/github-action-rna-seq-pop-single-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
with:
submodules: recursive

- name: cp results book yamls
run: cp docs/rna-seq-pop-results/_toc.yml docs/rna-seq-pop-results/_config.yml .test/docs/rna-seq-pop-results

- name: cp landing page
run: cp docs/rna-seq-pop-results/landing-page.md .test/docs/rna-seq-pop-results

- name: Test workflow single-end
uses: snakemake/[email protected]
with:
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ config/config.yaml
config/samples.tsv
*snpEff_summary.html
workflow/scripts/misc
workflow/notebooks
.test/workflow/scripts/
.ipynb_checkpoints
workflow/scripts/snpEff
workflow/scripts/*ipynb*
workflow/scripts/snpEff
12 changes: 7 additions & 5 deletions .test/config/config_paired_end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ metadata: config/samples.tsv
# Dataset name
dataset: 'Test-GithubActionsCI'

jupyter-book:
activate: True

fastq:
auto: True # set auto if your files follow
paired: True
Expand Down Expand Up @@ -78,9 +81,8 @@ VariantAnalysis:
missingness: 0.5
# Do we want to run pbs (Needs three conditions, two more closely related and a slight outgroup)
pbs:
activate: True
contrasts:
- 'PiriTia_ContTia_Kisumu'
activate: False
contrasts: ['PiriTia_ContTia_Kisumu']

# For Anopheles gambiae s.l only - run Ancestry Informative Marker analysis.
ancestry:
Expand Down Expand Up @@ -108,12 +110,12 @@ VariantAnalysis:
miscellaneous:
# If activate:True, creates allele balance .xlsx reports on IR mutations of choice
VariantsOfInterest:
activate: False
activate: True
path: "resources/test-IRmutations.tsv"

GeneFamiliesHeatmap:
activate: False
eggnog: resources/Anogam_long.pep_eggnog_diamond.emapper.annotations.tsv.gz.GO
eggnog: resources/Anogam_long.pep_eggnog_diamond.emapper.annotations.tsv.gz
pfam: resources/Anogam_long.pep_Pfamscan.seqs.gz

sweeps:
Expand Down
5 changes: 4 additions & 1 deletion .test/config/config_single_end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ metadata: config/samples.tsv
# Dataset name
dataset: 'Test-GithubActionsCI'

jupyter-book:
activate: True

fastq:
table: config/fastq.tsv
auto: True # set auto if your files follow
Expand Down Expand Up @@ -113,7 +116,7 @@ VariantAnalysis:
miscellaneous:
# If activate:True, creates allele balance .xlsx reports on IR mutations of choice
VariantsOfInterest:
activate: False
activate: True
path: "resources/test-IRmutations.tsv"

GeneFamiliesHeatmap:
Expand Down
44 changes: 44 additions & 0 deletions .test/docs/rna-seq-pop-results/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Book settings
# Learn more at https://jupyterbook.org/customize/config.html

title:
author: Sanjay Curtis Nagi
copyright: "2023"
logo: logo.png

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: "off"

# Information about where the book exists on the web
repository:
url: https://github.com/sanjaynagi/rna-seq-pop # Online location of your book
path_to_book: docs/rna-seq-pop-results # Optional path to your book, relative to the repository root
branch: master # Which branch of the repository should be used when creating links (optional)

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
favicon : favicon.ico
use_issues_button: true
use_repository_button: true
comments:
utterances:
repo: "sanjaynagi/rna-seq-pop"
issue-term: "pathname"
label: "comment"
theme: "github-light"


sphinx:
extra_extensions:
- 'sphinx.ext.autodoc'
- 'sphinx.ext.napoleon'
config:
myst_enable_extensions:
- substitution
- dollarmath
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
suppress_warnings: ["mystnb.unknown_mime_type"]
19 changes: 19 additions & 0 deletions .test/docs/rna-seq-pop-results/_toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
format: jb-book
root: landing-page
parts:
- caption: Quality Control
chapters:
- file: notebooks/quality-control
- file: notebooks/counts-qc
- caption: Differential expression
chapters:
- file: notebooks/differential-expression
- file: notebooks/gene-families-heatmap
- file: notebooks/gene-set-enrichment-analysis
- caption: Variant analysis
chapters:
- file: notebooks/principal-components-analysis
- file: notebooks/genetic-diversity
- file: notebooks/variants-of-interest
- file: notebooks/windowed-selection
- file: notebooks/karyotyping
18 changes: 18 additions & 0 deletions .test/resources/multiqc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table_columns_visible:
QualiMap:
general_error_rate: True
median_insert_size: False
sp:
fastp:
fn: "*.json"
qualimap/bamqc/genome_results:
fn: genome_results.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: coverage_histogram.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: insert_size_histogram.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: genome_fraction_coverage.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: mapped_reads_gc-content_distribution.txt

4 changes: 1 addition & 3 deletions config/exampleconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ contrasts:


QualityControl:
trim-reads:
fastp-trim:
activate: False
fastqc:
activate: True
mosdepth:
activate: True
multiqc:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"\n",
"When we run RNA-Seq-Pop, it is important to use the `--use-conda` directive - this will automatically install all necessary packages into isolated software environments, so we do not have to install any other dependencies.\n",
"\n",
"Please also ensure your conda has channel priorities set to 'flexible', otherwise, conda may throw up errors when installing packages. You can do this with the following command:\n",
"\n",
"```\n",
"conda config --set channel_priority flexible\n",
"```\n",
"\n",
"#### Testing the setup\n",
"\n",
"To test whether RNA-Seq-Pop is configured correctly, from the root directory you can perform a dry-run on the test dataset, with the following command:\n",
Expand Down
File renamed without changes.
File renamed without changes.
44 changes: 44 additions & 0 deletions docs/rna-seq-pop-results/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Book settings
# Learn more at https://jupyterbook.org/customize/config.html

title:
author: Sanjay Curtis Nagi
copyright: "2023"
logo: logo.png

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: "off"

# Information about where the book exists on the web
repository:
url: https://github.com/sanjaynagi/rna-seq-pop # Online location of your book
path_to_book: docs/rna-seq-pop-results # Optional path to your book, relative to the repository root
branch: master # Which branch of the repository should be used when creating links (optional)

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
favicon : favicon.ico
use_issues_button: true
use_repository_button: true
comments:
utterances:
repo: "sanjaynagi/rna-seq-pop"
issue-term: "pathname"
label: "comment"
theme: "github-light"


sphinx:
extra_extensions:
- 'sphinx.ext.autodoc'
- 'sphinx.ext.napoleon'
config:
myst_enable_extensions:
- substitution
- dollarmath
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
suppress_warnings: ["mystnb.unknown_mime_type"]
19 changes: 19 additions & 0 deletions docs/rna-seq-pop-results/_toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
format: jb-book
root: landing-page
parts:
- caption: Quality Control
chapters:
- file: notebooks/quality-control
- file: notebooks/counts-qc
- caption: Differential expression
chapters:
- file: notebooks/differential-expression
- file: notebooks/gene-families-heatmap
- file: notebooks/gene-set-enrichment-analysis
- caption: Variant analysis
chapters:
- file: notebooks/principal-components-analysis
- file: notebooks/genetic-diversity
- file: notebooks/variants-of-interest
- file: notebooks/windowed-selection
- file: notebooks/karyotyping
Binary file added docs/rna-seq-pop-results/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions docs/rna-seq-pop-results/landing-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# RNA-Seq-Pop

Welcome to your [RNA-Seq-Pop](https://github.com/sanjaynagi/rna-seq-pop/) results book. Not all analyses have been ported to this book yet, other results can be found in the `results/` directory.

---

Sanjay C Nagi, Ambrose Oruni, David Weetman, Martin J Donnelly (2022). **RNA-Seq-Pop: Exploiting the sequence in RNA-Seq - a Snakemake workflow reveals patterns of insecticide resistance in the malaria vector Anopheles gambiae**. bioRxiv 2022.06.17.493894; doi: https://doi.org/10.1101/2022.06.17.493894

---

<iframe width="560" height="315" src="https://www.youtube.com/embed/5QQe7DLHO4M" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

---

```{tableofcontents}
```

---

Binary file added docs/rna-seq-pop-results/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions resources/multiqc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table_columns_visible:
QualiMap:
general_error_rate: True
median_insert_size: False
sp:
fastp:
fn: "*.json"
qualimap/bamqc/genome_results:
fn: genome_results.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: coverage_histogram.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: insert_size_histogram.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: genome_fraction_coverage.txt
qualimap/bamqc/raw_data_qualimapReport:
fn: mapped_reads_gc-content_distribution.txt

Loading

0 comments on commit 509199a

Please sign in to comment.