The 2nd Monitor

General discussion about codereview.stackexchange.com - Welcom...
Jul 14, 2022 15:09
which q @Duga
Jul 14, 2022 15:05
Straightforward Python Q for anyone who fancies a look
Jul 14, 2022 15:04
1
Q: Converting an RNA sequence into the amino acid code and introducing a mutation

user260750I have recently started coding in Python and this is my first proper project. The user enters an RNA sequence and the program converts the code into the corresponding amino acid sequence. The user can then choose what kind of a mutation they want to introduce and where. The program will then outp...

Apr 20, 2020 12:47
Thanks for talking through it with me, have a good lunch.
Apr 20, 2020 12:45
What makes you say it's broken?
Apr 20, 2020 12:45
and have -1 represent no join
Apr 20, 2020 12:45
if distance_matrix[vertex_1[vertex_2]] != -1:
Apr 20, 2020 12:43
My code is super wrong
Apr 20, 2020 12:42
if distance_matrix[vertex_1[vertex_2]]:
Apr 20, 2020 12:42
So to check if they are connected - having a distance != 0:
Apr 20, 2020 12:40
That would make a very nice structure
Apr 20, 2020 12:38
Ah, I hadn't thought about nesting dicts
Apr 20, 2020 12:34
@Peilonrayz I think I will go for a nested lists. It would be cleaner than messing around with dictionary.keys() and zip. Many thanks for your help
Apr 20, 2020 12:29
This is what makes me question the benefits of a dictionary
Apr 20, 2020 12:28
But I already keep a list of vertices in the code, so I wouldn't be running d.keys()
Apr 20, 2020 12:27
I said enumerate but that would be incorrect, I think I need to use zip
Apr 20, 2020 12:22
I will probably post it for review once I have mangled some code together
Apr 20, 2020 12:22
Thank you for letting me work through the problem, I think I have a solution
Apr 20, 2020 12:19
{"A":[0,3],"B": [3,0]}
Apr 20, 2020 12:17
well, chars but I think Python doesn't distinguish
Apr 20, 2020 12:17
Strings
Apr 20, 2020 12:16
The keys would be the vertices
Apr 20, 2020 12:15
If I had a dictionary I could store the distances (weights) and then enumerate with the keys. I would require another list for that if I went with the 2d
Apr 20, 2020 12:14
I want to implement a distance matrix, but I don't which structure to use. I could use a 2d array or a Python dictionary.
Apr 20, 2020 12:13
Okay, thank you.
Apr 20, 2020 12:09
Can I ask a short question here? Not a review, but for general Python advice.
Oct 11, 2017 10:42
Imgur?
Oct 11, 2017 10:09
@Zeta Thanks, just tidied up my questions
Oct 11, 2017 09:56
He hasn't selected any of the responses as an answer
Oct 11, 2017 09:56
What can I do if one of my responses is not marked as an answer?
Oct 11, 2017 09:55
Monking
 

 Coding Projects and Duga Heaven :)

Minesweeper Flags, Zomis' games, PDB, MTG, Cardshifter, and al...
Apr 15, 2020 18:46
I have used the main site quite a lot, I haven't used any of the chats before
Apr 15, 2020 18:46
I have used the main site quite a lot, I haven't used any of the chats before
Apr 15, 2020 18:46
I am just having a look around the chatrooms for code review
Apr 15, 2020 18:46
@IvenBach Hello
Apr 15, 2020 18:29
Hi
 

 Electrical Engineering

A place to talk with friends from the EE community about vacuu...
Aug 25, 2018 21:15
* not my image
Aug 25, 2018 21:15
Aug 25, 2018 21:15
Most of them fit, however, I intend to bend one row of pins to fit
Aug 25, 2018 21:13
@W5VO Sorry, but I don't understand
Aug 25, 2018 21:05
The longer side measures 0.5cm
Aug 25, 2018 21:04
That would solve the soldering issues, however, would that be long enough to connect to the female pins on the other board?
Aug 25, 2018 20:48
Any help would would be much appreciated
Aug 25, 2018 20:46
I cannot figure out a way to solder them with the stripboard in the desired orientation and not melting the plastic in the process
Aug 25, 2018 20:45
I have a stripboard and some male headers. I want to DIY a shield for my Uno. The headers are difficult to solder as I would prefer to have the non-copper side upwards, this means the plastic section of the header is touching the stripboard and I cannot reach the copper tracks to solder.
Aug 25, 2018 20:34
I am wondering how to solder headers to a stripboard
Aug 25, 2018 20:34
would this be the right SE site for a question regarding soldering techniques?
 
Nov 20, 2017 09:04
Or should I open another thread w.r.t. the 20%?
Nov 20, 2017 08:54
So in answer to the second part of my query: is 'the 20% of black respondents answered positively' too convoluted to state as a fact?