Giter Site home page Giter Site logo

benjamin-lee / dnavisualization.org Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 30.43 MB

๐Ÿงฌ๐Ÿ“ˆ Turn DNA sequences into interactive visualizations

Home Page: https://dnavisualization.org

License: Apache License 2.0

JavaScript 21.53% Vue 66.35% TypeScript 12.13%

dnavisualization.org's People

Contributors

benjamin-lee avatar caleboh01 avatar dependabot[bot] avatar github-actions[bot] avatar meha-goyal avatar mick-t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dnavisualization.org's Issues

Wrap the example load button in a b-col

The element inside of a b-row needs to be a b-col. So this:

<b-row>
      <b-dropdown
        split
        split-href="#foo/bar"
        text="Load Example"
        class="m-2"
        @click="transformExampleSequences"
      >
        <b-dropdown-item href="#">Sars-Cov2</b-dropdown-item>
        <b-dropdown-item href="#">HDV</b-dropdown-item>
        <b-dropdown-item href="#">HCV</b-dropdown-item>
      </b-dropdown>
      <b-col class="pl-0">
        <b-form-file
          v-model="uploadedFile"
          class="w-50"
          placeholder="Choose a file or drop it here..."
          drop-placeholder="Drop file here..."
          accept=".fasta, .fa, .fna, .fas, .frn, .ffn, .txt"
        ></b-form-file>
      </b-col>
    </b-row>

should be

<b-row>
<b-col cols=2>
      <b-dropdown
        split
        split-href="#foo/bar"
        text="Load Example"
        class="m-2"
        @click="transformExampleSequences"
      >
        <b-dropdown-item href="#">Sars-Cov2</b-dropdown-item>
        <b-dropdown-item href="#">HDV</b-dropdown-item>
        <b-dropdown-item href="#">HCV</b-dropdown-item>
      </b-dropdown>
</b-col>
      <b-col class="pl-0">
        <b-form-file
          v-model="uploadedFile"
          class="w-50"
          placeholder="Choose a file or drop it here..."
          drop-placeholder="Drop file here..."
          accept=".fasta, .fa, .fna, .fas, .frn, .ffn, .txt"
        ></b-form-file>
      </b-col>
    </b-row>

The cols=2 tell us that we only want the button to be two columns wide.

Uncaught TypeError: window.parse_fasta is not a function

Loading a fasta file doesn't work on the latest code from the main branch. I see these errors in Chrome developers view:

home.js:111 Uncaught TypeError: window.parse_fasta is not a function
    at Object.load (home.js:111)
    at FileReader.reader.(:5000/anonymous function) (http://127.0.0.1:5000/static/js/filereader.js:347:31)

Support for multiple visualization methods

  • Add button to control visualization method (default to Squiggle)
  • Send method to back end along with seq
  • Store transformed sequences as xxxxxxx.METHOD.parquet.sz
  • When querying, send the viz method
  • Cache the different viz methods in the seqs variable (wontfix)
  • Update the axes

Load sample data button

We can use HBB as our demo for now, since that seems to be the standard demo of DNA sequence visualization

Pasting FASTA with non supported bases does not yield error message

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Deduplicate file uploads

Let's say a user uploads a file and then uploads it again, don't plot it twice if:

  1. It has the same filename
  2. The hash of the file is the same

Right now, it plots it twice as two identical lines:

image

Tooltips have broken html

It shows like this: Bases plotted along a unit vector. Captures GC skew. <var>x</var>-coordinates do not map to base position. No support for non-ATGC bases.

for these, just remove the var tags

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.