For anyone looking at the for loop that checks the length of current_prot list of strings, iterates over a range of values representing indexes and accessing the strings inside via index (hastebin.com/ifacavoxej.cs). While this is a classic use of for loop that can be seen in other C-like languages in various forms (i=0; i
Great video. Thanks. For this function, I tried iterating the aa sequence from the end. Mark the current "_" as an end. Append every seq with newly found “M” to proteins[]. It seems less time and space used.
I didn't understand the last for loop "for i in range(len(current_prot))" It should append the element in the 0th position, am I right?, then after each iteration it should append to the last position, what did i get wrong
Hey! Sorry for the late reply. At 7:15 I explain that the length is not the length of the string, but of the list of strings. This is needed so we can accumulate multiple protein sequences at the same time. [i] value is not the position of the character in the string, but a value in the list, to which we add 'aa' character. Try playing around with changing values and use the debugger as I showed in the video. Experiment. This way you can understand better what is going on.
Hi, first of all , you do perfekt Videos! Amazing ! I am a newbie and i have a question . if i run the code i take this results : The Proteins from this sequance are : ["M', 'G', 'K', 'I', '"] , normally i must take results like this : The Proteins from this sequance are : ['MGKI'] . But there are separate with comma ! The code is like this video and for the print in main , i write this protein_transl=str(proteins_from_rf(translateSeq)) , print("The Proteins from this sequance are : " + protein_transl) ! if someone knows where is the mistakes let me please know ! Thanks in Advance !
amazing series!! thank you:)
Just found your channel. Thank you for creating these videos and sharing them!
Thank you for supporting me.
awesome function...learnt so much and good explanation as well...
Glad to hear that!
For anyone looking at the for loop that checks the length of current_prot list of strings, iterates over a range of values representing indexes and accessing the strings inside via index (hastebin.com/ifacavoxej.cs). While this is a classic use of for loop that can be seen in other C-like languages in various forms (i=0; i
Great video. Thanks. For this function, I tried iterating the aa sequence from the end. Mark the current "_" as an end. Append every seq with newly found “M” to proteins[]. It seems less time and space used.
Nice
I didn't understand the last for loop "for i in range(len(current_prot))" It should append the element in the 0th position, am I right?, then after each iteration it should append to the last position, what did i get wrong
Hey! Sorry for the late reply. At 7:15 I explain that the length is not the length of the string, but of the list of strings. This is needed so we can accumulate multiple protein sequences at the same time. [i] value is not the position of the character in the string, but a value in the list, to which we add 'aa' character.
Try playing around with changing values and use the debugger as I showed in the video. Experiment. This way you can understand better what is going on.
Hi, first of all , you do perfekt Videos! Amazing ! I am a newbie and i have a question . if i run the code i take this results : The Proteins from this sequance are : ["M', 'G', 'K', 'I', '"] , normally i must take results like this : The Proteins from this sequance are : ['MGKI'] . But there are separate with comma ! The code is like this video and for the print in main , i write this protein_transl=str(proteins_from_rf(translateSeq))
, print("The Proteins from this sequance are : " + protein_transl) !
if someone knows where is the mistakes let me please know ! Thanks in Advance !