Skip to content

Commit a5244f7

Browse files
committed
update to odb11
1 parent 368ef70 commit a5244f7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: params_default.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ params {
1919
from_local = ""
2020

2121
// OrthoDB parameters
22-
orthodb_path = "https://v100.orthodb.org/download/odb10_fungi_fasta.tar.gz"
22+
// See odb11 links here: https://bioinf.uni-greifswald.de/bioinf/partitioned_odb11/
23+
orthodb_path = "https://bioinf.uni-greifswald.de/bioinf/partitioned_odb11/Fungi.fa.gz"
2324

2425
// OrthoFinder parameters
2526
diamond_threads = 4

Diff for: reference_update.nf

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ nextflow.enable.dsl=1
44
VERSION = "0.1.1"
55

66
process create_orthodb {
7-
afterScript 'rm -rf */Rawdata'
7+
afterScript 'rm *.fa'
88

99
input:
1010
val orthodb_path from "${params.orthodb_path}"
@@ -13,13 +13,13 @@ process create_orthodb {
1313
path "orthodb.fasta" into orthodb_fasta
1414

1515
"""
16+
touch orthodb.fasta
17+
1618
url_regex='^(https?|ftp|file)://[-A-Za-z0-9\\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\\+&@#/%=~_|]\\.[-A-Za-z0-9\\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\\+&@#/%=~_|]\$'
1719
1820
if [[ ${orthodb_path} =~ \$url_regex ]]; then wget ${orthodb_path}; else ln -s ${orthodb_path}; fi
1921
20-
if [[ `ls *.tar.gz 2> /dev/null` ]]; then tar -xvf *.tar.gz ; rm *.tar.gz; fi
21-
22-
cat */Rawdata/* > orthodb.fasta
22+
if [[ `ls *.fa.gz 2> /dev/null` ]]; then gunzip *.fa.gz ; cat *.fa > orthodb.fasta; fi
2323
"""
2424
}
2525

0 commit comments

Comments
 (0)