Skip to content
Permalink
5ab4ed8e4a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (13 sloc) 332 Bytes
import pandas as pd
import sys
import re
from os.path import exists, isdir
pdb_id = sys.argv[1]
# Read the CSV file
csv_file = './CSP_'+pdb_id+'_CSpred.csv'
max_consensus = -1
df = pd.read_csv(csv_file)
for consensus in df['consensus']:
if consensus > max_consensus:
max_consensus = consensus
print(max_consensus)