Skip to content

Commit d5acc76

Browse files
authored
Merge pull request #63 from hoelzer/feat/species-sc2
Add SARS-CoV-2 as an easy to use species
2 parents df65538 + 49aaa8d commit d5acc76

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Currently supported are:
9191
|gga | _Gallus gallus_ | [NCBI: Gallus_gallus.GRCg6a.dna.toplevel] |
9292
|cli | _Columba livia_ | [NCBI: GCF_000337935.1_Cliv_1.0_genomic] |
9393
|eco | _Escherichia coli_ | [Ensembl: Escherichia_coli_k_12.ASM80076v1.dna.toplevel] |
94+
|sc2 | _SARS-CoV-2_ | [ENA Sequence: MN908947.3 (Wuhan-Hu-1 complete genome) [web](https://www.ebi.ac.uk/ena/browser/view/MN908947.3) [fasta](https://www.ebi.ac.uk/ena/browser/api/fasta/MN908947.3?download=true)] |
9495

9596
Included in this repository are:
9697

clean.nf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if ( workflow.profile.contains('singularity') ) {
7979
}
8080

8181
Set controls = ['phix', 'dcs', 'eno']
82-
Set hosts = ['hsa', 'mmu', 'cli', 'csa', 'gga', 'eco']
82+
Set hosts = ['hsa', 'mmu', 'cli', 'csa', 'gga', 'eco', 'sc2']
8383
Set input_types = ['nano', 'illumina', 'illumina_single_end', 'fasta']
8484

8585
if ( params.profile ) { exit 1, "--profile is wrong, use -profile" }
@@ -231,7 +231,8 @@ def helpMSG() {
231231
- csa [NCBI: GCF_000409795.2_Chlorocebus_sabeus_1.1_genomic]
232232
- gga [NCBI: Gallus_gallus.GRCg6a.dna.toplevel]
233233
- cli [NCBI: GCF_000337935.1_Cliv_1.0_genomic]
234-
- eco [Ensembl: Escherichia_coli_k_12.ASM80076v1.dna.toplevel]${c_reset}
234+
- eco [Ensembl: Escherichia_coli_k_12.ASM80076v1.dna.toplevel]
235+
- sc2 [ENA: MN908947.3 (Wuhan-Hu-1 complete genome)]${c_reset}
235236
${c_green}--control${c_reset} comma separated list of common controls used in Illumina or Nanopore sequencing [default: $params.control]
236237
${c_dim}Currently supported are:
237238
- phix [Illumina: enterobacteria_phage_phix174_sensu_lato_uid14015, NC_001422]

modules/prepare_contamination.nf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ process download_host {
4040
wget ftp://ftp.ensemblgenomes.org/pub/release-45/bacteria//fasta/bacteria_90_collection/escherichia_coli_k_12/dna/Escherichia_coli_k_12.ASM80076v1.dna.toplevel.fa.gz
4141
zcat *.gz | bgzip -@ ${task.cpus} -c > ${host}.fa.gz
4242
fi
43+
if [ $host == 'sc2' ]; then
44+
wget "https://www.ebi.ac.uk/ena/browser/api/fasta/MN908947.3?download=true" -O sc2.fa
45+
cat sc2.fa | bgzip -@ ${task.cpus} -c > ${host}.fa.gz
46+
fi
4347
"""
4448
stub:
4549
"""
@@ -108,4 +112,4 @@ process concat_contamination {
108112
"""
109113
touch db.fa.gz db.fa.fai
110114
"""
111-
}
115+
}

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ profiles {
104104
enabled = true
105105
autoMounts = true
106106
cacheDir = params.singularityCacheDir
107+
envWhitelist = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
107108
}
108109
includeConfig 'configs/container.config'
109110
}

0 commit comments

Comments
 (0)