File tree 2 files changed +5
-5
lines changed
src/guide-finder/core/cfd_code
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ RUN curl -LO https://jbrowse.org/releases/JBrowse-${JBROWSE_VERSION}/JBrowse-${J
30
30
mv JBrowse-${JBROWSE_VERSION} /var/www/html/jbrowse && \
31
31
rm JBrowse-${JBROWSE_VERSION}.zip && \
32
32
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
35
35
COPY config-template /var/www/html/config
36
36
WORKDIR /var/www/html
37
37
CMD service mongodb start && exec apache2-foreground
Original file line number Diff line number Diff line change 2
2
3
3
#Calculates the Cutting Frequency Determination score
4
4
#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
6
6
#Input: 1. 23mer WT sgRNA sequence
7
7
# 2. 23mer Off-target sgRNA sequence
8
8
#Output: CFD score
9
9
import pickle
10
10
import argparse
11
11
import re
12
- import numpy as np
12
+
13
13
14
14
import os
15
15
dir_path = os .path .dirname (os .path .abspath (__file__ ))
@@ -37,7 +37,7 @@ def get_mm_pam_scores():
37
37
mm_scores = pickle .load (open (os .path .join (dir_path ,'mismatch_score.pkl' ),'rb' ))
38
38
pam_scores = pickle .load (open (os .path .join (dir_path ,'pam_scores.pkl' ),'rb' ))
39
39
return (mm_scores ,pam_scores )
40
- except Exception as e :
40
+ except Exception as e :
41
41
raise Exception ("Could not find file with mismatch scores or PAM scores" )
42
42
43
43
#Calculates CFD score
You can’t perform that action at this time.
0 commit comments