Giter Club home page Giter Club logo

vaxscience's People

Watchers

 avatar

Forkers

nsmgr8

vaxscience's Issues

Aggregate Main Topics

How to convert

Purpura, Thrombocytopenic, Idiopathic/*chemically induced
Purpura, Thrombocytopenic, Idiopathic/*complications/pathology/therapy
Purpura, Thrombocytopenic, Idiopathic/blood/*chemically induced/immunology/therapy
Purpura, Thrombocytopenic, Idiopathic/blood/*etiology
Purpura, Thrombocytopenic, Idiopathic/blood/*etiology/immunology
Purpura, Thrombocytopenic, Idiopathic/blood/*etiology/therapy

to just "Purpura, Thrombocytopenic, Idiopathic"

Somewhere in here:

            row['Main_Topic'] = [item for item in mesh if '*' in item]

Just as in #1, some asterisked items didn't move over to the Main_Topic field

Parallel to #1

Run transform.py on articles.json as follows

% brew install jq
% python3 transform.py | jq --monochrome-output . >articles2.transformed.json

Note that in this sample record, one of the Demographic entries ( "*Peripheral Nervous System Diseases") didn't move over from the MeSH field to the Main_Topic field. In some records they all properly move over, but sometimes they don't. There's seemingly no consistently about which items are missed.

      "MeSH": [
        "*COVID-19/prevention & control",
        "COVID-19 Vaccines/adverse effects",
        "*Peripheral Nervous System Diseases",
        "SARS-CoV-2"
      ],
      "Main_Topic": [
        "*COVID-19"
      ],

transform.py does not consistently create Demographics field correctly

Run transform.py on articles.json as follows

% brew install jq
% python3 transform.py | jq --monochrome-output . >articles2.transformed.json

Note that in this sample record ("PMID": 34668274), two of the Demographic entries ("Aged" and "Middle Aged") didn't move over from the MeSH field to the Demographics field. In some records they all properly move over, but sometimes they don't. There's seemingly no consistently about which items are missed.

      "MeSH": [
        "2019-nCoV Vaccine mRNA-1273",
        "Aged",
        "BNT162 Vaccine",
        "*COVID-19",
        "COVID-19 Vaccines",
        "*Guillain-Barre Syndrome",
        "Middle Aged",
        "*Peripheral Nervous System Diseases",
        "SARS-CoV-2",
        "Vaccination/adverse effects"
      ],
      "Demographics": [
        "Adult",
        "Aged, 80 and over",
        "Female",
        "Humans",
        "Young Adult"
      ]

The goal is that each item in MeSH that appears in demographic_list should move to Demographics (be removed from MeSH and appended to Demographics).

Once we figure this out, I'll be exploring more ways to break up the MeSH terms into more manageable fields.

Plugin to remove unwanted Suggested Facets

By default, Datasette is offering these suggested facets in the following order.

Main_Topic, Title, Link(s), Demographics, Abstract, MeSH, Author(s), Affiliation, PMID, PMCID, PubDate, article_title, Section, Subsection, PubType, PubDate (date), Main_Topic (array), Demographics (array), MeSH (array), Author(s) (array), Affiliation (array)

Replace this with
Main_Topic*, Demographics*, MeSH*, Author(s)*, Section, Subsection, PubType

  • Asterisked fields (the first four facets) should be displayed in the Array version. Remove the asterisks before displaying.

there may be some model code (though by a relative newbie coder) here:
https://github.com/mroswell/list-N/tree/main/plugins
or
https://datasette.io/plugins

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.