Commit 2ddd41cb authored by Jordan Eckhoff's avatar Jordan Eckhoff

Changed test code to work with one sequence at a time

parent dc3bebe2
......@@ -27,31 +27,42 @@ with open(askopenfilename(),'r') as FastaFile: # Opens the selected .fa file via
# and its associated metadata as seperate properties, Seq and Meta respectively, as well as Code, a string
# indicating the type of sequence encoded (DNA, mRNA, Protein, or Indeterminable)
for a in range(0,len(Sequences)):
print(Sequences[a].Meta + '\n',
Sequences[a].Seq + '\n',
Sequences[a].CodeType + '\n')
print('There are ' + str(len(Sequences)) + ' sequences in this FASTA file.\n' + 'Please input which number sequence you would like to use:')
SeqNo = int(input())
print('\n')
print('Selected sequence data:\n')
print(' Metadata: ' + Sequences[SeqNo - 1].Meta + '\n')
print(' Original Sequence: ' + Sequences[SeqNo - 1].Seq + '\n')
print('Please enter reading frame number (0, 1, or 2):')
FrameNo = int(input())
X = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[SeqNo-1],FrameNo)
print('Translated Sequence: ' + X.Seq)
W = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[0],0,'Protein')
#for a in range(0,len(Sequences)):
# print(Sequences[a].Meta + '\n',
# Sequences[a].Seq + '\n',
# Sequences[a].CodeType + '\n')
print(W.Meta + '\n',
W.Seq + '\n',
W.CodeType + '\n')
#W = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[0],2,'Protein')
X = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[1],0,'Protein')
#print(W.Meta + '\n',
# W.Seq + '\n',
# W.CodeType + '\n')
print(X.Meta + '\n',
X.Seq + '\n',
X.CodeType + '\n')
#X = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[1],2,'Protein')
Y = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[2],0,'Protein')
#print(X.Meta + '\n',
# X.Seq + '\n',
# X.CodeType + '\n')
print(Y.Meta + '\n',
Y.Seq + '\n',
Y.CodeType + '\n')
#Y = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[2],2,'Protein')
Z = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[3],0,'Protein')
#print(Y.Meta + '\n',
# Y.Seq + '\n',
# Y.CodeType + '\n')
print(Z.Meta + '\n',
Z.Seq + '\n',
Z.CodeType + '\n')
#Z = IS_Fasta_Sequence.Sequence_Forward_Translate(Sequences[3],2,'Protein')
#print(Z.Meta + '\n',
# Z.Seq + '\n',
# Z.CodeType + '\n')
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