Skip to content

Commit

Permalink
Merge pull request #168 from hydra-genetics/rtd
Browse files Browse the repository at this point in the history
docs: Added read the docs for all rules!
  • Loading branch information
jonca79 authored Mar 15, 2024
2 parents 2f1a7f3 + d3e3f67 commit c55a89e
Show file tree
Hide file tree
Showing 22 changed files with 3,028 additions and 179 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test-build-mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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-cnv-sv.readthedocs.io">https://hydra-genetics-cnv-sv.readthedocs.io</a>
</p>

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

Snakemake module containing steps to call copy number variants and structural variants
Expand Down
50 changes: 50 additions & 0 deletions docs/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.wy-nav-content {
max-width: 1600px !important;
}
h1,h2 {
margin-top: 50px;
margin-bottom: 10px !important;
}
h3 {
font-size: 18px;
margin-top: 30px;
margin-bottom: 10px !important;
}
h4 {
font-size: 17px;
font-style: italic;
margin-top: 30px;
margin-bottom: 10px !important;

}
h5 {
font-size: 16px;
font-style: italic;
margin-top: 30px;
margin-bottom: 10px !important;

}
p {
margin-top: 5px !important;
}
* {
margin-bottom: 0px !important;
}

table td {
min-width: 10px;
max-width: 600px;
}
table td:last-child {
width: 100%;
}

hr {
margin-top: 50px;
border: 1px solid black;
}

.twemoji {
width: 20px;
color: black;
}
469 changes: 469 additions & 0 deletions docs/images/cnv_sv_dag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/images/generate_dag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Generate a dag graph and place it here
# snakemake --rulegraph | dot -Tsvg > dag.svg
Binary file added docs/images/hydragenetics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions docs/includes/abbreviations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
*[hg19]: UCSC human genome version 19
*[API]: Application programming interface
*[BAF]: Binary allele frequency
*[cDNA]: coding DNA
*[gDNA]: genomic DNA
*[DNA]: Deoxyribonucleic acid
*[DRMAA]: Distributed resource management application API
*[CNV]: Copy number variation
*[CNVs]: Copy number variations
*[FFPE]: Formalin-fixed paraffin-embedded
*[GMS]: Genomic Medicine Sweden
*[HLA]: Human leukocyte antigen
*[HRD]: Homologous recombination deficiency
*[MAF]: Minor allele frequency
*[MSI]: Microsatellite instability
*[MSS]: Microsatellite stable
*[PoN]: Panel of normal
*[QC]: Quality control
*[RNA]: Ribonucleic acid
*[sSNVs]: Synonymous single nucleotide variations
*[nsSNVs]: Non-synonymous single nucleotide variations
*[SNV]: Single nucleotide variation
*[SNVs]: Single nucleotide variations
*[INDEL]: Insertion and deletion
*[INDELs]: Insertions and deletions
*[TMB]: Tumor mutational burden
11 changes: 11 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [CNV_SV module](https://github.com/hydra-genetics/cnv_sv)
The cnv_sv module consists of a collection of tools calling larger structural genomic aberrations in DNA. Most tools use aligned `.bam` files as input, but many tools also make use of small variants calls in the form of a `.vcf` file.

# [Hydra-genetics](https://hydra-genetics.readthedocs.io/en/latest/)

We are an organization/community with the goal of making [snakemake](https://snakemake.readthedocs.io/en/stable/index.html) pipeline development easier, faster, a bit more structured and of higher quality.

We do this by providing [snakemake modules](https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html#modules) that can be combined to create a complete analysis or included in already existing pipelines. All modules are subjected to extensive testing to make sure that new releases doesn't unexpectedly break existing pipeline or deviate from guidelines and best practices on how to write code.
<p align="center" width="100%">
<img width="10%" src="images/hydragenetics.png">
</p>
35 changes: 35 additions & 0 deletions docs/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Hydra-genetics snv_sv module
The cnv_sv module consists of a collection of tools calling larger structural genomic aberrations in DNA. Most tools use aligned `.bam` files as input, but many tools also make use of small variants calls in the form of a `.vcf` file.

## CNV_SV

![CNV_SV steps](images/cnv_sv_dag.svg)

## Module input files
Aligned and merged `.bam` files as well as different `.vcf` files depending on application.

* `alignment/samtools_merge_bam/{sample}_{type}.bam`
* `snv_indels/bcbio_variation_recall_ensemble/{sample}_{type}.ensembled.vcf`
* `snv_indels/bcbio_variation_recall_ensemble/{sample}_{type}.germline.vcf`
* `snv_indels/glnexus/{sample}_{type}.vep_annotated.vcf.gz`

## Module output files
The output consists of results files that describe different kinds of larger genomic aberrations, such as copy number aberrations (CNVs), structural variants (SVs) and repeat expansions.

* `cnv_sv/automap/{sample}_{type}/{sample}_{type}.HomRegions.tsv`
* `cnv_sv/cnvkit_call/{sample}_{type}.{tc_method}.loh.cns`
* `cnv_sv/cnvpytor/{sample}_{type}.filtered.vcf`
* `cnv_sv/exomedepth_call/{sample}_{type}.txt`
* `cnv_sv/expansionhunter/{sample}_{type}.vcf`
* `cnv_sv/gatk_call_copy_ratio_segments/{sample}_{type}.clean.calledCNVs.seg`
* `cnv_sv/manta_run_workflow_tn/{sample}/results/variants/somaticSV.vcf.gz`
* `cnv_sv/manta_run_workflow_t/{sample}/results/variants/tumorSV.vcf.gz`
* `cnv_sv/manta_run_workflow_n/{sample}/results/variants/candidateSV.vcf.gz`
* `cnv_sv/pindel_vcf/{sample}_{type}.no_tc.vcf`
* `cnv_sv/purecn_purity_file/{sample}_{type}.purity.txt`
* `cnv_sv/reviewer/{sample}_{type}/{sample}_{type}.phasing.tsv`
* `cnv_sv/smn_caller/{sample}_{type}.tsv`
* `cnv_sv/svdb_query/{sample}_{type}.{tc_method}.svdb_query.vcf`
* `cnv_sv/tiddit/{sample}_{type}.vcf`
* `cnv_sv/upd/{sample}_{type}.upd_regions.bed`
* `cnv_sv/upd/{sample}_{type}.upd_sites.bed`
9 changes: 9 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
jinja2<3.1.0
mkdocs==1.4.2
pymdown-extensions==10.0
mkdocs-schema-reader==0.11.1
mkdocs-simple-hooks==0.1.5
mdx_spanner==0.0.5
mkdocs-yaml-schema-plugin==0.2.3
mkdocs-snakemake-rule-plugin==0.4.0
mkdocs-material==9.1.7
Loading

0 comments on commit c55a89e

Please sign in to comment.