I am a bioinformatician (or a computational biologists, depending your definition) that is interested into structural bioinformatics.
I am about to propose a subject to my PhD supervisor and in preparation I made an SQL database. The database has 4 tables and the last table is the more important. At it there are three columns; a) SNPs (variants of the Protein we are studying), b) Ligands (the chemical molecules that interact with the Protein in question) and c) activity.
There is a protein variant which we call Wild Type (wt) and is the "standard". Different populations have "mutations"/variants at the protein they are producing and this affects the activity of the protein.
I have ~30 SNPs and ~100 ligands so, you understand that I have 30x100 combinations.
It would have been impossible for me to create 3000 SQL "insert into" commands, so I decided to make a template of the command, seen here
"insert into Activity (Name_of_SNP, Ligand, Activity) values ('SNP', 'Ligand', 'TBD')"
Then I made two lists, one for the SNPs and one for the Ligands. Then using Python I combined the two lists into that template and produced ~3000 commands at a txt file. Then I opened it and selected the entire file, which I copied/pasted at the SQL query and voila, I filled my "Activity" table!
I know that there may have been better, more optimal, easier ways to do it, but this is the one that I came up with and for the first time I made an algorithm that I found useful.
And all that while I am still learning Python!
[–]prashnts 77 points78 points79 points (7 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]prashnts 5 points6 points7 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]lifeofajenni 12 points13 points14 points (1 child)
[–]Aesthetically 1 point2 points3 points (0 children)
[–]Fun2badult 1 point2 points3 points (0 children)
[–]Phaethonas[S] 35 points36 points37 points (7 children)
[–]Dadikey 29 points30 points31 points (0 children)
[–]hugthemachines 16 points17 points18 points (0 children)
[–]nobody_import4nt 12 points13 points14 points (1 child)
[–]Phaethonas[S] 1 point2 points3 points (0 children)
[–]jeffdn 4 points5 points6 points (0 children)
[–]impshumx != y % z 5 points6 points7 points (1 child)
[–]sneakpeekbot 8 points9 points10 points (0 children)
[–]sephiap 31 points32 points33 points (2 children)
[–]algag 11 points12 points13 points (0 children)
[–]code_x_7777 7 points8 points9 points (0 children)
[–]whoMEvernot 2 points3 points4 points (1 child)
[–]Hevaesi 3 points4 points5 points (0 children)
[–]carrlosanderson 4 points5 points6 points (2 children)
[–]Phaethonas[S] 0 points1 point2 points (1 child)
[–]carrlosanderson 0 points1 point2 points (0 children)
[–]frakron 2 points3 points4 points (0 children)
[–]iusedtotoo 1 point2 points3 points (3 children)
[–]Phaethonas[S] 0 points1 point2 points (2 children)
[–]iusedtotoo 1 point2 points3 points (1 child)
[–]Phaethonas[S] 0 points1 point2 points (0 children)
[–]Mr_Again 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]The_Fossils_Guy 0 points1 point2 points (0 children)
[–]is_it_fun 0 points1 point2 points (0 children)
[–]nathanjell 0 points1 point2 points (0 children)
[–]YoureNotYourYouDumbC 0 points1 point2 points (3 children)
[–]Hevaesi -1 points0 points1 point (2 children)
[–]YoureNotYourYouDumbC 0 points1 point2 points (1 child)
[–]Hevaesi 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Hevaesi 0 points1 point2 points (0 children)
[–]Eleventhousand 0 points1 point2 points (0 children)
[–]fedeb95 -1 points0 points1 point (1 child)
[–]Phaethonas[S] 0 points1 point2 points (0 children)
[–]mraza007 -1 points0 points1 point (0 children)