Skip to content

Commit ea11ded

Browse files
authored
Merge pull request #80 from Hoeze/utr_dl
UTR data loader and cleanup of protein dataloader
2 parents 73468e9 + f03ddb4 commit ea11ded

34 files changed

+1678
-542
lines changed

.circleci/config.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ variables:
1010
name: create env
1111
command: |
1212
conda create -n kipoi-dev python=3.6
13-
create_env_py35: &create_env_py35
14-
run:
15-
name: create env
16-
command: |
17-
conda create -n kipoi-dev python=3.5
1813
install_git_lfs: &install_git_lfs
1914
run:
2015
name: Install git-lfs
@@ -43,7 +38,7 @@ variables:
4338
apt-get update -y
4439
apt-get install build-essential -y
4540
conda install -y cython
46-
conda install -y -c bioconda cyvcf2 pybedtools genomelake pyfaidx
41+
conda install -y -c bioconda cyvcf2 pybedtools genomelake pyfaidx biopython
4742
install_kipoi: &install_kipoi
4843
run:
4944
name: Install Kipoi
@@ -82,8 +77,8 @@ variables:
8277
run:
8378
name: run coveralls
8479
command: |
85-
source activate kipoi-dev
86-
coveralls || true
80+
source activate kipoi-dev
81+
coveralls || true
8782
store_test_results: &store_test_results
8883
store_test_results:
8984
path: test-reports
@@ -113,23 +108,6 @@ jobs:
113108
- *store_test_results
114109
- *store_test_artifacts
115110

116-
test-py35:
117-
docker:
118-
- image: continuumio/miniconda3:4.5.12
119-
working_directory: ~/repo
120-
steps:
121-
- checkout
122-
- *update_conda
123-
- *create_env_py35
124-
- *update_pytorch
125-
- *install_conda_deps
126-
- *install_kipoi
127-
- *install_kipoiseq
128-
- *kipoi_ls
129-
- *run_tests
130-
- *run_coveralls
131-
- *store_test_results
132-
- *store_test_artifacts
133111

134112

135113
build-deploy-docs:
@@ -170,7 +148,6 @@ workflows:
170148
test:
171149
jobs:
172150
- test-py36
173-
- test-py35
174151
- build-deploy-docs:
175152
requires:
176153
- test-py36

kipoiseq/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@
1010
from . import dataloaders
1111
from . import extractors
1212
from . import transforms
13-
14-

kipoiseq/dataclasses.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from copy import deepcopy
77
# from kipoi_utils.data_utils import numpy_collate, numpy_collate_concat
88
import math
9+
10+
911
# import numpy as np
1012
# -------------------------------------------
1113
# basepair implementation
@@ -91,9 +93,8 @@ def from_cyvcf(cls, obj):
9193
# if there is a deletion
9294
# empty string
9395
if len(obj.ALT) == 0:
94-
obj.ALT = ['']
95-
96-
96+
obj.ALT = ['']
97+
9798
return cls(chrom=obj.CHROM,
9899
pos=obj.POS,
99100
ref=obj.REF,
@@ -104,10 +105,10 @@ def from_cyvcf(cls, obj):
104105
info=dict(obj.INFO),
105106
source=obj,
106107
)
107-
108+
108109
@classmethod
109110
def from_cyvcf_and_given_alt(cls, obj, alt):
110-
111+
111112
return cls(chrom=obj.CHROM,
112113
pos=obj.POS,
113114
ref=obj.REF,

0 commit comments

Comments
 (0)