Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions Standalone/pfeature_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2139,24 +2139,12 @@ def readseq(file,out):
for i in range (1,len(seq)+1):
seqid.append("Seq_"+str(i))
for i in seq:
if 'B' in i:
NNAA = 'BJOUZX' # Non-natural amino acids
for j in NNAA:
if j in i
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
if 'J' in i:
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
if 'O' in i:
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
if 'U' in i:
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
if 'Z' in i:
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
if 'X' in i:
print('\nError: The input sequences contain non-natural amino acids. Kindly check the sequence.\n')
sys.exit()
print(f'Sequence (contains {j}): {i}')
sys.exit()
df4 = pd.DataFrame(seq)
df4.to_csv(out,index=None,header=False)
##############################################################################
Expand Down