Skip to content

Commit

Permalink
Split conda enviroments (#30)
Browse files Browse the repository at this point in the history
* Divided tools in others_env.yaml to separate enviroments.

* Fixed a bug in r-virfinder enviroment creation.

* Fixed a bug in vardict-java enviroment creation.

* Fixed a bug in vardict rule.
  • Loading branch information
wernerkrampl authored Jul 14, 2019
1 parent 3422dbe commit 152ae62
Show file tree
Hide file tree
Showing 96 changed files with 224 additions and 119 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = u''
# The full version, including alpha/beta/rc tags
release = u'0.9.0'
release = u'0.9.1'


# -- General configuration ---------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions enviroments/bamtools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bamtools=2.4.1
4 changes: 4 additions & 0 deletions enviroments/bandage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bandage=0.8.1
4 changes: 4 additions & 0 deletions enviroments/bedtools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bedtools=2.26.0
4 changes: 4 additions & 0 deletions enviroments/bismark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bismark=0.20.0
4 changes: 4 additions & 0 deletions enviroments/blast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- conda-forge
dependencies:
- blast=2.7.1
2 changes: 1 addition & 1 deletion enviroments/iqtree_env.yaml → enviroments/bowtie.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
channels:
- bioconda
dependencies:
- iqtree=1.6.11
- bowtie=1.1.2
4 changes: 4 additions & 0 deletions enviroments/bowtie2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bowtie2=2.3.4.3
5 changes: 5 additions & 0 deletions enviroments/bowtie2_samtools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
channels:
- bioconda
dependencies:
- bowtie2=2.3.4.3
- samtools=1.4.1
4 changes: 4 additions & 0 deletions enviroments/bwa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- bwa=0.7.12
5 changes: 5 additions & 0 deletions enviroments/bwa_samtools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
channels:
- bioconda
dependencies:
- bwa=0.7.12
- samtools=1.4.1
4 changes: 4 additions & 0 deletions enviroments/cdhit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- agbiome
dependencies:
- cdhit=4.6.1
4 changes: 4 additions & 0 deletions enviroments/clark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- agbiome
dependencies:
- clark=1.2.3
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/fast-virome-explorer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- g2554711
dependencies:
- fast-virome-explorer=1.1.0.p2
4 changes: 4 additions & 0 deletions enviroments/fastqc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- fastqc=0.11.5
4 changes: 4 additions & 0 deletions enviroments/fastuniq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- fastuniq=1.1
4 changes: 4 additions & 0 deletions enviroments/freebayes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- freebayes=1.1.0
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/gatk4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- gatk4=4.0.7
4 changes: 4 additions & 0 deletions enviroments/iqtree.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- iqtree=1.5.5
4 changes: 4 additions & 0 deletions enviroments/kallisto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- kallisto=0.43.1
4 changes: 4 additions & 0 deletions enviroments/krona.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- krona=2.7
4 changes: 4 additions & 0 deletions enviroments/lefse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- lefse=1.0.8
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 0 additions & 47 deletions enviroments/others_env.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions enviroments/pear.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- pear=0.9.6
6 changes: 6 additions & 0 deletions enviroments/pear_pigz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- bioconda
- g2554711
dependencies:
- pear=0.9.6
- pigz=2.3.4-0
4 changes: 4 additions & 0 deletions enviroments/picard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- picard=2.18.14
4 changes: 4 additions & 0 deletions enviroments/pigz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- conda-forge
dependencies:
- pigz=2.3.4-0
4 changes: 4 additions & 0 deletions enviroments/prokka.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- prokka=1.12.0
4 changes: 4 additions & 0 deletions enviroments/qualimap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- qualimap=2.2.2c
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/r-virfinder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- g2554711
dependencies:
- r-virfinder=1.1
4 changes: 4 additions & 0 deletions enviroments/rdp_classifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- rdp_classifier=2.2
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/salmon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- salmon=0.12.0
4 changes: 4 additions & 0 deletions enviroments/samtools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- samtools=1.4.1
4 changes: 4 additions & 0 deletions enviroments/seqtk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- seqtk=1.3
4 changes: 4 additions & 0 deletions enviroments/snpsift.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- snpsift=4.3.1t
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/sortmerna.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- sortmerna=2.1b
4 changes: 4 additions & 0 deletions enviroments/spades.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- spades=3.10.1
4 changes: 4 additions & 0 deletions enviroments/trimmomatic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- trimmomatic=0.36
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions enviroments/vardict-java.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- vardict-java=1.5.1
6 changes: 6 additions & 0 deletions enviroments/vardict.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- bioconda
- r
dependencies:
- vardict=2017.04.18
- r=3.6.0
4 changes: 4 additions & 0 deletions enviroments/varscan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- bioconda
dependencies:
- varscan=2.4.3
2 changes: 1 addition & 1 deletion rules/assembly/assembler/spades.snake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rule spades__assemble_reads_into_contigs:
out = 'assembly/{sample}/log/spades.log',
err = 'assembly/{sample}/log/spades.err'
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/spades.yaml'
shell:
"""
spades.py \
Expand Down
2 changes: 1 addition & 1 deletion rules/assembly/assembler/unicycler.snake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rule unicycler__assemble_reads_into_contigs:
out = 'assembly/{sample}/log/unicycler.log',
err = 'assembly/{sample}/log/unicycler.err'
conda:
config['snakelines_dir'] + '/enviroments/unicycler_env.yaml'
config['snakelines_dir'] + '/enviroments/unicycler.yaml'
shell:
"""
unicycler \
Expand Down
2 changes: 1 addition & 1 deletion rules/assembly/report/assembly_graph/bandage.snake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rule bandage__visualise_contig_overlaps:
output:
svg = '{path}/{sample}.svg'
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/bandage.yaml'
shell:
"""
Bandage image \
Expand Down
2 changes: 1 addition & 1 deletion rules/assembly/report/quality_report/quast.snake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rule quast__quality_report_for_assembled_contigs:
threads:
int(config['threads'])
conda:
config['snakelines_dir'] + '/enviroments/quast_env.yaml'
config['snakelines_dir'] + '/enviroments/quast.yaml'
shell:
"""
quast \
Expand Down
6 changes: 3 additions & 3 deletions rules/classification/contig_based/blast.snake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rule blast__find_homologues:
threads:
int(config['threads'])
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/blast.yaml'
shell:
"""
set +e pipefail
Expand Down Expand Up @@ -151,7 +151,7 @@ rule blast__prepare_reference_index_for_nucleotide:
params:
index_prefix = 'reference/{reference}/blast_index/{reference}'
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/blast.yaml'
shell:
"""
makeblastdb \
Expand Down Expand Up @@ -185,7 +185,7 @@ rule blast__prepare_reference_index_for_protein:
params:
index_prefix = 'reference/{reference}/blast_index/{reference}'
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/blast.yaml'
shell:
"""
makeblastdb \
Expand Down
2 changes: 1 addition & 1 deletion rules/classification/differential_analysis/edger.snake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rule edger__identify_transcripts_with_changed_expression:
group_by = method_config['group_by'],
batch = method_config.get('batch', '')
conda:
config['snakelines_dir'] + '/enviroments/edger_env.yaml'
config['snakelines_dir'] + '/enviroments/edger.yaml'
shell:
'''
Rscript {input.edger} \
Expand Down
2 changes: 1 addition & 1 deletion rules/classification/read_based/fast_virome_explorer.snake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rule fast_virome_explorer__estimate_virome_composition:
co = '{}'.format(genome_coverage),
cn = '{}'.format(mapped_reads)
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/fast-virome-explorer.yaml'
shell:
'''
fast_virome_explorer \
Expand Down
6 changes: 3 additions & 3 deletions rules/classification/read_based/metaxa2.snake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rule metaxa2__classify_reads:
threads:
int(config['threads'])
conda:
config['snakelines_dir'] + '/enviroments/metaxa_env.yaml'
config['snakelines_dir'] + '/enviroments/metaxa.yaml'
shell:
"""
metaxa2 \
Expand Down Expand Up @@ -81,7 +81,7 @@ rule metaxa2__create_reference_index:
out = 'reference/{reference}/metaxa2_index/log/db.log',
err = 'reference/{reference}/metaxa2_index/log/db.err'
conda:
config['snakelines_dir'] + '/enviroments/metaxa_env.yaml'
config['snakelines_dir'] + '/enviroments/metaxa.yaml'
shell:
"""
metaxa2_dbb \
Expand Down Expand Up @@ -120,7 +120,7 @@ rule metaxa2__summarize_classification:
out = 'classification/{reference}/samples/{sample}/log/metaxa2_ttt.log',
err = 'classification/{reference}/samples/{sample}/log/metaxa2_ttt.err'
conda:
config['snakelines_dir'] + '/enviroments/metaxa_env.yaml'
config['snakelines_dir'] + '/enviroments/metaxa.yaml'
shell:
"""
TAXONOMY={input.taxonomy}
Expand Down
2 changes: 1 addition & 1 deletion rules/classification/read_based/rdp.snake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rule rdp__classify_reads:
params:
confidence = method_config.get('confidence', RDP_DEFAULT_CONFIDENCE)
conda:
config['snakelines_dir'] + '/enviroments/rdptools_env.yaml'
config['snakelines_dir'] + '/enviroments/rdptools.yaml'
shell:
'''
rdp_classifier classify \
Expand Down
2 changes: 1 addition & 1 deletion rules/classification/report/summary/fasta_summary.snake
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ rule fasta_summary__mapped_reads:
output:
tsv = '{indir}/annotation/{name}/attributes/mapped_reads.tsv'
conda:
config['snakelines_dir'] + '/enviroments/others_env.yaml'
config['snakelines_dir'] + '/enviroments/samtools.yaml'
shell:
"""
echo -e '\tMapped reads' > {output.tsv}
Expand Down
Loading

0 comments on commit 152ae62

Please sign in to comment.