Skip to content

Embedding question #341

Open
Open

Description

@chenchen-eng

Hello, teacher. I would like to embed Eg-react into my own webpage using your example code. How can I change the genome information and annotation details? It seems that your documentation doesn't provide instructions on this. Thank you, teacher

Activity

  1. lidaof commented on Nov 29, 2023

    @lidaof
    Owner

    Hi @chenchen-eng, thanks for using the Browser! In the documentation, https://eg.readthedocs.io/en/latest/installation.html#embedding, please notice the line contains genomeName: "mm10",, this is where you can change the genome, in the following tracks array you can change annotation and other tracks. Hope this helps.

  2. chenchen-eng commented on Nov 29, 2023

    @chenchen-eng
    Author

    Thank you for your answer, teacher. How can I use my own genome? Changing the name seems to only allow the use of existing genome files

  3. chenchen-eng commented on Nov 29, 2023

    @chenchen-eng
    Author

    and install enter error:npm ERR! cb() never called!

    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR! https://npm.community

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2023-11-29T14_05_52_098Z-debug.log
    i should how to do?thanks

  4. lidaof commented on Nov 29, 2023

    @lidaof
    Owner

    Correct, currently the example code only supports the genomes we loaded. In your case, you need to add your own genome following https://eg.readthedocs.io/en/latest/add.html

  5. lidaof commented on Nov 29, 2023

    @lidaof
    Owner

    and install enter error:npm ERR! cb() never called!

    npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://npm.community

    npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-11-29T14_05_52_098Z-debug.log i should how to do?thanks

    please try using node version 18 or 16, we are testing on node version 20 and above.

  6. chenchen-eng commented on Nov 30, 2023

    @chenchen-eng
    Author

    thanks teacher ,but met a error
    npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
    npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
    npm ERR! code ENOMEM
    npm ERR! syscall spawn
    npm ERR! errno -12
    npm ERR! spawn ENOMEM
    npm ERR! code ENOMEM
    npm ERR! syscall spawn
    npm ERR! errno -12
    npm ERR! spawn ENOMEM

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2023-11-30T12_13_58_478Z-debug-0.log
    we should how to solve it Thanks

  7. chenchen-eng commented on Nov 30, 2023

    @chenchen-eng
    Author

    use docker solve the question. but encount other question:
    ? Something is already running on port 3000. Probably:
    /usr/local/lighthouse/softwares/nodejs/node/bin/node /usr/local/lighthouse/softwares/nodejs/app/app.js (pid 1928)
    in /

    Would you like to run the app on another port instead? › (Y/n)
    thanks teacher

  8. lidaof commented on Nov 30, 2023

    @lidaof
    Owner

    Hi @chenchen-eng you can type Y here to allow the App run on another port

  9. chenchen-eng commented on Dec 6, 2023

    @chenchen-eng
    Author

    thanks teacher,please Are there any requirements for server configuration? Can my online server run with 2G of memory?

  10. chenchen-eng commented on Dec 6, 2023

    @chenchen-eng
    Author

    it also encount a error :

    epgg@54.0.4 start
    react-app-rewired start

    Failed to compile.

    Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

    • configuration.module.rules[2] has an unknown property 'query'. These properties are valid:
      object { assert?, compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffects?, test?, type?, use? }
      -> A rule description with conditions and effects for modules.
  11. lidaof commented on Dec 6, 2023

    @lidaof
    Owner

    thanks teacher,please Are there any requirements for server configuration? Can my online server run with 2G of memory?

    Hi @chenchen-eng if you need run npm start or npm run build, it's recommended to have at least 8G RAM
    for hosting the built scripts with Apache, then any server with >512M RAM should work

  12. lidaof commented on Dec 6, 2023

    @lidaof
    Owner

    Hi @chenchen-eng

    try using the zip file below:
    https://wangftp.wustl.edu/~dli/test/frontend.zip
    if you are using node v18, type export NODE_OPTIONS=--openssl-legacy-provider before npm start
    no need to run npm install with this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions