Skip to content

Commit 6999d56

Browse files
committed
Remove unused Python dependencies
1 parent e05fd48 commit 6999d56

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN curl -LO https://jbrowse.org/releases/JBrowse-${JBROWSE_VERSION}/JBrowse-${J
3030
mv JBrowse-${JBROWSE_VERSION} /var/www/html/jbrowse && \
3131
rm JBrowse-${JBROWSE_VERSION}.zip && \
3232
cd /var/www/html/jbrowse && ./setup.sh
33-
RUN pip install --no-cache-dir numpy==1.11.2 pymongo==3.8.0 requests==2.22.0 && \
34-
pip3 install --no-cache-dir numpy==1.17.2 pymongo==3.8.0 requests==2.20.0 Jinja2==2.10.1
33+
RUN pip install --no-cache-dir pymongo==3.8.0 requests==2.22.0 && \
34+
pip3 install --no-cache-dir pymongo==3.8.0 requests==2.20.0 Jinja2==3.1.2
3535
COPY config-template /var/www/html/config
3636
WORKDIR /var/www/html
3737
CMD service mongodb start && exec apache2-foreground

src/guide-finder/core/cfd_code/cfd_score_calculator3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
#Calculates the Cutting Frequency Determination score
44
#Requirements: 1. Pickle file with mismatch scores in working directory
5-
# 2. Pickle file containing PAM scores in working directory
5+
# 2. Pickle file containing PAM scores in working directory
66
#Input: 1. 23mer WT sgRNA sequence
77
# 2. 23mer Off-target sgRNA sequence
88
#Output: CFD score
99
import pickle
1010
import argparse
1111
import re
12-
import numpy as np
12+
1313

1414
import os
1515
dir_path = os.path.dirname(os.path.abspath(__file__))
@@ -37,7 +37,7 @@ def get_mm_pam_scores():
3737
mm_scores = pickle.load(open(os.path.join(dir_path,'mismatch_score.pkl'),'rb'))
3838
pam_scores = pickle.load(open(os.path.join(dir_path,'pam_scores.pkl'),'rb'))
3939
return (mm_scores,pam_scores)
40-
except Exception as e:
40+
except Exception as e:
4141
raise Exception("Could not find file with mismatch scores or PAM scores")
4242

4343
#Calculates CFD score

0 commit comments

Comments
 (0)