Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use MoMI-G on my own data #55

Open
LittleHannah opened this issue Dec 29, 2020 · 1 comment
Open

Unable to use MoMI-G on my own data #55

LittleHannah opened this issue Dec 29, 2020 · 1 comment

Comments

@LittleHannah
Copy link

LittleHannah commented Dec 29, 2020

Hi! Excellent work on MoMI-G.
I have a problem using MoMI-G. I am trying to use MoMI-G on my own data, and I am following the instructions in the manual, however, I have not been able to visualize my own data, the server keeps on showing the CHM1 demo. I would really appreciate it if you can help me with my problem, thx!

  • I have created the static folder on the directory MoMI-G clones, it looks like this
    | -- config.yaml
    | -- GRCh38.json
    | -- HGDP01096.aug.gam
    | -- HGDP01096.aug.vcf
    | -- HGDP01096.aug.xg
  • my config.yaml looks like this
  1 bin:
  2   vg: "~/.pggtools/bin/vg"
  3   vg_tmp: "vg"
  4   graphviz: "dot"
  5   fa22bit: "faToTwobit"
  6   bigbed: "bedToBigBed"
  7 reference:
  8   chroms: "GRCh38.json"
  9   data:
 10     - name: "hg19"
 11       features:
 12         - name: ""
 13           url: ""
 14           chr_prefix: ""
 15     - name: "hg38"
 16       features:
 17         - name: ""
 18           url: ""
 19           chr_prefix: ""
 20 data:
 21   - name: ""
 22     desc: ""
 23     chr_prefix: ""
 24     ref_id: ""
 25     source:
 26       xg: "HGDP01096.aug.xg"
 27       twobit: ""
 28       gamindex: "HGDP01096.aug.gam"
 29     features:
 30       - name: ''
 31         url: ''
 32         chr_prefix: ''
 33     static_files:
 34       - name: ''
 35         url: 'HGDP01096.aug.vcf'
 36         viz: ''
  • My Docker.backend file looks like this
  1 FROM quay.io/vgteam/vg:v1.17.0 as build
  2 
  3 # backend container
  4 FROM momigteam/momig-backend
  5 
  6 COPY --from=build /vg/bin/vg /vg/bin/
  7 COPY static/HGDP01096.aug.xg /vg/static/
  8 COPY static/config.yaml /vg/static/
  9 
 10 EXPOSE 8081
 11 
 12 CMD ["./graph-genome-browser-backend", "--config=static/config.yaml", "--interval=1500000", "--http=0.0.0.0:8081", "--api=/api/v2/"]
@6br
Copy link
Contributor

6br commented Dec 30, 2020

Thank you for trying MoMI-G. Instruction is here: https://momi-g.readthedocs.io/en/latest/quick_start.html#backend

Is it possible to change the backend URL from the MoMI-G public server to localhost?

$ sed -e "s/\"target/\"target_/g"  -e "s/\_target/target/g" -i.bak package.json
$ docker run --init -p 8081:8081 momigteam/momig-backend # Run it on another shell. It takes a little long time -- please wait.
$ yarn start

Also, is it possible to rebuild MoMI-G backend again after you modified Dockerfile.backend?

$ docker build -t momig-custom-backend -f Dockerfile.backend .
$ docker run --init -p 8081:8081 momig-custom-backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants