Skip to content

Commit c756ab0

Browse files
committed
added check for invalid min-/maxDist; works with fasta36.3.8g
1 parent a746c8f commit c756ab0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/github_build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ jobs:
4141
pwd
4242
pip install .
4343
path=$(fdog.setup -d ./ --getSourcepath); for i in $(less $path/data/dependencies.txt); do sudo apt-get install -y -qq $i; done
44+
echo "TEST fdog.setup"
4445
fdog.setup -d /home/runner/work/fDOG/fDOG/dt --woFAS
46+
echo "TEST fdog.checkData"
4547
fdog.checkData -s /home/runner/work/fDOG/fDOG/dt/searchTaxa_dir -c /home/runner/work/fDOG/fDOG/dt/coreTaxa_dir -a /home/runner/work/fDOG/fDOG/dt/annotation_dir --reblast
48+
echo "TEST fdog.showTaxa"
4649
fdog.showTaxa
50+
echo "TEST fdog.run"
4751
fdog.run --seqFile infile.fa --jobName test --refspec HUMAN@9606@3 --fasOff
4852
mkdir seeds
4953
path=$(fdog.setup -d ./ --getSourcepath); a="1 2 3"; for i in ${a[@]}; do cp $path/data/infile.fa seeds/$i.fa; done
54+
echo "TEST fdog.run with only 2 search taxa"
5055
fdogs.run --seqFolder seeds --jobName test_multi --refspec HUMAN@9606@3 --fasOff --searchTaxa PARTE@5888@3,THAPS@35128@3
56+
echo "TEST fdog.addTaxon"
5157
head /home/runner/work/fDOG/fDOG/dt/searchTaxa_dir/HUMAN@9606@3/HUMAN@[email protected] > hm.fa
5258
fdog.addTaxon -f hm.fa -i 9606 -o ./ -c -a
5359
ls

fdog/libs/alignment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ def calc_aln_score(fa1, fa2, aln_strategy = 'local', debugCore = False):
140140
Return dictionary {gene_id:aln_score}
141141
"""
142142
fdog_path = os.path.realpath(__file__).replace('/libs/alignment.py','')
143+
if os.path.exists('fasta36_1.fa'):
144+
os.remove('fasta36_1.fa')
145+
if os.path.exists('fasta36_2.fa'):
146+
os.remove('fasta36_2.fa')
143147
os.symlink(fa1, 'fasta36_1.fa')
144148
os.symlink(fa2, 'fasta36_2.fa')
145149
# fasta36_options = '%s %s -s BP62 -m 9 -d 0 -z -1 -E 100' % (fa1, fa2)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="fdog",
29-
version="0.1.18",
29+
version="0.1.19",
3030
python_requires='>=3.7.0',
3131
description="Feature-aware Directed OrtholoG search tool",
3232
long_description=long_description,

0 commit comments

Comments
 (0)