Skip to content

Commit 87508dc

Browse files
authored
Merge pull request #32 from PlantandFoodResearch/fix/braker/fasta
Now removing comments from FASTA file before feeding it to BRAKER
2 parents e49e94c + 7a39c25 commit 87508dc

File tree

8 files changed

+51
-9
lines changed

8 files changed

+51
-9
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## 0.3.2 - [13-May-2024]
7+
8+
### `Added`
9+
10+
### `Fixed`
11+
12+
1. Increased time limit for REPEATMODELER_REPEATMODELER to 5 days
13+
2. Now removing comments from fasta file before feeding it to BRAKER added tests for the perl one liner
14+
3. Fixed CHANGELOG version check failure in `version_check.sh`
15+
4. Increased the SLURM job time limit to 14 days
16+
17+
### `Dependencies`
18+
19+
1. NextFlow!>=23.04.4
20+
2. nf-validation=1.1.3
21+
22+
### `Deprecated`
23+
624
## 0.3.1 - [10-May-2024]
725

826
### `Added`

conf/base.config

+5-5
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ process {
6666
memory = { check_max( 200.GB * task.attempt, 'memory' ) }
6767
}
6868

69-
withName:REPEATMODELER_REPEATMODELER {
70-
time = { check_max( 3.days * task.attempt, 'time' ) }
69+
withName:EGGNOGMAPPER {
70+
time = { check_max( 1.day * task.attempt, 'time' ) }
7171
}
7272
withName:REPEATMASKER {
7373
time = { check_max( 2.days * task.attempt, 'time' ) }
7474
}
75+
withName:REPEATMODELER_REPEATMODELER {
76+
time = { check_max( 5.days * task.attempt, 'time' ) }
77+
}
7578
withName:EDTA_EDTA {
7679
time = { check_max( 7.days * task.attempt, 'time' ) }
7780
}
7881
withName:BRAKER3 {
7982
time = { check_max( 7.days * task.attempt, 'time' ) }
8083
}
81-
withName:EGGNOGMAPPER {
82-
time = { check_max( 1.day * task.attempt, 'time' ) }
83-
}
8484
withName:CUSTOM_DUMPSOFTWAREVERSIONS {
8585
cache = false
8686
}

modules/kherronism/braker3/main.nf

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ process BRAKER3 {
4242
"""
4343
cp -r /usr/share/augustus/config augustus_config
4444
45+
perl -p -e 's/^(>\\S+).*\$/\$1/' \\
46+
${fasta} \\
47+
> ${prefix}.name.only.genome.masked.fasta
48+
4549
braker.pl \\
46-
--genome ${fasta} \\
50+
--genome ${prefix}.name.only.genome.masked.fasta \\
4751
${new_species} \\
4852
--workingdir ${prefix} \\
4953
--AUGUSTUS_CONFIG_PATH "\$(pwd)/augustus_config" \\
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
perl -p -e 's/^(>\S+).*$/$1/' \
4+
modules/kherronism/braker3/tests/test.fa
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
>chr1 This is with four spaces and a space and a tab
2+
AAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAC
3+
CCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTA
4+
>chr2 This is with four spaces
5+
TAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAA
6+
CCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCT
7+
AAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAC
8+
>chr3 This is with a single space
9+
TAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAA
10+
CCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCT
11+
>chrX
12+
AACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACC
13+
CTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAA
14+
>chrY This desc is with tab and another tab | and a vertical slash
15+
AACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACC
16+
CTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAA

nextflow.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ manifest {
5858
description = """A NextFlow pipeline for pan-genome annotation"""
5959
mainScript = 'main.nf'
6060
nextflowVersion = '!>=23.04.4'
61-
version = '0.3.1'
61+
version = '0.3.2'
6262
doi = ''
6363
}
6464

pfr_pangene

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
#SBATCH --job-name PANGENE
5-
#SBATCH --time=7-00:00:00
5+
#SBATCH --time=14-00:00:00
66
#SBATCH --nodes=1
77
#SBATCH --ntasks=1
88
#SBATCH --cpus-per-task=1

version_check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ config_version=$(sed -n "s/.*version.*= '\(.*\)'.*/\1/p" nextflow.config)
44

55
# Check CHANGELOG version
66

7-
grep "## $config_version - " CHANGELOG.md >/dev/null \
7+
head -n 10 CHANGELOG.md | grep "## $config_version - " >/dev/null \
88
|| (echo 'Failed to match CHANGELOG version'; exit 1)

0 commit comments

Comments
 (0)