diff --git a/content/.obsidian/workspace.json b/content/.obsidian/workspace.json index 0ac089c..8f0fc3d 100644 --- a/content/.obsidian/workspace.json +++ b/content/.obsidian/workspace.json @@ -170,12 +170,11 @@ } } ], - "currentTab": 1 + "currentTab": 5 } ], "direction": "horizontal", - "width": 200, - "collapsed": true + "width": 429.5 }, "left-ribbon": { "hiddenItems": { @@ -188,20 +187,14 @@ "obsidian42-brat:BRAT": false, "agent-client:Open agent client": false, "graph:Open graph view": false, - "templates:Insert template": false, - "random-note:Open random note": false, - "tasknotes:Open mini calendar": false, - "tasknotes:Open advanced calendar": false, - "tasknotes:Open task list": false, - "tasknotes:Open agenda": false, - "tasknotes:Open kanban board": false, - "tasknotes:Open pomodoro": false, - "tasknotes:Open pomodoro stats": false, - "tasknotes:Create new task": false + "templates:Insert template": false } }, - "active": "4500546397a4e760", + "active": "f3646b47b9e138cd", "lastOpenFiles": [ + "Biokemi/Gamla tentor/tools/update_tags.py", + "Biokemi/Gamla tentor/tools/topic_mapping.tsv", + "Biokemi/Gamla tentor/tools", "Biokemi/Gamla tentor/md_only.zip", "Biokemi/Gamla tentor.zip", "Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/ProvfrĂ„gor.md", @@ -235,10 +228,7 @@ "Biokemi/Metabolism/🍭 Glukoneogenes/Slides.pdf.pdf", "Biokemi/Metabolism/🍖 Aminosyrametabolism/Slides.pdf.pdf", "Biokemi/Metabolism/PentosfosfatvĂ€gen/Slides.pdf.pdf", - "Biokemi/Metabolism/🧂 Glykogen/Slides.pdf.pdf", "attachments/Pasted image 20251129234842.png", - "Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv", - "Biokemi/Metabolism/🍕 ÎČ-oxidation/Slides.pdf.pdf", "Untitled.canvas", "Biokemi/Metabolism/Diagram/Glycolysis_overview.svg", "Biokemi/Metabolism/Diagram/TCA_cycle.svg", diff --git a/content/Biokemi/Gamla tentor/2021-12-16/24.md b/content/Biokemi/Gamla tentor/2021-12-16/24.md index 9745f20..22ffd73 100644 --- a/content/Biokemi/Gamla tentor/2021-12-16/24.md +++ b/content/Biokemi/Gamla tentor/2021-12-16/24.md @@ -3,7 +3,8 @@ date: 2021-12-16 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - glykolysen + - glukoneogenes --- **I aerob katabolism kommer glukos att passera ett flertal steg innan det oxideras fullstĂ€ndigt. I vilken ordning kommer följande intermediĂ€rer: alfaketoglutarat, 3-fosfoglycerat, glyceraldehyd 3-fosfat, oxalacetat?** diff --git a/content/Biokemi/Gamla tentor/2022-01-29/22.md b/content/Biokemi/Gamla tentor/2022-01-29/22.md index 1c9edfa..3d39011 100644 --- a/content/Biokemi/Gamla tentor/2022-01-29/22.md +++ b/content/Biokemi/Gamla tentor/2022-01-29/22.md @@ -3,7 +3,7 @@ date: 2022-01-29 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - integrering-av-metabolismen --- Redogör för hur enzymet fruktos 2,6-bisfosfatas/fosfofruktokinas 2 regleras och spelar en central roll i glukosmetabolismen. Max 150 ord. (2p) diff --git a/content/Biokemi/Gamla tentor/2022-12-19/24.md b/content/Biokemi/Gamla tentor/2022-12-19/24.md index 31799a9..85795cf 100644 --- a/content/Biokemi/Gamla tentor/2022-12-19/24.md +++ b/content/Biokemi/Gamla tentor/2022-12-19/24.md @@ -3,7 +3,8 @@ date: 2022-12-19 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - glykolysen + - glukoneogenes --- Det pyruvat som bildas vid anaerob glykolys behöver metaboliseras vidare. diff --git a/content/Biokemi/Gamla tentor/2022-12-19/25.md b/content/Biokemi/Gamla tentor/2022-12-19/25.md index e2f79b2..d3086c6 100644 --- a/content/Biokemi/Gamla tentor/2022-12-19/25.md +++ b/content/Biokemi/Gamla tentor/2022-12-19/25.md @@ -3,7 +3,8 @@ date: 2022-12-19 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - glykolysen + - glukoneogenes --- **Vilka faktorer Ă€r viktiga för regleringen av fosfofruktokinas 2/fruktos 2,6-bisfosfatas?** diff --git a/content/Biokemi/Gamla tentor/2024-01-27/11.md b/content/Biokemi/Gamla tentor/2024-01-27/11.md index 2da31a0..05ae63c 100644 --- a/content/Biokemi/Gamla tentor/2024-01-27/11.md +++ b/content/Biokemi/Gamla tentor/2024-01-27/11.md @@ -3,7 +3,7 @@ date: 2024-01-27 tags: - biokemi - provfrĂ„ga - - dna-replikation + - kromatin --- **Uppgift** diff --git a/content/Biokemi/Gamla tentor/2024-01-27/9.md b/content/Biokemi/Gamla tentor/2024-01-27/9.md index 2546f59..ff29291 100644 --- a/content/Biokemi/Gamla tentor/2024-01-27/9.md +++ b/content/Biokemi/Gamla tentor/2024-01-27/9.md @@ -3,7 +3,7 @@ date: 2024-01-27 tags: - biokemi - provfrĂ„ga - - kromatin + - dna-replikation --- **Uppgift** diff --git a/content/Biokemi/Gamla tentor/2024-05-15/23.md b/content/Biokemi/Gamla tentor/2024-05-15/23.md index 439ee9a..0a9bc34 100644 --- a/content/Biokemi/Gamla tentor/2024-05-15/23.md +++ b/content/Biokemi/Gamla tentor/2024-05-15/23.md @@ -3,7 +3,7 @@ date: 2024-05-15 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - glykolysen --- **Uppgift** diff --git a/content/Biokemi/Gamla tentor/2024-08-01/1.md b/content/Biokemi/Gamla tentor/2024-08-01/1.md index 9e0bd57..cfc82ef 100644 --- a/content/Biokemi/Gamla tentor/2024-08-01/1.md +++ b/content/Biokemi/Gamla tentor/2024-08-01/1.md @@ -3,7 +3,7 @@ date: 2024-08-01 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - kolhydrater --- **Uppgift** diff --git a/content/Biokemi/Gamla tentor/2024-12-20/9.md b/content/Biokemi/Gamla tentor/2024-12-20/9.md index e4d7638..780031c 100644 --- a/content/Biokemi/Gamla tentor/2024-12-20/9.md +++ b/content/Biokemi/Gamla tentor/2024-12-20/9.md @@ -3,7 +3,7 @@ date: 2024-12-20 tags: - biokemi - provfrĂ„ga - - kromatin + - dna-replikation --- **Uppgift** diff --git a/content/Biokemi/Gamla tentor/2025-02-01/23.md b/content/Biokemi/Gamla tentor/2025-02-01/23.md index 2394af1..25af46c 100644 --- a/content/Biokemi/Gamla tentor/2025-02-01/23.md +++ b/content/Biokemi/Gamla tentor/2025-02-01/23.md @@ -3,7 +3,7 @@ date: 2025-02-01 tags: - biokemi - provfrĂ„ga - - glukosmetabolism + - glykolysen --- **Uppgift** Redogör för hur glukosmetabolismen regleras pĂ„ hormonell nivĂ„. (4p) Max 150 ord. diff --git a/content/Biokemi/Gamla tentor/tools/topic_mapping.tsv b/content/Biokemi/Gamla tentor/tools/topic_mapping.tsv new file mode 100644 index 0000000..2e6e8ab --- /dev/null +++ b/content/Biokemi/Gamla tentor/tools/topic_mapping.tsv @@ -0,0 +1,389 @@ +2021-12-16 01 Kolhydrater +2021-12-16 02 Lipider +2021-12-16 03 Aminosyror och proteiner +2021-12-16 04 Elektrontransportkedjan +2021-12-16 05 Nukleotider +2021-12-16 06 Hemoglobin och myoglobin +2021-12-16 07 Evolutionsperspektiv +2021-12-16 08 Att utforska proteiner +2021-12-16 09 DNA-replikation +2021-12-16 10 DNA-replikation +2021-12-16 11 Kromatin +2021-12-16 12 RNA-syntes +2021-12-16 13 Prokaryot genreglering +2021-12-16 14 Rekombinant DNA-teknik +2021-12-16 15 DNA-replikation +2021-12-16 16 Translation +2021-12-16 17 Termodynamik +2021-12-16 18 Nukleotider +2021-12-16 19 Enzymer +2021-12-16 20 Glykolys +2021-12-16 21 Integrering av metabolismen +2021-12-16 22 Integrering av metabolismen +2021-12-16 23 Elektrontransportkedjan +2021-12-16 24 Glykolys/Glukoneogenes +2021-12-16 25 Glykogenmetabolism +2021-12-16 26 Betaoxidation och fettsyrasyntes +2021-12-16 27 KolesterolomsĂ€ttning +2021-12-16 28 Aminosyrametabolism +2021-12-16 29 PentosfosfatvĂ€gen +2021-12-16 30 Nukleotidnedbrytning +2021-12-16 31 Hemmetabolism +2021-12-16 32 Cellmembranets struktur +2021-12-16 33 Membrantransport +2021-12-16 34 Plasmidlab +2021-12-16 35 Introduktionslab +2022-01-29 01 Kolhydrater +2022-01-29 02 Lipider +2022-01-29 03 Aminosyror och proteiner +2022-01-29 04 Hemoglobin och myoglobin +2022-01-29 05 Att utforska proteiner +2022-01-29 06 Lipider +2022-01-29 07 Nukleotider +2022-01-29 08 Kolhydrater +2022-01-29 09 DNA-replikation +2022-01-29 10 Rekombinant DNA-teknik +2022-01-29 11 RNA-syntes +2022-01-29 12 RNA-syntes +2022-01-29 13 Prokaryot genreglering +2022-01-29 14 Translation +2022-01-29 15 Evolutionsperspektiv +2022-01-29 16 Cellmembranets struktur +2022-01-29 17 Membrantransport +2022-01-29 18 Termodynamik +2022-01-29 19 Enzymer +2022-01-29 20 Enzymer +2022-01-29 21 Betaoxidation och fettsyrasyntes +2022-01-29 22 Integrering av metabolismen +2022-01-29 23 Integrering av metabolismen +2022-01-29 24 Glykolys/Glukoneogenes +2022-01-29 25 Glykolys/Glukoneogenes +2022-01-29 26 Glykogenmetabolism +2022-01-29 27 Citronsyracykeln +2022-01-29 28 Elektrontransportkedjan +2022-01-29 29 Aminosyrametabolism +2022-01-29 30 Nukleotidnedbrytning +2022-01-29 31 PentosfosfatvĂ€gen +2022-01-29 32 KolesterolomsĂ€ttning +2022-01-29 33 Plasmidlab +2022-01-29 34 Introduktionslab +2022-01-29 35 Introduktionslab +2022-05-16 01 Kolhydrater +2022-05-16 02 Lipider +2022-05-16 03 Aminosyror och proteiner +2022-05-16 04 Hemoglobin och myoglobin +2022-05-16 05 Att utforska proteiner +2022-05-16 06 Lipider +2022-05-16 07 Nukleotider +2022-05-16 08 Kolhydrater +2022-05-16 09 DNA-replikation +2022-05-16 10 Rekombinant DNA-teknik +2022-05-16 11 RNA-syntes +2022-05-16 12 RNA-syntes +2022-05-16 13 Prokaryot genreglering +2022-05-16 14 Translation +2022-05-16 15 Evolutionsperspektiv +2022-05-16 16 Cellmembranets struktur +2022-05-16 17 Membrantransport +2022-05-16 18 Termodynamik +2022-05-16 19 Enzymer +2022-05-16 20 Enzymer +2022-05-16 21 Betaoxidation och fettsyrasyntes +2022-05-16 22 Integrering av metabolismen +2022-05-16 23 Integrering av metabolismen +2022-05-16 24 Glykolys/Glukoneogenes +2022-05-16 25 Glykolys/Glukoneogenes +2022-05-16 26 Glykogenmetabolism +2022-05-16 27 Citronsyracykeln +2022-05-16 28 Elektrontransportkedjan +2022-05-16 29 Aminosyrametabolism +2022-05-16 30 Nukleotidnedbrytning +2022-05-16 31 PentosfosfatvĂ€gen +2022-05-16 32 KolesterolomsĂ€ttning +2022-05-16 33 Plasmidlab +2022-05-16 34 Introduktionslab +2022-05-16 35 Introduktionslab +2022-12-19 01 Kolhydrater +2022-12-19 02 Lipider +2022-12-19 03 Aminosyror och proteiner +2022-12-19 04 Hemoglobin och myoglobin +2022-12-19 05 Att utforska proteiner +2022-12-19 06 Lipider +2022-12-19 07 Nukleotider +2022-12-19 08 Kolhydrater +2022-12-19 09 DNA-replikation +2022-12-19 10 Rekombinant DNA-teknik +2022-12-19 11 RNA-syntes +2022-12-19 12 RNA-syntes +2022-12-19 13 RNA-syntes +2022-12-19 14 Translation +2022-12-19 15 Evolutionsperspektiv +2022-12-19 16 Cellmembranets struktur +2022-12-19 17 Membrantransport +2022-12-19 18 Termodynamik +2022-12-19 19 Enzymer +2022-12-19 20 Hemmetabolism +2022-12-19 21 Betaoxidation och fettsyrasyntes +2022-12-19 22 Enzymer +2022-12-19 23 Integrering av metabolismen +2022-12-19 24 Glykolys/Glukoneogenes +2022-12-19 25 Glykolys/Glukoneogenes +2022-12-19 26 Glykogenmetabolism +2022-12-19 27 Citronsyracykeln +2022-12-19 28 Elektrontransportkedjan +2022-12-19 29 KolesterolomsĂ€ttning +2022-12-19 30 Aminosyrametabolism +2022-12-19 31 Nukleotidnedbrytning +2022-12-19 32 PentosfosfatvĂ€gen +2022-12-19 33 KolesterolomsĂ€ttning +2022-12-19 34 Plasmidlab +2022-12-19 35 Introduktionslab +2023-05-15 01 Kolhydrater +2023-05-15 02 Lipider +2023-05-15 03 Aminosyror och proteiner +2023-05-15 04 Hemoglobin och myoglobin +2023-05-15 05 Att utforska proteiner +2023-05-15 06 Lipider +2023-05-15 07 Nukleotider +2023-05-15 08 Kolhydrater +2023-05-15 09 DNA-replikation +2023-05-15 10 DNA-replikation +2023-05-15 11 RNA-syntes +2023-05-15 12 RNA-syntes +2023-05-15 13 Prokaryot genreglering +2023-05-15 14 Translation +2023-05-15 15 Evolutionsperspektiv +2023-05-15 16 Cellmembranets struktur +2023-05-15 17 Membrantransport +2023-05-15 18 Termodynamik +2023-05-15 19 Enzymer +2023-05-15 20 Enzymer +2023-05-15 21 Introduktion till metabolismen +2023-05-15 22 Glykolys +2023-05-15 23 Glukoneogenes +2023-05-15 24 Glykogenmetabolism +2023-05-15 25 Citronsyracykeln +2023-05-15 26 Betaoxidation och fettsyrasyntes +2023-05-15 27 Elektrontransportkedjan +2023-05-15 28 Aminosyrametabolism +2023-05-15 29 Nukleotidnedbrytning +2023-05-15 30 PentosfosfatvĂ€gen +2023-05-15 31 KolesterolomsĂ€ttning +2023-05-15 32 Hemmetabolism +2023-05-15 33 Introduktionslab +2023-05-15 34 Introduktionslab +2023-05-15 35 Plasmidlab +2023-12-18 01 Kolhydrater +2023-12-18 02 Lipider +2023-12-18 03 Aminosyror och proteiner +2023-12-18 04 Hemoglobin och myoglobin +2023-12-18 05 Att utforska proteiner +2023-12-18 06 Lipider +2023-12-18 07 Nukleotider +2023-12-18 08 Kolhydrater +2023-12-18 09 DNA-replikation +2023-12-18 10 DNA-replikation +2023-12-18 11 RNA-syntes +2023-12-18 12 RNA-syntes +2023-12-18 13 Prokaryot genreglering +2023-12-18 14 Translation +2023-12-18 15 Evolutionsperspektiv +2023-12-18 16 Cellmembranets struktur +2023-12-18 17 Membrantransport +2023-12-18 18 Termodynamik +2023-12-18 19 Enzymer +2023-12-18 20 Enzymer +2023-12-18 21 Introduktion till metabolismen +2023-12-18 22 Glykolys +2023-12-18 23 Glukoneogenes +2023-12-18 24 Glykogenmetabolism +2023-12-18 25 Citronsyracykeln +2023-12-18 26 Betaoxidation och fettsyrasyntes +2023-12-18 27 Elektrontransportkedjan +2023-12-18 28 Aminosyrametabolism +2023-12-18 29 PentosfosfatvĂ€gen +2023-12-18 30 KolesterolomsĂ€ttning +2023-12-18 31 Aminosyrametabolism +2023-12-18 32 Nukleotidnedbrytning +2023-12-18 33 PentosfosfatvĂ€gen +2023-12-18 34 KolesterolomsĂ€ttning +2023-12-18 35 Introduktionslab +2023-12-18 36 Plasmidlab +2024-01-27 01 Kolhydrater +2024-01-27 02 Lipider +2024-01-27 03 Aminosyror och proteiner +2024-01-27 04 Hemoglobin och myoglobin +2024-01-27 05 Att utforska proteiner +2024-01-27 06 Lipider +2024-01-27 07 Nukleotider +2024-01-27 08 Kolhydrater +2024-01-27 09 DNA-replikation +2024-01-27 10 DNA-replikation +2024-01-27 11 Kromatin +2024-01-27 12 RNA-syntes +2024-01-27 13 Prokaryot genreglering +2024-01-27 14 Translation +2024-01-27 15 Evolutionsperspektiv +2024-01-27 16 Cellmembranets struktur +2024-01-27 17 Membrantransport +2024-01-27 18 Termodynamik +2024-01-27 19 Enzymer +2024-01-27 20 Enzymer +2024-01-27 21 Introduktion till metabolismen +2024-01-27 22 Glykolys +2024-01-27 23 Glykolys +2024-01-27 24 Integrering av metabolismen +2024-01-27 25 Glukoneogenes +2024-01-27 26 Glykogenmetabolism +2024-01-27 27 Citronsyracykeln +2024-01-27 28 Betaoxidation och fettsyrasyntes +2024-01-27 29 Elektrontransportkedjan +2024-01-27 30 Aminosyrametabolism +2024-01-27 31 PentosfosfatvĂ€gen +2024-01-27 32 KolesterolomsĂ€ttning +2024-01-27 33 Hemmetabolism +2024-01-27 34 Introduktionslab +2024-01-27 35 Introduktionslab +2024-01-27 36 Plasmidlab +2024-05-15 01 Kolhydrater +2024-05-15 02 Lipider +2024-05-15 03 Aminosyror och proteiner +2024-05-15 04 Hemoglobin och myoglobin +2024-05-15 05 Att utforska proteiner +2024-05-15 06 Lipider +2024-05-15 07 Nukleotider +2024-05-15 08 Kolhydrater +2024-05-15 09 DNA-replikation +2024-05-15 10 DNA-replikation +2024-05-15 11 Kromatin +2024-05-15 12 RNA-syntes +2024-05-15 13 Prokaryot genreglering +2024-05-15 14 Translation +2024-05-15 15 Evolutionsperspektiv +2024-05-15 16 Cellmembranets struktur +2024-05-15 17 Membrantransport +2024-05-15 18 Termodynamik +2024-05-15 19 Enzymer +2024-05-15 20 Enzymer +2024-05-15 21 Introduktion till metabolismen +2024-05-15 22 Glykolys +2024-05-15 23 Glykolys +2024-05-15 24 Glukoneogenes +2024-05-15 25 Glykogenmetabolism +2024-05-15 26 Citronsyracykeln +2024-05-15 27 Betaoxidation och fettsyrasyntes +2024-05-15 28 Elektrontransportkedjan +2024-05-15 29 Aminosyrametabolism +2024-05-15 30 Nukleotidnedbrytning +2024-05-15 31 PentosfosfatvĂ€gen +2024-05-15 32 KolesterolomsĂ€ttning +2024-05-15 33 Hemmetabolism +2024-05-15 34 Introduktionslab +2024-05-15 35 Plasmidlab +2024-08-01 01 Kolhydrater +2024-08-01 02 Lipider +2024-08-01 03 Aminosyror och proteiner +2024-08-01 04 Hemoglobin och myoglobin +2024-08-01 05 Att utforska proteiner +2024-08-01 06 Lipider +2024-08-01 07 Nukleotider +2024-08-01 08 Kolhydrater +2024-08-01 09 DNA-replikation +2024-08-01 10 DNA-replikation +2024-08-01 11 Kromatin +2024-08-01 12 RNA-syntes +2024-08-01 13 Prokaryot genreglering +2024-08-01 14 Translation +2024-08-01 15 Evolutionsperspektiv +2024-08-01 16 Cellmembranets struktur +2024-08-01 17 Membrantransport +2024-08-01 18 Termodynamik +2024-08-01 19 Enzymer +2024-08-01 20 Enzymer +2024-08-01 21 Introduktion till metabolismen +2024-08-01 22 Glykolys +2024-08-01 23 Glukoneogenes +2024-08-01 24 Glykogenmetabolism +2024-08-01 25 Citronsyracykeln +2024-08-01 26 Betaoxidation och fettsyrasyntes +2024-08-01 27 Glukoneogenes +2024-08-01 28 Elektrontransportkedjan +2024-08-01 29 Aminosyrametabolism +2024-08-01 30 Nukleotidnedbrytning +2024-08-01 31 PentosfosfatvĂ€gen +2024-08-01 32 KolesterolomsĂ€ttning +2024-08-01 33 Hemmetabolism +2024-08-01 34 Introduktionslab +2024-08-01 35 Plasmidlab +2024-12-20 01 Kolhydrater +2024-12-20 02 Lipider +2024-12-20 03 Aminosyror och proteiner +2024-12-20 04 Hemoglobin och myoglobin +2024-12-20 05 Att utforska proteiner +2024-12-20 06 Lipider +2024-12-20 07 Nukleotider +2024-12-20 08 Kolhydrater +2024-12-20 09 DNA-replikation +2024-12-20 10 RNA-syntes +2024-12-20 11 Prokaryot genreglering +2024-12-20 12 Translation +2024-12-20 13 Evolutionsperspektiv +2024-12-20 14 Cellmembranets struktur +2024-12-20 15 Membrantransport +2024-12-20 16 Termodynamik +2024-12-20 17 Enzymer +2024-12-20 18 Enzymer +2024-12-20 19 Introduktion till metabolismen +2024-12-20 20 Glykolys +2024-12-20 21 Glykolys +2024-12-20 22 Glukoneogenes +2024-12-20 23 Glykogenmetabolism +2024-12-20 24 Citronsyracykeln +2024-12-20 25 Betaoxidation och fettsyrasyntes +2024-12-20 26 Aminosyrametabolism +2024-12-20 27 Nukleotidnedbrytning +2024-12-20 28 PentosfosfatvĂ€gen +2024-12-20 29 KolesterolomsĂ€ttning +2024-12-20 30 Hemmetabolism +2024-12-20 31 Introduktionslab +2024-12-20 32 Introduktionslab +2024-12-20 33 Introduktionslab +2024-12-20 34 Introduktionslab +2024-12-20 35 Introduktionslab +2024-12-20 36 Plasmidlab +2025-02-01 01 Kolhydrater +2025-02-01 02 Lipider +2025-02-01 03 Aminosyror och proteiner +2025-02-01 04 Hemoglobin och myoglobin +2025-02-01 05 Att utforska proteiner +2025-02-01 06 Lipider +2025-02-01 07 Nukleotider +2025-02-01 08 Kolhydrater +2025-02-01 09 DNA-replikation +2025-02-01 10 Rekombinant DNA-teknik +2025-02-01 11 Kromatin +2025-02-01 12 RNA-syntes +2025-02-01 13 Prokaryot genreglering +2025-02-01 14 Translation +2025-02-01 15 Evolutionsperspektiv +2025-02-01 16 Cellmembranets struktur +2025-02-01 17 Membrantransport +2025-02-01 18 Termodynamik +2025-02-01 19 Enzymer +2025-02-01 20 Enzymer +2025-02-01 21 Introduktion till metabolismen +2025-02-01 22 Glykolys +2025-02-01 23 Glykolys +2025-02-01 24 Glukoneogenes +2025-02-01 25 Glykogenmetabolism +2025-02-01 26 Citronsyracykeln +2025-02-01 27 Betaoxidation och fettsyrasyntes +2025-02-01 28 Elektrontransportkedjan +2025-02-01 29 Aminosyrametabolism +2025-02-01 30 Nukleotidnedbrytning +2025-02-01 31 PentosfosfatvĂ€gen +2025-02-01 32 KolesterolomsĂ€ttning +2025-02-01 33 Hemmetabolism +2025-02-01 34 Plasmidlab +2025-02-01 35 Introduktionslab + diff --git a/content/Biokemi/Gamla tentor/tools/update_tags.py b/content/Biokemi/Gamla tentor/tools/update_tags.py new file mode 100644 index 0000000..0c92bc5 --- /dev/null +++ b/content/Biokemi/Gamla tentor/tools/update_tags.py @@ -0,0 +1,212 @@ +#!/usr/bin/env python3 +import re +import unicodedata +from pathlib import Path + +# Map human-readable topics to tag slugs used in the vault +TOPIC_TO_TAG = { + "Kolhydrater": ["kolhydrater"], + "Lipider": ["lipider"], + "Aminosyror och proteiner": ["frĂ„n-aminosyror-till-proteiner"], + "Hemoglobin och myoglobin": ["hemoglobin"], + "Att utforska proteiner": ["utforska-proteiner"], + "Nukleotider": ["nukleotider"], + "Kromatin": ["kromatin"], + "DNA-replikation": ["dna-replikation"], + "RNA-syntes": ["rna-syntes"], + "Rekombinant DNA-teknik": ["rekombinant-dna-teknik"], + "Prokaryot genreglering": ["kontroll-av-genuttryck-i-prokaryoter"], + "Translation": ["translation"], + "Evolutionsperspektiv": ["evolution"], + "Cellmembranets struktur": ["cellmembran"], + "Membrantransport": ["transport-över-cellmembran"], + "Termodynamik": ["termodynamik"], + "Enzymer": ["enzymer"], + "Introduktion till metabolismen": ["introduktion-till-metabolismen"], + "Integrering av metabolismen": ["integrering-av-metabolismen"], + "Glykolys": ["glykolysen"], + "Glukoneogenes": ["glukoneogenes"], + "Glykogenmetabolism": ["glykogen"], + "Citronsyracykeln": ["citronsyracykeln"], + "Betaoxidation och fettsyrasyntes": ["betaoxidation"], + "Elektrontransportkedjan": ["elektrontransportkedjan"], + "Aminosyrametabolism": ["aminosyrametabolism"], + "Nukleotidnedbrytning": ["nukleotidnedbrytning"], + "PentosfosfatvĂ€gen": ["pentosfosfatvĂ€gen"], + "KolesterolomsĂ€ttning": ["kolesterol"], + "Hemmetabolism": ["heme"], + "Plasmidlab": ["plasmid"], + "Introduktionslab": ["introduktionslaboration"], +} + +# Cases where a single slot covers two topics +COMPOSITE_TOPICS = { + "Glykolys/Glukoneogenes": TOPIC_TO_TAG["Glykolys"] + TOPIC_TO_TAG["Glukoneogenes"], +} + +# Build case-insensitive lookup tables +CANON_TOPICS = {k.lower(): v for k, v in TOPIC_TO_TAG.items()} +CANON_COMPOSITES = {k.lower(): v for k, v in COMPOSITE_TOPICS.items()} + +KNOWN_TOPIC_TAGS = set(tag for tags in TOPIC_TO_TAG.values() for tag in tags) +KNOWN_TOPIC_TAGS |= set(tag for tags in COMPOSITE_TOPICS.values() for tag in tags) +# Include historical/nearby variants we want to replace +KNOWN_TOPIC_TAGS |= { + "glukosmetabolism", # previous catch-all for glykolys/glukoneogenes + "hemmetabolism", # if present, normalize to 'heme' +} + +GAMLA_TENTOR = Path(__file__).resolve().parents[2] # .../Biokemi/Gamla tentor +MAPPING_FILE = Path(__file__).with_name("topic_mapping.tsv") + + +def load_mapping(): + mapping = {} # (date, number) -> list[tag] + with MAPPING_FILE.open("r", encoding="utf-8") as f: + for raw in f: + line = raw.strip() + if not line: + continue + parts = re.split(r"\s+", line, maxsplit=2) + if len(parts) != 3: + continue + date, num, topic = parts + topic = topic.strip() + # Normalize unicode and whitespace quirks + topic = unicodedata.normalize("NFKC", topic.replace("\u00A0", " ")) + topic_key = topic.lower() + key = (date, num.zfill(2)) + if topic_key in CANON_COMPOSITES: + tags = CANON_COMPOSITES[topic_key] + else: + tags = CANON_TOPICS.get(topic_key) + if not tags: + raise ValueError(f"Unknown topic '{topic}' in mapping for {date} {num}") + mapping[key] = tags + return mapping + + +FRONTMATTER_BOUNDARY = re.compile(r"^---\s*$") + + +def parse_frontmatter(lines): + if not lines or not FRONTMATTER_BOUNDARY.match(lines[0]): + return None, None, None # no frontmatter + # find second '---' + for i in range(1, len(lines)): + if FRONTMATTER_BOUNDARY.match(lines[i]): + return 0, i, lines[0 : i + 1] + return None, None, None + + +def extract_tags_block(fm_lines): + start, end = None, None + for i, line in enumerate(fm_lines): + if line.startswith("tags:"): + start = i + # read following indented list items + j = i + 1 + while j < len(fm_lines) and fm_lines[j].startswith(" - "): + j += 1 + end = j + break + return start, end + + +def read_existing_tags(fm_lines): + start, end = extract_tags_block(fm_lines) + if start is None: + return [] + tags = [] + for line in fm_lines[start + 1 : end]: + tag = line.strip()[2:].strip() + if tag: + tags.append(tag) + return tags + + +def write_tags_block(fm_lines, new_tags): + start, end = extract_tags_block(fm_lines) + block = ["tags:\n"] + [f" - {t}\n" for t in new_tags] + if start is None: + # insert after 'date:' if present, else after opening '---' + insert_at = 1 + for i, line in enumerate(fm_lines): + if line.startswith("date:"): + insert_at = i + 1 + break + fm_lines[insert_at:insert_at] = block + else: + fm_lines[start:end] = block + + +def update_file(path: Path, required_topic_tags): + with path.open("r", encoding="utf-8") as f: + lines = f.readlines() + + fm_start, fm_end, fm_block = parse_frontmatter(lines) + if fm_block is None: + # add minimal frontmatter if missing + fm_lines = ["---\n", "tags:\n"] + [f" - {t}\n" for t in ("biokemi", "provfrĂ„ga", *required_topic_tags)] + ["---\n"] + new_lines = fm_lines + lines + with path.open("w", encoding="utf-8") as f: + f.writelines(new_lines) + return True + + fm_lines = lines[fm_start + 1 : fm_end] # exclude the '---' lines + + existing = read_existing_tags(fm_lines) + # keep non-topic tags except make sure base tags are present + base = ["biokemi", "provfrĂ„ga"] + kept = [t for t in existing if t not in KNOWN_TOPIC_TAGS and t not in base] + # assemble final tag list + final = [] + for t in base: + if t not in final: + final.append(t) + for t in required_topic_tags: + if t not in final: + final.append(t) + for t in kept: + if t not in final: + final.append(t) + + before = existing + if set(before) == set(final): + return False # no change + + write_tags_block(fm_lines, final) + # rebuild lines + new_lines = ["---\n"] + fm_lines + ["---\n"] + lines[fm_end + 1 :] + with path.open("w", encoding="utf-8") as f: + f.writelines(new_lines) + return True + + +def main(): + mapping = load_mapping() + changed = 0 + missing = [] + for date_dir in sorted(p for p in GAMLA_TENTOR.iterdir() if p.is_dir() and p.name[0].isdigit()): + date = date_dir.name + for md in sorted(date_dir.glob("*.md")): + stem = md.stem + if not stem.isdigit(): + continue + num = stem.zfill(2) + key = (date, num) + tags = mapping.get(key) + if not tags: + missing.append(str(md)) + continue + if update_file(md, tags): + changed += 1 + print(f"Updated {changed} files") + if missing: + print("No mapping for:") + for m in missing: + print(" ", m) + + +if __name__ == "__main__": + main()