-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (78 loc) · 3.04 KB
/
pythonpackage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Struo2
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ubuntu-latest
env:
DATADIR: data
strategy:
matrix:
python-version: [3.7]
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: 'latest'
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge,bioconda
channel-priority: strict
activate-environment: struo2
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: conda env setup
shell: bash -l {0}
run: |
conda info -a
conda env update -f conda_env.yaml python=${{ matrix.python-version }}
conda list
- name: taxdump db setup
shell: bash -l {0}
run: |
mkdir -p $DATADIR
wget --directory-prefix $DATADIR http://ftp.tue.mpg.de/ebio/projects/struo2/GTDB_release95/taxdump/taxdump.tar.gz
tar -pzxvf $DATADIR/taxdump.tar.gz --directory $DATADIR
- name: UniRef db setup
shell: bash -l {0}
run: |
mkdir -p $DATADIR/UniRef90/
touch $DATADIR/UniRef90/uniref90 $DATADIR/UniRef90/uniref90.dbtype $DATADIR/UniRef90/uniref90.index
touch $DATADIR/UniRef90/uniref90.lookup $DATADIR/UniRef90/uniref90.source
touch $DATADIR/UniRef90/uniref90_h $DATADIR/UniRef90/uniref90_h.dbtype $DATADIR/UniRef90/uniref90_h.index
wget --directory-prefix $DATADIR http://ftp.tue.mpg.de/ebio/projects/struo2/install/uniref_2019.01/uniref50-90.pkl
- name: Reference genome download
shell: bash -l {0}
run: |
wget --directory-prefix $DATADIR http://ftp.tue.mpg.de/ebio/projects/struo2/dev_data/genomes/GTDBr95_n10.tar.gz
tar -pzxvf $DATADIR/GTDBr95_n10.tar.gz --directory $DATADIR
- name: DB create tests
shell: bash -l {0}
run: |
snakemake --use-conda --configfile config.yaml -j 1 -F --dryrun
- name: DB update tests
shell: bash -l {0}
run: |
echo "todo" #snakemake --use-conda --configfile config-update.yaml -j 1 -F --dryrun
- name: Util script dependency tests
shell: bash -l {0}
run: |
./util_scripts/genome_download.R -h
./util_scripts/GTDB_metadata_filter.R -h
./util_scripts/tree_prune.py -h
./util_scripts/genome_mis-asmbl_sim.py -h
- name: Tree pruning test
shell: bash -l {0}
run: |
wget --directory-prefix $DATADIR http://ftp.tue.mpg.de/ebio/projects/struo2/dev_data/phylogeny.tar.gz
tar -pzxvf $DATADIR/phylogeny.tar.gz --directory $DATADIR
./util_scripts/tree_prune.py data/phylogeny/accs_to_keep.txt data/phylogeny/ar122_r95.tree
- name: Mis-assembly simulation test
shell: bash -l {0}
run: |
./util_scripts/genome_mis-asmbl_sim.py -b 2 -r 2 -c 2 -T ncbi_organism_name -F fasta_file_path data/GTDBr95_n10/GTDBr95_n10.tsv