Skip to content

Commit 87b34f7

Browse files
authored
Merge pull request #150 from Joon-Klaps/update-docs
Update docs
2 parents a482121 + 36705dd commit 87b34f7

14 files changed

+1691
-1757
lines changed

.github/workflows/build-docs.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Publish Docs On Change
22
on:
33
push:
44
branches:
5-
- main
65
- dev
76
- master
87
workflow_dispatch:
@@ -45,15 +44,19 @@ jobs:
4544
- name: Read parameter tip
4645
id: read_tip
4746
run: |
48-
tip=$(cat docs/parameter_tip.txt)
47+
tip=$(cat docs/parameter_tip.md)
4948
echo "tip_content=$tip" >> $GITHUB_ENV
5049
- name: Append content to parameters.md
5150
run: |
5251
modified_content=$(awk '/^#/ { print; print "${{ env.tip_content }}"; exit } 1' docs/parameters.md)
5352
echo "$modified_content" > docs/parameters.md
5453
- name: Build docs
5554
run: |
56-
RELEASE=$(curl -sL https://api.github.com/repos/Joon-Klaps/viralgenie/releases | jq -r '.[0].tag_name')
57-
echo "${RELEASE}"
58-
mike deploy --push --update-aliases "${RELEASE}" latest
59-
mike set-default --push latest
55+
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
56+
mike deploy --push --update-aliases "dev" dev
57+
else
58+
RELEASE=$(curl -sL https://api.github.com/repos/Joon-Klaps/viralgenie/releases | jq -r '.[0].tag_name')
59+
echo "${RELEASE}"
60+
mike deploy --push --update-aliases "${RELEASE}" latest
61+
mike set-default --push latest
62+
fi

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Initial release of Joon-Klaps/viralgenie, created with the [nf-core](https://nf-
1919
- Add logic to allow samples with no reference hits to be analysed ([#141](https://github.com/Joon-Klaps/viralgenie/pull/141))
2020
- Add visualisation for hybrid scaffold ([#143](https://github.com/Joon-Klaps/viralgenie/pull/143))
2121
- Add new module to inculde custom mpileup-vcf file for intra-host analyses ([#151](https://github.com/Joon-Klaps/viralgenie/pull/151))
22+
- Update docs ([#150](https://github.com/Joon-Klaps/viralgenie/pull/150))
2223

2324

2425
### `Fixed`

README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
## Pipeline summary
2828

29-
![viralgenie-workflow](docs/images/metromap_style_pipeline_workflow_viralgenie.png)
29+
![viralgenie-workflow](docs/images/metromap_style_pipeline_workflow_viralgenie.svg)
3030

3131
1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
3232
2. Performs optional read pre-processing
@@ -37,36 +37,38 @@
3737
3. Metagenomic diveristy mapping
3838
- Performs taxonomic classification and/or profiling using one or more of:
3939
- [`Kraken2`](https://ccb.jhu.edu/software/kraken2/)
40-
- [`Bracken`](https://ccb.jhu.edu/software/bracken/)[optional]
40+
- [`Bracken`][https://ccb.jhu.edu/software/bracken/](optional)
4141
- [`Kaiju`](https://kaiju.binf.ku.dk/)
4242
- Plotting Kraken2 and Kaiju ([`Krona`](https://hpc.nih.gov/apps/kronatools.html))
4343
4. Denovo assembly ([`SPAdes`](http://cab.spbu.ru/software/spades/), [`TRINITY`](https://github.com/trinityrnaseq/trinityrnaseq), [`megahit`](https://github.com/voutcn/megahit)), combine contigs.
4444
5. [Optional] extend the contigs with [sspace_basic](https://github.com/nsoranzo/sspace_basic) and filter with [`prinseq++`](https://github.com/Adrian-Cantu/PRINSEQ-plus-plus)
45-
6. Contig reference idententification ([`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PAGE_TYPE=BlastSearch))
46-
- Identify top 5 blast hits
47-
- Merge blast hit and all contigs of a sample
48-
7. [Optional] Precluster contigs based on taxonomy
45+
6. [Optional] Map reads to contigs for coverage estimation ([`BowTie2`](http://bowtie-bio.sourceforge.net/bowtie2/),[`BWAmem2`](https://github.com/bwa-mem2/bwa-mem2) and [`BWA`](https://github.com/lh3/bwa))
46+
7. Contig reference idententification ([`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PAGE_TYPE=BlastSearch))
47+
- Identify top 5 blast hits
48+
- Merge blast hit and all contigs of a sample
49+
8. [Optional] Precluster contigs based on taxonomy
4950
- Identify taxonomy [`Kraken2`](https://ccb.jhu.edu/software/kraken2/) and\or [`Kaiju`](https://kaiju.binf.ku.dk/)
5051
- Resolve potential inconsistencies in taxonomy & taxon filtering | simplification `bin/extract_precluster.py`
51-
8. Cluster contigs (or every taxonomic bin) of samples, options are:
52+
9. Cluster contigs (or every taxonomic bin) of samples, options are:
5253
- [`cdhitest`](https://sites.google.com/view/cd-hit)
5354
- [`vsearch`](https://github.com/torognes/vsearch/wiki/Clustering)
5455
- [`mmseqs-linclust`](https://github.com/soedinglab/MMseqs2/wiki#linear-time-clustering-using-mmseqs-linclust)
5556
- [`mmseqs-cluster`](https://github.com/soedinglab/MMseqs2/wiki#cascaded-clustering)
5657
- [`vRhyme`](https://github.com/AnantharamanLab/vRhyme)
5758
- [`Mash`](https://github.com/marbl/Mash)
58-
9. Scaffolding of contigs to centroid ([`Minimap2`](https://github.com/lh3/minimap2), [`iVar-consensus`](https://andersen-lab.github.io/ivar/html/manualpage.html))
59-
10. [Optional] Annotate 0-depth regions with external reference `bin/lowcov_to_reference.py`.
60-
11. [Optional] Select best reference from `--mapping_constrains`:
59+
10. [Optional] Remove clusters with low read coverage. `bin/extract_clusters.py`
60+
11. Scaffolding of contigs to centroid ([`Minimap2`](https://github.com/lh3/minimap2), [`iVar-consensus`](https://andersen-lab.github.io/ivar/html/manualpage.html))
61+
12. [Optional] Annotate 0-depth regions with external reference `bin/lowcov_to_reference.py`.
62+
13. [Optional] Select best reference from `--mapping_constrains`:
6163
- [`Mash sketch`](https://github.com/marbl/Mash)
6264
- [`Mash screen`](https://github.com/marbl/Mash)
63-
12. Mapping filtered reads to supercontig and mapping constrains([`BowTie2`](http://bowtie-bio.sourceforge.net/bowtie2/),[`BWAmem2`](https://github.com/bwa-mem2/bwa-mem2) and [`BWA`](https://github.com/lh3/bwa))
64-
13. [Optional] Deduplicate reads ([`Picard`](https://broadinstitute.github.io/picard/) or if UMI's are used [`UMI-tools`](https://umi-tools.readthedocs.io/en/latest/QUICK_START.html))
65-
14. Variant calling and filtering ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
66-
15. Create consensus genome ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
67-
16. Repeat step 12-15 multiple times for the denovo contig route
68-
17. Consensus evaluation and annotation ([`QUAST`](http://quast.sourceforge.net/quast),[`CheckV`](https://bitbucket.org/berkeleylab/checkv/src/master/),[`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi), [`mmseqs-search`](https://github.com/soedinglab/MMseqs2/wiki#batch-sequence-searching-using-mmseqs-search))
69-
18. Result summary visualisation for raw read, alignment, assembly, variant calling and consensus calling results ([`MultiQC`](http://multiqc.info/))
65+
14. Mapping filtered reads to supercontig and mapping constrains([`BowTie2`](http://bowtie-bio.sourceforge.net/bowtie2/),[`BWAmem2`](https://github.com/bwa-mem2/bwa-mem2) and [`BWA`](https://github.com/lh3/bwa))
66+
15. [Optional] Deduplicate reads ([`Picard`](https://broadinstitute.github.io/picard/) or if UMI's are used [`UMI-tools`](https://umi-tools.readthedocs.io/en/latest/QUICK_START.html))
67+
16. Variant calling and filtering ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
68+
17. Create consensus genome ([`BCFTools`](http://samtools.github.io/bcftools/bcftools.html),[`iVar`](https://andersen-lab.github.io/ivar/html/manualpage.html))
69+
18. Repeat step 12-15 multiple times for the denovo contig route
70+
19. Consensus evaluation and annotation ([`QUAST`](http://quast.sourceforge.net/quast),[`CheckV`](https://bitbucket.org/berkeleylab/checkv/src/master/),[`blastn`](https://blast.ncbi.nlm.nih.gov/Blast.cgi), [`mmseqs-search`](https://github.com/soedinglab/MMseqs2/wiki#batch-sequence-searching-using-mmseqs-search), [`MAFFT` - alignment of contigs vs iterations & consensus](https://mafft.cbrc.jp/alignment/software/))
71+
20. Result summary visualisation for raw read, alignment, assembly, variant calling and consensus calling results ([`MultiQC`](http://multiqc.info/))
7072

7173
## Usage
7274

@@ -112,10 +114,9 @@ Viralgenie was originally written by [`Joon-Klaps`](https://github.com/Joon-Klap
112114

113115
We thank the following people for their extensive assistance in the development of this pipeline:
114116

115-
- [`Philippe Lemey`](https://github.com/plemey)
116-
- [`Liana Kafetzopoulou`](https://github.com/LianaKafetzopoulou)
117-
- [`nf-core community`](https://nf-co.re/)
118-
117+
- [`Philippe Lemey`](https://github.com/plemey)
118+
- [`Liana Kafetzopoulou`](https://github.com/LianaKafetzopoulou)
119+
- [`nf-core community`](https://nf-co.re/)
119120

120121
## Contributions and Support
121122

@@ -130,8 +131,7 @@ For further information or help, don't hesitate to get in touch on the [Slack `#
130131
<!-- If you use nf-core/viralgenie for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->
131132
>[!WARNING]
132133
> Viralgenie is currently not Published. Please cite as:
133-
> Klaps J, Lemey P, Kafetzopoulou L. Viralgenie: A metagenomics analysis pipeline for eukaryotic viruses. __Github__ https://github.com/Joon-Klaps/viralgenie
134-
134+
> Klaps J, Lemey P, Kafetzopoulou L. Viralgenie: A metagenomics analysis pipeline for eukaryotic viruses. **Github** <https://github.com/Joon-Klaps/viralgenie>
135135
136136
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](https://joon-klaps.github.io/viralgenie/latest/CITATIONS) file.
137137

bin/custom_multiqc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,11 @@ def main(argv=None):
499499
mqc.parse_logs(args.multiqc_files, args.multiqc_config, ignore_samples=generate_ignore_samples(mqc_custom_df))
500500

501501
# 4. Parse our custom files into the correct tables
502-
custom_tables, cluster_df = load_custom_data(args)
502+
overview_tables, cluster_df = load_custom_data(args)
503503

504504
# 5. Make our own summary files
505505
# 5.1 Join with the custom contig tables
506-
mqc_custom_df = join_df(mqc_custom_df, custom_tables)
506+
mqc_custom_df = join_df(mqc_custom_df, overview_tables)
507507

508508
if mqc_custom_df.empty:
509509
logger.warning("No data was found to create the contig overview table!")

docs/images/assembly_polishing.png

132 KB
Loading
154 KB
Loading
Loading

0 commit comments

Comments
 (0)