Ensure more than just the cds of BAG1 can be read without crashing
We need to sanitise inputs and allow for variable FASTA content so that any version of a gene FASTA file can be safely loaded. This happens if I try to load a complete file (Gene_ENSG00000107262.26-BAG1.fas) instead of just a CDS.
Traceback (most recent call last):
File "./main.py", line 287, in openFastaFile_clicked
mRNASequences = fa.transDNA2mRNA(file)
File "/home/athamanatha/INITIATOR_SET-master/fasta/FastaSeq.py", line 212, in transDNA2mRNA
mRNAFastaSequences.append(translateSequenceForward(seq, 0, 'mRNA'))
File "/home/athamanatha/INITIATOR_SET-master/fasta/FastaSeq.py", line 109, in translateSequenceForward
SequenceString += mNucleotide
UnboundLocalError: local variable 'mNucleotide' referenced before assignment
Aborted
athamanatha@Pot-of-Gold:~/INITIATOR_SET-master$