Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add files to build rtd and test the build #117

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test-build-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: build mkdocs

on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
workflow_dispatch:

jobs:
build-mkdocs:
name: build mkdocs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install requirements.txt
run: |
pip install -r requirements.txt
- name: Install requirements.test.txt
run: |
pip install -r requirements.test.txt
pip install -r docs/requirements.txt
- name: build mkdocs
run: |
mkdocs build
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

mkdocs:
configuration: mkdocs.yml

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center">
<a href="https://hydra-genetics-qc.readthedocs.io">https://hydra-genetics-qc.readthedocs.io</a>
</p>

# <img src="images/hydragenetics.png" width=40 /> hydra-genetics/qc

#### Snakemake module containing steps for quality control of sequencing data
Expand Down
4 changes: 3 additions & 1 deletion docs/images/qc.dot
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ digraph snakemake_dag {
18[label = "bam", color = "0.0 0.0 0.0", style="dotted"];
19[label = "fastq", color = "0.0 0.0 0.0", style="dotted"];
20[label = "vcf", color = "0.0 0.0 0.0", style="dotted"];
21[label = "verifybamid2", color = "0.2 0.9 0.45", style="rounded"];
20 -> 2
19 -> 4
18 -> 5
18 -> 9
18 -> 10
18 -> 14
18 -> 17
18 -> 21
1 -> 0
16 -> 1
5 -> 1
Expand All @@ -32,5 +34,5 @@ digraph snakemake_dag {
9 -> 1
4 -> 1
17 -> 16
21 -> 1
}
1
Binary file modified docs/images/qc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ The qc module is a collection of qc programs that performs analysis on the align
| [fastqQC](https://github.com/s-andrews/FastQC) | fastq | Sequencing report |
| [GATK](https://gatk.broadinstitute.org/hc/en-us) | pileup | Sample contamination |
| [mosdepth](https://github.com/brentp/mosdepth) | bam | Coverage |
| [picard](https://broadinstitute.github.io/picard/) | | Alignment statistics, gc bias, panel statistics, insert size |
| [rseqc](https://rseqc.sourceforge.net/) | | RNA gene coverage and inner distance |
| [samtools](http://www.htslib.org/doc/samtools-stats.html) | _ _ | Alignment statistics |
| [picard](https://broadinstitute.github.io/picard/) | bam | Alignment statistics, gc bias, panel statistics, insert size |
| [rseqc](https://rseqc.sourceforge.net/) | bam | RNA gene coverage and inner distance |
| [samtools](http://www.htslib.org/doc/samtools-stats.html) | bam | Alignment statistics |
| [peddy](http://www.htslib.org/doc/samtools-stats.html) | vcf | Sex and relatedness checks |
| [verifybamid2](https://github.com/Griffan/VerifyBamID) | bam | Sample contamination estimate |
| [multiQC](https://github.com/ewels/MultiQC) | QC-files | Summary html-report |


Expand All @@ -24,6 +25,7 @@ The qc module is a collection of qc programs that performs analysis on the align
The QC programs operate mostly on bam files but also fastq and vcf files.

* `alignment/samtools_merge_bam/{sample}_{type}.bam`
* `alignment/star/{sample}_R.bam`
* `prealignment/merged/{sample}_{type}_fastq1.fastq.gz`
* `prealignment/merged/{sample}_{type}_fastq2.fastq.gz`
* `qc/peddy/all.vcf.gz`
Expand Down
1 change: 0 additions & 1 deletion docs/softwares.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ Collects multiple statistics st once that can be used by MultiQC.
## [verifybamid2](https://github.com/Griffan/VerifyBamID)
verifybamid2 estimates contamination in samples by simultaneously estimating genetic background and contamination using population allele frequencies. The output is parsed and displayed by the MultiQC rapport.


### :snake: Rule

#SNAKEMAKE_RULE_SOURCE__verifybamid2__verifybamid2#
Expand Down
2 changes: 0 additions & 2 deletions workflow/schemas/resources.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,6 @@ properties:
type: string
description: max execution time



verifybamid2:
type: object
description: resource definitions for verifybamid2
Expand Down
10 changes: 6 additions & 4 deletions workflow/schemas/rules.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ properties:
type: string
description: Pileup file with allele information for selected sites


mosdepth:
mosdepth:
type: object
description: input and output parameters for mosdepth
properties:
Expand Down Expand Up @@ -467,9 +466,12 @@ properties:
type: object
description: list of outputs
properties:
metrics:
selfsm:
type: string
description: Text file with the estimated contamination level
ancestry:
type: string
description: Contamination statistics used by MultiQC
description: Text file containing the PC coordinates for both intended sample and contaminating sample



Expand Down
Loading