-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnmrfilter2.py
More file actions
26 lines (22 loc) · 838 Bytes
/
nmrfilter2.py
File metadata and controls
26 lines (22 loc) · 838 Bytes
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
import configparser
import os
import subprocess
import sys
from clustering import *
from clusterlouvain import *
from similarity import *
from nmrutil import *
from plotutil import *
project=sys.argv[1]
cp = readprops(project)
datapath=cp.get('datadir')
predictionoutputfile=datapath+os.sep+project+os.sep+'result'+os.sep+cp.get('predictionoutput')
clusteringoutputfile=datapath+os.sep+project+os.sep+'result'+os.sep+cp.get('clusteringoutput')
louvainoutputfile=datapath+os.sep+project+os.sep+'result'+os.sep+cp.get('louvainoutput')
print("Clustering the peaks in the measured spectrum...")
cluster2dspectrum(cp, project)
print("Detecting communities in the measures spectrum...")
cluster2dspectrumlouvain(cp, project)
print("Calculating best hits in your compounds...")
generateBackgrounds(cp, project)
similarity(cp, project, True)