{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "9de5907f-18f5-4cb1-903e-26028ff1fa03", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "\n", "pd.set_option('display.max_rows', 100)\n", "pd.set_option('display.max_columns', None)\n", "\n", "import os\n", "from VAERSFileDownloader import updateVAERSFiles\n", "from datetime import datetime\n", "from InternationalVaersCovid19Provider import getInternationalVaersCovid19, get_international_VAERSVAX_VAERSSYMPTOMS_Covid19\n", "from BatchCodeTableHtmlUpdater import updateBatchCodeTableHtmlFile\n", "from BatchCodeTablePersister import createAndSaveBatchCodeTables\n", "from SymptomByBatchcodeTableFactory import SymptomByBatchcodeTableFactory\n", "from HistogramFactoryAndPersister import createAndSaveGlobalHistograms, createAndSaveHistogramsForCountries\n", "from BatchCodeTableFactory import BatchCodeTableFactory\n", "from BatchCodeTableHavingGuessedCountriesFactory import BatchCodeTableHavingGuessedCountriesFactory\n", "from CountriesByBatchcodeProvider import getCountryCountsByBatchcodeTable\n" ] }, { "cell_type": "code", "execution_count": null, "id": "d1e4fa9e", "metadata": {}, "outputs": [], "source": [ "print(datetime.now().strftime(\"%d.%m.%Y, %H:%M:%S Uhr\"))" ] }, { "cell_type": "code", "execution_count": null, "id": "194b7357", "metadata": {}, "outputs": [], "source": [ "years_from_start_of_COVID_vaccination_to_present = list(range(2020, datetime.now().year + 1))" ] }, { "cell_type": "code", "execution_count": null, "id": "a793dff0", "metadata": {}, "outputs": [], "source": [ "updateVAERSFiles(\n", " years = years_from_start_of_COVID_vaccination_to_present,\n", " workingDirectory = os.getcwd())" ] }, { "cell_type": "code", "execution_count": null, "id": "58333a19", "metadata": {}, "outputs": [], "source": [ "international_VAERSVAX_Covid19, international_VAERSSYMPTOMS = get_international_VAERSVAX_VAERSSYMPTOMS_Covid19(years = years_from_start_of_COVID_vaccination_to_present)" ] }, { "cell_type": "code", "execution_count": null, "id": "f10b558f", "metadata": {}, "outputs": [], "source": [ "international_VAERSVAX_Covid19" ] }, { "cell_type": "code", "execution_count": null, "id": "3e0908fe", "metadata": {}, "outputs": [], "source": [ "international_VAERSSYMPTOMS" ] }, { "cell_type": "code", "execution_count": null, "id": "204af94d", "metadata": {}, "outputs": [], "source": [ "symptomByBatchcodeTable = SymptomByBatchcodeTableFactory.createSymptomByBatchcodeTable(international_VAERSVAX_Covid19, international_VAERSSYMPTOMS)\n", "symptomByBatchcodeTable" ] }, { "cell_type": "code", "execution_count": null, "id": "23731536", "metadata": {}, "outputs": [], "source": [ "createAndSaveGlobalHistograms(symptomByBatchcodeTable)" ] }, { "cell_type": "code", "execution_count": null, "id": "f8e42955", "metadata": {}, "outputs": [], "source": [ "createAndSaveHistogramsForCountries(symptomByBatchcodeTable)" ] }, { "cell_type": "code", "execution_count": null, "id": "781ac80e", "metadata": {}, "outputs": [], "source": [ "internationalVaersCovid19 = getInternationalVaersCovid19(dataDir = 'VAERS', years = years_from_start_of_COVID_vaccination_to_present)\n", "internationalVaersCovid19" ] }, { "cell_type": "code", "execution_count": null, "id": "8d6507ca", "metadata": {}, "outputs": [], "source": [ "updateBatchCodeTableHtmlFile(internationalVaersCovid19, batchCodeTableHtmlFile=\"../docs/batchCodeTable.html\")" ] }, { "cell_type": "code", "execution_count": null, "id": "0915aa5a", "metadata": {}, "outputs": [], "source": [ "createAndSaveBatchCodeTables(\n", " internationalVaersCovid19,\n", " minADRsForLethality = 100,\n", " batchCodeTableFactory = BatchCodeTableHavingGuessedCountriesFactory(BatchCodeTableFactory(internationalVaersCovid19)),\n", " onCountryProcessed = display)" ] }, { "cell_type": "code", "execution_count": null, "id": "d6c2b650", "metadata": {}, "outputs": [], "source": [ "countryCountsByBatchcode = getCountryCountsByBatchcodeTable()\n", "countryCountsByBatchcode" ] }, { "cell_type": "code", "execution_count": null, "id": "dd9fb2b0", "metadata": {}, "outputs": [], "source": [ "countryCountsByBatchcode.to_excel('tmp/countryCountsByBatchcode.xlsx')" ] }, { "cell_type": "code", "execution_count": null, "id": "49ecce85", "metadata": {}, "outputs": [], "source": [ "from CountryCountsByBatchcodeTablesMerger import CountryCountsByBatchcodeTablesMerger\n", "\n", "mergedCountryCountsByClickedBatchcodeTables = CountryCountsByBatchcodeTablesMerger.getCountryCountsByClickedBatchcodeTable()\n", "mergedCountryCountsByClickedBatchcodeTables" ] } ], "metadata": { "kernelspec": { "display_name": "howbadismybatch-venv-kernel", "language": "python", "name": "howbadismybatch-venv-kernel" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.15" }, "vscode": { "interpreter": { "hash": "1bce2b9b19ce5f16d695ff75ac05095b3e564c169ff454b58b87cb796c0695b8" } } }, "nbformat": 4, "nbformat_minor": 5 }