GithubHelp home page GithubHelp logo

Error in seq_len about amr HOT 6 CLOSED

msberends avatar msberends commented on May 27, 2024
Error in seq_len

from amr.

Comments (6)

msberends avatar msberends commented on May 27, 2024

Hi! Yes, sure. It seems to be a bug, I’ll look into it!

from amr.

susheelbhanu avatar susheelbhanu commented on May 27, 2024

Thank you

from amr.

msberends avatar msberends commented on May 27, 2024

It was indeed a bug, I'll push a fix to this repo today.

But even fixed, the text used as input might not be very suitable for retrieving antibiotic codes - in what you posted there are almost no antibiotics to be found if I manually scan through them with my own knowledge about antibiotic/antifungal drugs.

This also leads to many false-positives. For example, the problematic one that led to the error was nr 17:

[17] "Euthyrox 150µg [150µg Levothyroxin natrium, (145,88µg Levothyroxin)] 1x1 => Hypothyreose seit 1980"

Without the bug, this would be the result:

ab_from_text(x[17], type = "drug", thorough_search = TRUE)
#> [[1]]
#> Class <ab>
#> [1] INH AKF AKF AKF CPO

So that's a list of isoniazid, 3 times amikacin/fosfomycin, and cefpirome. Not very helpful I guess... The ab_from_text() function can only retrieve antibiotic/antifungal drugs, not other drugs.

Does this clarify things a bit?

from amr.

susheelbhanu avatar susheelbhanu commented on May 27, 2024

Dear @msberends,

Thank you very much for pushing this fix.

And indeed what you say makes sense. I have a list of 300 unique drugs, and was using the package to reduce my workload of manually validating which ones are antibiotics and which are not 😉 . It was the first step of my screening process, or else I'd have to look through entire list manually and confirm via a Google search.

Any (false)-positives that we get from this analyses, we will manually verify to make sure they are indeed antibiotics/antifungals, so this is already helpful.

I am assuming though, that if it doesn't find any matches, it'll simply report a NA - is that correct?

And thanks again for fixing it so quickly.

from amr.

msberends avatar msberends commented on May 27, 2024

That’s a fine workflow!

Indeed, when no results are found it will return NA.

from amr.

susheelbhanu avatar susheelbhanu commented on May 27, 2024

Awesome, thank you. It is a nice workflow indeed 🙂.

from amr.

Related Issues (20)

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.