Elegant code explained so well! This content is such a lifeline for people like me who've learnt the language but none of the extra tricks you're including. Having a great time with these vids, looking forward to more
I keep receiving errors for my return 1.strip() for 1 in f.readlines portion of the code, I then tried arranging it in multiple ways until finally I got it to work with just having f.readlines and no other part but my output was different. My output was not organizing itself, basically outputting the same thing and when i got later in the code, it wasnt processing the gc count only giving me 0.0. How do i fix this? Am i missing a package to process that portion of the code, i know i have biopython and pip im not sure what im missing
Hi Erin! Let's see: It is hard to tell what is going on as you did not provide any info on what error you are seeing. We can only guess here. * "keep receiving errors for my r 1.strip() for 1 in f.readlines portion of the code" If the variable name is 1, this might be the problem. Variable names can't be just a number. Try calling it my_sequence or something. Also, error should tell you exactly what is wrong. * "How do i fix this? Am i missing a package to process that portion of the code, i know i have biopython and pip I am not sure what I am missing" You don't need any packages for DNA Toolkit series, as we create everything from scratch. BioPython is a library/package that has a lot of functionality, already written for us. We don't use that. pip - is a package installer, so this also has nothing to do with the code we are working on in the DNA Toolkit series. Please join one of our communities in Telegram or Matrix, as it is easier to share code and screenshot there, and we have a lot of people who can help there too. All the links are in the description of every video.
Hey! Thank you very much. I am really and truly glad it helped you. And I will make more videos. As this is not my main thing, the frequency of the videos is not great now, but I really love making them and I hope I can have a stable release cycle soon. I am still learning how to present things too.
this might be a noob question because I only have ~1 month experience of python as well...but why do you use parenteses (key, value), it works without to? Is it just to make it easier to read or does it have some other function? thank you very much for your videos!
Hey! Sorry for the late reply. Yes, it is just for readability and probably my "old-school" habits from C/C++ days. I need to work on consistency I guess. But what is very good though, is you, realizing things like that and bringing them up. Just shows that you are very into it.
Elegant code explained so well! This content is such a lifeline for people like me who've learnt the language but none of the extra tricks you're including. Having a great time with these vids, looking forward to more
I forgot to remove the ''>" initially and it kept getting marked incorrect on Rosalind. Thanks for pointing this out!
I keep receiving errors for my return 1.strip() for 1 in f.readlines portion of the code, I then tried arranging it in multiple ways until finally I got it to work with just having f.readlines and no other part but my output was different. My output was not organizing itself, basically outputting the same thing and when i got later in the code, it wasnt processing the gc count only giving me 0.0. How do i fix this? Am i missing a package to process that portion of the code, i know i have biopython and pip im not sure what im missing
Hi Erin! Let's see:
It is hard to tell what is going on as you did not provide any info on what error you are seeing.
We can only guess here.
* "keep receiving errors for my r 1.strip() for 1 in f.readlines portion of the code"
If the variable name is 1, this might be the problem. Variable names can't be just a number. Try calling it my_sequence or something. Also, error should tell you exactly what is wrong.
* "How do i fix this? Am i missing a package to process that portion of the code, i know i have biopython and pip I am not sure what I am missing"
You don't need any packages for DNA Toolkit series, as we create everything from scratch. BioPython is a library/package that has a lot of functionality, already written for us. We don't use that. pip - is a package installer, so this also has nothing to do with the code we are working on in the DNA Toolkit series.
Please join one of our communities in Telegram or Matrix, as it is easier to share code and screenshot there, and we have a lot of people who can help there too. All the links are in the description of every video.
Make more videos... really helpful..
Hey! Thank you very much. I am really and truly glad it helped you. And I will make more videos. As this is not my main thing, the frequency of the videos is not great now, but I really love making them and I hope I can have a stable release cycle soon. I am still learning how to present things too.
great work!
You try to give the video more brightness it will be great if you do
Thanks! Waiting for next one!
Youre my idol thank you!!!!
this might be a noob question because I only have ~1 month experience of python as well...but why do you use parenteses (key, value), it works without to? Is it just to make it easier to read or does it have some other function? thank you very much for your videos!
Hey! Sorry for the late reply. Yes, it is just for readability and probably my "old-school" habits from C/C++ days. I need to work on consistency I guess. But what is very good though, is you, realizing things like that and bringing them up. Just shows that you are very into it.
am i the only one who tried all the possible solutions but the script either give me a 100% if the string only contains G and C or 0% if else !