Skip to content

Commit c3b38ed

Browse files
committed
Add existing file
1 parent 5c5a5e4 commit c3b38ed

File tree

5 files changed

+8
-275
lines changed

5 files changed

+8
-275
lines changed

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
include *.in
12
include *.txt
3+
recursive-include discere/features/ *
4+
recursive-include discere *.py
5+
graft preprocessing
6+
graft features

discere/discere.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
from discere.features import feature_extraction
44
system = sys.platform
55

6-
# def feat_ext():
7-
# print("Extracting features....")
8-
# if system == 'linux':
9-
# subprocess.run(['python3','feature_extraction.py'])
10-
# else:
11-
# subprocess.run(['python.exe','process_fasta.py'])
12-
136
def extract_feature(positive, negative, outdir):
147
code = process_fasta.process_fasta(positive, negative, outdir)
158
if code is True:

discere/features/feature_extraction.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def feature_extraction(outdir=os.getcwd()):
1717
seq_list, cls_list=data['sequence'].tolist(), data['class'].tolist() # get the sequence and class to lists
1818

1919
pth=path_+'/output/'
20-
print(pth)
2120
if not os.path.exists(pth):os.makedirs(pth)
2221

2322
#try:[os.remove(filenames[0]+x) for filenames in os.walk(pth) for x in (filenames[2])] # remove the file if already exist
@@ -27,7 +26,6 @@ def feature_extraction(outdir=os.getcwd()):
2726
attr=open(filepath,"rb")
2827

2928
attr=pickle.load(attr) # load the pickle file with attribue names (for weka)
30-
print(attr)
3129
with open(pth+"/weka_output.arff","a+") as wk: wk.write("".join('{}\n'.format(x) for x in attr))
3230

3331
def format_output(aa_count,cnt): # write the extracted feature values to arff (weka), txt(svm) and csv file

0 commit comments

Comments
 (0)