Giter VIP home page Giter VIP logo

Comments (2)

stephenshank avatar stephenshank commented on July 18, 2024

Dear @MrTomRod,

Thanks for your interest in alignment.js!

Can you clarify exactly what you mean by standalone library? Since you are seeking to avoid node/yarn, and also from looking at the link you provided, I assume you are developing a more classical web application. As such, this will require bundled JavaScript and CSS files that can be accessed via script and link tags, respectively.

If so, this is actually something I was working on earlier this week and am near finished. I'd be happy to bump it up in priority and organize a release with some documentation of the features that you'll need.

It also seems like you'll want an amino-acid alignment with a phylogenetic tree. All these features are there, they just need to be put together.

Please let me know your exact use case, I am happy to chat further and believe this project could suit your needs.

Best,
Stephen

from alignment.js.

MrTomRod avatar MrTomRod commented on July 18, 2024

That sounds fantastic!

No need to hurry, I don't have too much time at the moment. Of course, if I end up using your library, I will cite your work.

My requirements

  • visualize nucleic acid and protein alignments (e.g. multi-fasta format)
  • visualize phylogenetic tree (e.g. Newick format)
  • ability to scroll in the MSA horizontally without specialized mouse (add scroll bar to canvas?)
  • ideally: control the looks (width of the plot, font size, size of the nucleic acid/protein boxes)
  • fix small bug, see below (Top: Chrome, bottom: Firefox)

image

What I meant with standalone library

CSS files that can be accessed via script and link tags, respectively

I think you have the right idea. My software is based on Django. This is, more or less, how I use my current library:

<link rel="stylesheet" type="text/css" href="/alignment-js.css">
<script src="/alignment-js.js"></script>
<script>
const targetDiv = document.getElementById ('target')
alignmentJs({
    data: {
      alignment:  /* some alignment file, e.g. in aligned FASTA format */
        ">A\nAAAGAG..AATCC...",
      newick: "(A:0.1,B:0.2,(C:0.3,D:0.4):0.5);"
      }
    },
    config: {
      parent: targetDiv
    }
})
</script>

Something similar would be great. I don't think I can use your library as a node component via Django. (?)

Thanks a lot for your time,
MrTomRod

from alignment.js.

Related Issues (16)

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.