Commit 6187ee8a by Mustafa Tekpinar

Corrected ranksorting for M1M, A2A etc. inside prescott.py!

parent 83fcd07e
...@@ -659,10 +659,15 @@ def main(): ...@@ -659,10 +659,15 @@ def main():
aaOrderList = list('ACDEFGHIKLMNPQRSTVWY') aaOrderList = list('ACDEFGHIKLMNPQRSTVWY')
if(args.escottformat=='gemme'): if(args.escottformat=='gemme'):
#Parse the file containing raw ESCOTT scores. # Parse the file containing raw ESCOTT scores.
scanningMatrix = parseGEMMEoutput(args.escottfile, verbose=False) # The file is in GEMME format for backward compatibility!
# scanningMatrix = parseGEMMEoutput(args.escottfile, verbose=False)
gemmeDF = pd.read_table(args.escottfile, sep="\s+")
#matrix = gemmeDF.to_numpy()
maxValue =np.nanmax(gemmeDF.to_numpy())
# print(maxValue)
scanningMatrix = gemmeDF.to_numpy(na_value=maxValue)
writeSinglelineFormat(scanningMatrix, protein+'_singleline.txt', residueList = localResidueList,\ writeSinglelineFormat(scanningMatrix, protein+'_singleline.txt', residueList = localResidueList,\
beg=0, end=None, aaOrder = aaOrderList, \ beg=0, end=None, aaOrder = aaOrderList, \
...@@ -893,7 +898,7 @@ def main(): ...@@ -893,7 +898,7 @@ def main():
# myBigMergedDF = myBigMergedDF['mutant'].apply(lambda x: x.upper()) # myBigMergedDF = myBigMergedDF['mutant'].apply(lambda x: x.upper())
myBigMergedDF.to_csv(outfile+'-details.csv', index=None) myBigMergedDF.to_csv(outfile+'-details.csv', index=None)
print(localResidueList) # print(localResidueList)
with open(outfile+'.csv', 'w') as my_file: with open(outfile+'.csv', 'w') as my_file:
my_file.write(",") my_file.write(",")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment