Code Monkey home page Code Monkey logo

Comments (6)

yochannah avatar yochannah commented on June 19, 2024 1

@sehgalvibhor That sounds like a good approach!

@rachellyne regarding @sehgalvibhor's question above, is a formula along the lines of (some alphanumeric chars):(numeric characters)(.. or -)(numeric characters) appropriate?

p.s. let me know if I wasn't clear enough there.

from bluegenes.

sehgalvibhor avatar sehgalvibhor commented on June 19, 2024

@yochannah : My thoughts on this is to implement a regex for the 'region-input' to check the string format before dispatching a function to the server otherwise raise a validation alert. Thoughts?

Also, I am not sure about the regex for the input field. Can you help me with this?

from bluegenes.

rachellyne avatar rachellyne commented on June 19, 2024

That will catch any inappropriately formatted regions but will not catch regions that do not return results because, for example, they are out of range for the sequence - but maybe that's ok (These should become obvious from the results.) Also it won't catch anything with a wrong chromosome number? eg Drosophila only has chromosomes 1-4, so 8:xxxx..xxx would still go though as correct?

from bluegenes.

yochannah avatar yochannah commented on June 19, 2024

Thanks @rachellyne! out of range / chromosome number checks probably need to be made on the server I think. @julie-sullivan does that sound right? Or do we have the data for valid ranges available via web service somehow?

from bluegenes.

yochannah avatar yochannah commented on June 19, 2024

@sehgalvibhor While we're thinking about that second question, I think it's safe to proceed with the formula (some alphanumeric chars):(numeric characters)(.. or -)(numeric characters) - is that enough for you to go on?

Here's an example of a regex being used in bluegenes:

(let [matcher (re-matcher (re-pattern "[^(\\s|,;)\"']+|\"([^\"]*)\"|'([^']*)'") s)]
- or search for other re-pattern uses.

from bluegenes.

sehgalvibhor avatar sehgalvibhor commented on June 19, 2024

@yochannah : Yes I'll try out on the formula you mentioned. Just to confirm these can be multi-line and tab-spaced right?

Also, is it better if we disable the button dynamically like currently being done for empty search strings etc or wait for the user to press the button?

from bluegenes.

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.