Coder Social home page Coder Social logo

momi-g / momi-g Goto Github PK

View Code? Open in Web Editor NEW
85.0 7.0 6.0 6.79 MB

Modular Multi-scale Integrated Genome Graph Browser

Home Page: http://demo.momig.tokyo/

License: MIT License

JavaScript 30.62% HTML 0.60% Shell 3.55% Ruby 5.45% CSS 18.84% TypeScript 40.65% Dockerfile 0.18% Roff 0.12%
genome-graph genome-browser structural-variants graph-genome-browser variation-graph

momi-g's Introduction

MoMI-G

Codeship Status for 6br/graph-genome-browser Gitter chat Documentation Status

Modular Multi-scale Integrated Genome Graph Browser

A genome graph browser for visualization of structural variants (SVs) as a variation graph:

demo_image

Long-read sequencing allows for more sensitive and accurate discovery of SVs, which requires to filter and validate thousands of candidates. However, no existing genome browser meets the demand for cancer genomics. Because most visualization tools show an only range of a linear sequence, making them unsuitable for large (over megabase) or nested SVs. Also, no existing genome browsers allow users to simultaneously inspect the read alignments that span the reference allele and an alternative allele caused by a heterozygous SV. Here we present MoMI-G, a graph genome browser to visualize SVs on the variation graph, that provides a graph-based view that displays a genome with branches and alignments on them. Users can filter, visualize with genomic annotations, and inspect SVs with read alignments.

Demo

Youtube Movies: Short Demo, Short Demo 2, Long Demo

Demo Page: CHM1 Demo

Citation

Yokoyama, T.T., Sakamoto, Y., Seki, M., Suzuki, Y., Kasahara, M. MoMI-G: modular multi-scale integrated genome graph browser. BMC Bioinformatics 20, 548 (2019) doi:10.1186/s12859-019-3145-2.

Installation

Manual: here.

Dependencies

  • Node.js
  • npm or yarn
    • Docker (optional)

Summary of set up

$ git clone https://github.com/MoMI-G/MoMI-G
$ cd MoMI-G
$ yarn
$ yarn start

And access to http://localhost:3000/. The demo shows CHM1, a human hydatidiform mole cell line dataset from backend server of MoMI-G that MoMI-G developer serves.

Run on your workstation

If you want to run the backend server on your laptop, modify package.json and run docker container which includes backend server and CHM1 chr21 with simulated reads dataset.

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

You can start docker container by docker-compose up instead of docker run. The source code of the backend server is here.

Features

MoMI-G

  • allows visualization of (possibly distant) multiple intervals.
  • displays SVs that span multiple intervals.
  • displays SVs at varying scales, i.e., chromosome, gene, and nucleotide scales.
  • allows users to manually inspect hundreds of SVs.

Usage

Select structural variants

overall

Manual screening for SV candidates is still important because of high false positive rate of SV calling, but it is time-consuming so that SVs should be filtered by certain criteria for manual screening. There are two view components to select SVs from candidates. The first view components is Circos, which aligns chromosomes as a circular layout. Thick arcs are chromosomes, and a line connecting to thick arcs indicates a SV. Because Circos enables us to choose and rotate chromosomes, we can focus on the subset of chromosomes. Circos is a suitable for visualizing the distribution of SVs and inter-chromosomal variations as lines. Second, Feature Table shows chromosome names, coordinates, and strand, enabling us to select SVs. We can sort and filter Feature Table by SV type, coordinates, or gene name. We can select a SV from both components.

Interval Card Deck

workspace

After you select SVs using Feature Table or Circos Plot, the listed variants are stacked on Interval Card Deck at the bottom of the window. In Interval Card Deck, intervals are displayed as cards, and the interval of the top (leftmost) card of the deck is shown on SequenceTubeMap. Each card can be dragged, and the order of cards can be changed. If one double-clicks on a card, the card moves to the top of the deck. Also, a card can be locked to avoid unintended modification or disposal, and the gene name can be input with autocompletion for specifying the interval of a card.

Visualize as genome graphs

tube_map

We integrate SequenceTubeMap into MoMI-G with modifying the original implementation so that it can visualize a variation graph converted from SVs for showing the difference between a reference genome and a personal genome. Because there are many types of paths in variation graph, we categorized them for assigning different design as follows:

  • Chromosome Path (thick, grayscale): A chromosome path is a chromosome in a reference genome; walking on the path provides us a full nucleotide sequence.
  • Variant Path (colored): A variant path with a variation name represents a personal genome.
  • Gene Path (thin, colored): A gene path is for gene annotation. Exons are shown as a path with a darker color, and introns are shown as that with a lighter color.
  • Annotation Path (thin, grayscale): An annotation path is for user-definable bigBed annotations such as repeats. If you have a GFF3 or BED file, you can easily convert into bigBed file.
  • Read Alignment (thin, grayscale): Read alignments aligned on the graph or lifted over from the original alignments to a reference genome.

A sequence graph as a bi-directed graph composed of a set of multiple DNA sequences as nodes and the corresponding end-to-end connections as edges has the ability to describe duplications, indels and inversions as loops or branching and merging against a reference genome.

Annotations

annotation

Gene annotations retrieved from Ensembl or names of the region described in bigbed format are listed on Annotation Table.

Dataset

The demo includes the genome of the CHM1 dataset. CHM1 is a human hydatidiform mole cell line dataset so that we can assume all SVs are homozygous. They identified insertions, deletions, and inversions against hg19, so we converted from the list of SVs into a variation graph with our custom scripts. Alternatively, you can employ your own dataset with the following procedure.

Adapt your own dataset

If you want to run MoMI-G with your own dataset, use our custom scripts scripts/vcf2xg.sh to generate pcf and xg dataset. It requires VG, ruby, bash, and samtools.

Software Dataset Supported SV type
Sniffles for PacBio/Nanopore INV, DEL, TRA, DUP, (INS)
10X LongRanger for 10X INV, DEL, TRA, DUP
SURVIVOR for merging SV calls INV, DEL, TRA, DUP
$ bash vcf2xg.sh test.vcf test_output /bin/vg hg[19|38]

You can use singularity instead.

$ singularity -s run docker://momigteam/momig-tools:latest test.vcf test_output vg hg38

After that, these files are required to be mounted on "static/" folder.

  • static/
    • config.yaml: a configuration file
    • *.xg: an index of variation graph, generated by vg
    • *.pcf: pair of cooridnate format: required to display variants on Feature Table or Circos Plot.
    • *.gam(optional): read alignments on the graph
    • *.gam.index(optional): index of gam
$ docker run --init -p 8081:8081 -v `pwd`/static:/vg/static momigteam/momig-backend
$ yarn start

Change log

  • 2017.08.09 Ver 0.1 (alpha)
  • 2017.09.26 Ver 0.2 (deploy CHM1 graph)
  • 2017.12.12 Ver 0.3 (beta)
  • 2017.12.19 Ver 0.4 (add gene annotations)
  • 2018.01.02 Ver 0.5 (add English descriptions)
  • 2018.01.11 Ver 0.6 (fix design)
  • 2018.01.28 Ver 1.0RC
  • 2018.02.10 Ver 1.0
  • 2019.01.06 Ver 1.0 Rev.1

Acknowledgements

This work was supported in part by Information-technology Promotion Agency, Japan (IPA), Exploratory IT Human Resources Project (The MITOU Program) in the fiscal year 2017 and in part by JSPS KAKENHI (Grant Number, 16H06279).

References

  • Chaisson, M. J. P., Huddleston, J., Dennis, M. Y., Sudmant, P. H., Malig, M., Hormozdiari, F., … Eichler, E. E. (2015). Resolving the complexity of the human genome using single-molecule sequencing. Nature, 517(7536), 608–611. http://doi.org/10.1038/nature13907
  • Garrison, E., Novak, A., Hickey, G., Eizenga, J., Dawson, E., Jones, W., … Durbin, R. (2017). Sequence variation aware references and read mapping with vg : the variation graph toolkit. bioRxiv, 1–27. http://doi.org/10.1101/234856
  • Beyer, W. SequenceTubeMap, https://github.com/vgteam/sequencetubemap
  • Vanderkam, D., Aksoy, B. A., Hodes, I., Perrone, J., & Hammerbacher, J. (2016). pileup.js: a JavaScript library for interactive and in-browser visualization of genomic data. Bioinformatics, 32(March), btw167. http://doi.org/10.1093/bioinformatics/btw167
  • Paten, B., Novak, A. M., Garrison, E., & Hickey, G. (2017). Superbubbles, Ultrabubbles and Cacti. bioRxiv, 1–13. http://doi.org/10.1101/101493
  • Harrow, J., Frankish, A., Gonzalez, J. M., Tapanari, E., Diekhans, M., Kokocinski, F., … Hubbard, T. J. (2012). GENCODE: The reference human genome annotation for the ENCODE project. Genome Research, 22(9), 1760–1774. https://doi.org/10.1101/gr.135350.111

License

MIT

momi-g's People

Contributors

6br avatar brettchapman avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

momi-g's Issues

Unable to use MoMI-G on my own data

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/"]

Incorrectly show coordinate axis of SequnceTube and annotation data

Hi, I'm trying to load my data to MoMI-G.

The vg file is converted from rgfa (minigraph) file. And xg file is generated using vg index. There is no problem visualizing the xg file on SequenceTubeMap (vgteam).
image

But when I loaded the xg file to MoMI-G, some problems arose. The coordinate axis of SequnceTubeMap is disordered and it's unable to show the annotation data on the website.
image
image

Additionally, the same problem arose when I converted the example data chm1_chr21.pcf to xg file using vg (v1.14.0):

pcf2gfa.sh chm1_chr21.pcf hg38_chr1.fa > chm1_chr21.gfa
vg view -Fv chm1_chr21.gfa > chm1_chr21.old.vg
vg mod -X 1024  chm1_chr21.old.vg >  chm1_chr21.vg
vg index -x  chm1_chr21.xg  chm1_chr21.vg

I checked the errors. It indicated that some wrong happens around GraphWrapper.tsx:
image
And it seems that the cause of the problems is unable to resolve the coordinate information in xg file.
image

Could you please help me with my problems?
Thanks!

error running vcf2xg on singularity

Hi,

I am trying to run vcf2xg using singularity and got an error. I tried several different ways but have the same errors:

$ singularity -s run docker://momigteam/momig-tools:latest ~/Data/A673_pacbio/HiFi/vcf/A673.HiFi.hg19.var.vcf test_output ~/opt/vg ~/hg19/hg19.fa
/usr/src/app/vcf2gfa/vcf2pcf.rb:89:in `+': no implicit conversion of nil into String (TypeError)
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:89:in `block in <main>'
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:10:in `each'
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:10:in `<main>'
$ singularity -s run docker://momigteam/momig-tools:latest ~/Data/A673_pacbio/HiFi/vcf/A673.HiFi.hg19.var.vcf test_output ~/opt/vg hg19
/usr/src/app/vcf2gfa/vcf2pcf.rb:89:in `+': no implicit conversion of nil into String (TypeError)
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:89:in `block in <main>'
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:10:in `each'
        from /usr/src/app/vcf2gfa/vcf2pcf.rb:10:in `<main>'

I downloaded binary vg to ~/opt/vg and have changed the permission.
Can you please let me know how to fix this? Thank you!

ScrollContainer cannot be used as a JSX component

Any idea what could be causing this?

Failed to compile.

/home/alexie/software/MoMI-G/src/widgets/Dnd.tsx
(194,16): 'ScrollContainer' cannot be used as a JSX component.
  Its instance type 'Component<ThemedOuterStyledProps<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any>, any, any>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/home/alexie/software/MoMI-G/node_modules/@types/react-table/node_modules/@types/react/ts5.0/index").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

the log before this error:

npm --version
10.2.4
node --version
v20.11.1
yarn --version
1.22.22

yarn run v1.22.22
$ react-app-rewired start --scripts-version react-scripts-ts
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
Watching: /home/alexie/software/MoMI-G/src
[HPM] Proxy created: [Function: context]  ->  http://chm1.momig.tokyo/
Starting the development server...

yarn start
yarn run v1.22.22
$ react-app-rewired start --scripts-version react-scripts-ts
(node:20497) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Tried to lint /home/alexie/software/MoMI-G/src/widgets/tubemap.js but found no valid, enabled rules for this file type and file path in the resolved configuration.

running momig-backend using singularity

Hi,
I'm trying to run momig-backend using singularity with the following command "singularity run docker://momigteam/momig-backend", at the point where it's trying to create sif image I got this error:

INFO:    Creating SIF file...
FATAL:   stat /home/xxt050/opt/MoMI-G/graph-genome-browser-backend: no such file or directory

/home/xxt050/opt/MoMI-G is where my MoMI-G directory cloned from github is placed on my local directory.

I've also tried to build the image in singularity first using the following recipe

Bootstrap:docker
From:momigteam/momig-backend

%environment
        export PATH=/opt/bin:$PATH

and shelling into the singularity image, but still get the same graph-genome-browser-backend no such file message.
Can you please help on how to run the backend-server using singularity? Thank you!

Error running vcf2xg.sh on human data

I've returned to give MoMI-G another shot, this time with human data but I get an error trying to generate the xg file.

$ ~/MoMI-G$ sudo bash MoMI-G/scripts/vcf2xg.sh proband_trim_bwaMEM_sort_dedupped.bam.generator.V2.overlap.hashcount.fastq.bam.FINAL.vcf momig-vcf-test-output MoMI-G/scripts/vg Homo_sapiens.GRCh37.dna.toplevel.fa


+ input=.//momig-vcf-test-output.pcf
+ reference=Homo_sapiens.GRCh37.dna.toplevel.fa
+ pref=.//momig-vcf-test-output.pcf
+ sort -t, -k 7n .//momig-vcf-test-output.pcf
+ sed -e 's/[ ]*//g'
+ awk -F '[,:]' '{print $1,"\t",$2,"\n",$4,"\t",$5}' /dev/fd/63
+ sort -k 1,1 -k 2,2n
+ uniq
++ sed 1d .//momig-vcf-test-output.pcf
+ '[' '!' -s Homo_sapiens.GRCh37.dna.toplevel.fa.fai ']'
++ dirname MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby MoMI-G/scripts/vcf2gfa/json_to_breakpoint_list.rb .//momig-vcf-test-output.pcf.bp.tsv Homo_sapiens.GRCh37.dna.toplevel.fa
+ cat .//momig-vcf-test-output.pcf.bp.tsv breakpoint_list_tmp.tsv
+ sort -k 1,1 -k 2,2n
+ uniq
++ dirname MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby MoMI-G/scripts/vcf2gfa/gfa_generator.rb .//momig-vcf-test-output.pcf.bp.merged.tsv .//momig-vcf-test-output.pcf.output.pcf Homo_sapiens.GRCh37.dna.toplevel.fa
Traceback (most recent call last):
	5: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:42:in `<main>'
	4: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:42:in `open'
	3: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:43:in `block in <main>'
	2: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:43:in `each_line'
	1: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:49:in `block (2 levels) in <main>'
MoMI-G/scripts/vcf2gfa/gfa_generator.rb:25:in `fasta': [ERROR] unexpected sequence :0- (RuntimeError)
	5: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:42:in `<main>'
	4: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:42:in `open'
	3: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:43:in `block in <main>'
	2: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:43:in `each_line'
	1: from MoMI-G/scripts/vcf2gfa/gfa_generator.rb:48:in `block (2 levels) in <main>'
MoMI-G/scripts/vcf2gfa/gfa_generator.rb:51:in `rescue in block (2 levels) in <main>': [ERROR] in 1 0 : [ERROR] unexpected sequence :0- (RuntimeError)

This is the output files:

(base) mtg@mtg-ThinkPad-P53:~/MoMI-G$ ls -al
total 31834880
drwxrwxr-x  4 mtg  mtg         4096 Nov 12 10:40 ./
drwx------ 78 mtg  mtg        24576 Nov 11 14:57 ../
-rw-r--r--  1 root root    14029435 Nov 12 10:40 breakpoint_list_tmp.tsv
-rw-rw-r--  1 mtg  mtg          798 Nov 11 15:04 config.yaml
-rwxr-x---  1 mtg  mtg  32570478447 Nov 11 21:48 Homo_sapiens.GRCh37.dna.toplevel.fa*
-rwxr-x---  1 mtg  mtg        11646 Nov 12 09:04 Homo_sapiens.GRCh37.dna.toplevel.fa.fai*
drwxrwxr-x  9 mtg  mtg         4096 Nov 11 15:06 MoMI-G/
-rw-r--r--  1 root root          11 Nov 12 10:40 momig-vcf-test-output.ggf
-rw-r--r--  1 root root         111 Nov 12 10:40 momig-vcf-test-output.json
-rw-r--r--  1 root root       13492 Nov 12 10:40 momig-vcf-test-output.pcf
-rw-r--r--  1 root root    14032093 Nov 12 10:40 momig-vcf-test-output.pcf.bp.merged.tsv
-rw-r--r--  1 root root        2658 Nov 12 10:40 momig-vcf-test-output.pcf.bp.tsv
-rw-r--r--  1 root root       13492 Nov 12 10:40 momig-vcf-test-output.pcf.output.pcf
-rw-r--r--  1 root root         558 Nov 12 10:40 momig-vcf-test-output.vg
-rw-r--r--  1 root root        3330 Nov 12 10:40 momig-vcf-test-output.xg
-rw-r--r--  1 mtg  mtg        62805 Nov 11 15:12 proband_trim_bwaMEM_sort_dedupped.bam.generator.V2.overlap.hashcount.fastq.bam.FINAL.vcf
-rw-r--r--  1 root root       62805 Nov 12 10:40 proband_trim_bwaMEM_sort_dedupped.bam.generator.V2.overlap.hashcount.fastq.bam.FINAL.vcf.vcf

Error running vcf2xg.sh

Hello,

I want to generate the pcf file but I get the following error when running the vcf2xg.sh in my own data. The vcf file was generated using minigraph-cactus pangenome pipeline.

./vcf2gfa/vcf2pcf.rb:24:in split': invalid byte sequence in UTF-8 (ArgumentError) from ./vcf2gfa/vcf2pcf.rb:24:in block in

'
from ./vcf2gfa/vcf2pcf.rb:18:in each' from ./vcf2gfa/vcf2pcf.rb:18:in '

  • input=.//sporophila_output.pcf
  • reference=/workdir/mjr432/IBEB009696_masked.1.fa
  • pref=.//sporophila_output.pcf
  • sort -t, -k 7n .//sporophila_output.pcf
  • awk -F '[,:]' '{print $1,"\t",$2,"\n",$4,"\t",$5}' /dev/fd/63
  • sed -e 's/[ ]*//g'
    ++ sed 1d .//sporophila_output.pcf
  • sort -k 1,1 -k 2,2n
  • uniq
  • '[' '!' -s /workdir/mjr432/IBEB009696_masked.1.fa.fai ']'
    ++ dirname ./vcf2gfa/pcf2gfa.sh
  • ruby ./vcf2gfa/json_to_breakpoint_list.rb .//sporophila_output.pcf.bp.tsv /workdir/mjr432/IBEB009696_masked.1.fa
  • cat .//sporophila_output.pcf.bp.tsv breakpoint_list_tmp.tsv
  • sort -k 1,1 -k 2,2n
  • uniq
  • awk '{print $1 "\t" $2 "\t" $2}' .//sporophila_output.pcf.bp.merged.tsv
  • awk '{print $1 "\t0\t" $2}' /workdir/mjr432/IBEB009696_masked.1.fa.fai
  • bedtools intersect -a .//sporophila_output.pcf.bp.merged.bed -b .//sporophila_output.pcf.reference.tsv
  • cut -f 1,2
    ++ dirname ./vcf2gfa/pcf2gfa.sh
  • ruby ./vcf2gfa/gfa_generator.rb .//sporophila_output.pcf.bp.merged.filtered.tsv .//sporophila_output.pcf.output.pcf /workdir/mjr432/IBEB009696_masked.1.fa
    [faidx] Zero length sequence: chr1:0-49999
    [faidx] Zero length sequence: chr10:0-49999
    [faidx] Zero length sequence: chr100:0-49999
    [faidx] Zero length sequence: chr101:0-49999
    [..........]
    error [vg convert]: Input GFA is not acceptable.
    GFA format error: On pass 1: On line 2: At column 5: Expected nonempty value while parsing sequence
    error[VPKG::load_one]: Correct input type not found in .//sporophila_output.vg.old while loading handlegraph::MutablePathDeletableHandleGraph
    error[VPKG::load_one]: Correct input type not found while loading handlegraph::HandleGraph

I check the gfa that is generated and it just have to columns in line 2, but I have already the xg and the gfa files that were generated at the same time as the vcf file that look fine, it is possible to run it with my own gfa?

Thank you in advance for your assistance.

Errors suspected on momig-custom-backend server

Hi, I normally confirmed demo data (CHM1) on beautiful visual panels, but could not do my custom-data.
Thanks to your instructions, I prepared my vcf file and succeeded in executing vcf2xg script without errors.
Then I put my .xg and .pcf as well as config.yaml (copied from the instruction, and changed vg: "vg" and vg_tmp: "vg" both to "vg/bin/vg", which is a PATH of vg indicated in Dockerfile.backend) into ~/MoMI-G/static directory.

Then I build momig-custom-backend docker image successfully:

docker build -t momig-custom-backend -f Dockerfile.backend .

And I ran docker image as follows, but the docker container automatically exited after a few seconds when I checked by docker container ls -a.

$ docker run --init -p 8081:8081 momig-custom-backend

So, thereafter, I (sed- changed target to localhost:8081 and ) yarn, yarn started and it once showed [compiled successfully] as follows;

Compiled successfully!                                                                                                                     
 You can now view MoMIG in the browser.                                
	Local:            http://localhost:3000/                              
        On Your Network:  http://xxx.xxx.xxx.xxx:3000/                                                                                        
Note that the development build is not optimized.                    \
To create a production build, use yarn build.

but
when I connected to localhost:3000 with firefox browser, error messages appeared and data was not loaded or visualized into MoMI-G frontend ( I suppose). I suspected that backend is not working (momig-custom-backend docker container is presumed to be working while I connect to localhost:3000, right ?).

Proxy error: Could not proxy request /api/v2/overview?source=features from localhost:3000 to http://localhost:8081/.                        See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).                                                                                                        [HPM] Error occurred while trying to proxy request /api/v2/overview?source=features from localhost:3000 to http://localhost:8081/ (ECONNREFUSED)
(https://nodejs.org/api/errors.html#errors_common_system_errors)      

Proxy error: Could not proxy request /api/v2/overview?source=chromosomes from localhost:3000 to http://localhost:8081/.    
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).                                                                                                        [HPM] Error occurred while trying to proxy request /api/v2/overview?source=chromosomes from localhost:3000 to http://localhost:8081/ (ECONNREFUSED)
(https://nodejs.org/api/errors.html#errors_common_system_errors)      

Proxy error: Could not proxy request /api/v2/overview?source=metadata from localhost:3000 to http://localhost:8081/.      
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).                                                                                                        [HPM] Error occurred while trying to proxy request /api/v2/overview?source=metadata from localhost:3000 to http://localhost:8081/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)      

Proxy error: Could not proxy request /api/v2/graph?raw=true&cache=true&gam=true&steps=3&path=chr12:80851974-80853202 from localhost:3000 to http://localhost:8081/. 
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).                                                                                                       

[HPM] Error occurred while trying to proxy request /api/v2/graph?raw=true&cache=true&gam=true&steps=3&path=chr12:80851974-80853202 from localhost:3000 to http://localhost:8081/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Incorrect annotation links

Hi

I've just been going over the demo visualisation and noticed that the links within the Linear View: Annotations section has links to genes/repeats under the "Name" column which do not lead to the correct site. For the repeats it links to Dfam but the entry on the site comes up with an error. The same is true for transcript IDs such as ENST00000337746 which should link to Ensembl, but it still takes me to Dfam with an error.

Are the links something which is generated automatically, or needs to be provided manually when setting up the dataset?

Thanks.

starting front- and back-end inside a script

Hi @6br ,

I am hoping you can help with this. I am trying to automate running front-end and back-end server inside a script so I can run everything by running a single script every time.

I created run_momig.sh which is the single script that will run front and back end servers:

# run_momig.sh
#!/bin/bash
set -x
cd ~/../share/simg/momig-singularity/MoMI-G
momig_backend_img=~/../share/simg/momig-singularity/momig-backend.sif
momig_frontend_img=~/../share/simg/momig-singularity/momig-frontend.sif
vcf_path=~/../share/data/A673_pacbio/HiFi/vcf
script_path=~/../share/simg/momig-singularity/scripts

jid=$(sbatch --time=10:00 \
--output=../momig_backend.out \
--job-name=momig_backend \
--wrap "set -x;singularity run --bind $vcf_path:/vg/static --bind /tmp:/vg/tmp --pwd /vg $momig_backend_img"| cut -f 4 -d' ')

node=$(squeue -j $jid -o "%R" -h)
status=$(squeue -j $jid -o "%t" -h)
while [[ $status != "R"* ]];do
	echo -e "Please wait setting up momig-backend server ....\n"
	sleep 10
	node=$(squeue -j $jid -o "%R" -h)
	status=$(squeue -j $jid -o "%t" -h)
done
# 300=5min
sleep 60

jid=$(sbatch --time=10:00 \
--output=../momig_frontend.out \
--job-name=momig_frontend \
--nodelist=$node \
--wrap "singularity exec --bind $script_path:/scripts $momig_frontend_img bash /scripts/momig_frontend.sbatch"| cut -f 4 -d' ')

and this is momig_frontend.sbatch:

#!/bin/bash
cd /opt/MoMI-G
yarn start

Back-end server is running fine. Problem is I got this error every time it tries to run the front-end server:

yarn run v1.22.10
$ react-app-rewired start --scripts-version react-scripts-ts
error Could not write file "/opt/MoMI-G/yarn-error.log": "EROFS: read-only file system, open '/opt/MoMI-G/yarn-error.log'"
error An unexpected error occurred: "EROFS: read-only file system, mkdir '/gpfs0'"

Inside the momig_frontend.sif, I had git cloned MoMI-G to /opt/MoMI-G and had yarn installed.

Any insights on how to fix this error?

I should add that running singularity outside of sbatch just like this singularity exec --bind $script_path:/scripts $momig_frontend_img bash /scripts/momig_frontend.sbatch inside the script works. But I needed it to run inside the sbatch so I can then start the firefox.

Thank you in advance for your help.

Demo TubeMap not working on corporate networks

On Kew Gardens network, the SequenceTubeMap doesn't show up. It would be great to show a fully working MoMIG demo when we are talking about what platform to start our vg browser work.

image

In Chrome we're seeing JSON syntax errors, which isn't very informative. On the network tab these are 404 errors in response to Raven requests.
image

In Firefox:
image
http://chm1.momig.tokyo/api/v3/graph is a 404.

In Edge:
image

document: Node SSL

FYI

I had issues to install packages until i enabled legacy openssl

export NODE_OPTIONS=--openssl-legacy-provider

tubemap view checkboxes not working correctly

Thanks for this great tool.

When I run the demo version, in the Graph view, unchecking the path "inv_chr12:80842171&chr12:80861781" (purple) results in all paths being removed from the graph.

unchecking "ins_chr12:80853303&chr12:80853303_NONE" removes all except the purple path.

I don't think this is expected?

Thanks
Screenshot 2021-02-16 at 11 04 36
Screenshot 2021-01-27 at 11 55 03

Error on HPC

I'm going to be working with human data in the next month of so, so I need to get MoMI-G set up on a server where I don't have root access:

Install dependencies

cd ~/bin/
wget https://nodejs.org/dist/v12.17.0/node-v12.17.0-linux-x64.tar.xz
tar -xf node-v12.17.0-linux-x64.tar.xz  # then set the path
curl -o- -L https://yarnpkg.com/install.sh | bash

Next I try to run the MoMI-G demo:

$ git clone https://github.com/MoMI-G/MoMI-G
$ cd MoMI-G
$ yarn
$ yarn start


Starting the development server...

ts-loader: Using [email protected] and /export/home/moldach/bin/MoMI-G/tsconfig.json
no-use-before-declare is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
Tried to lint /export/home/moldach/bin/MoMI-G/src/widgets/tubemap.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
![OKAY](https://user-images.githubusercontent.com/5749465/83081515-20fba280-a03e-11ea-8fdc-aa667a8a228d.png)


Failed to compile.

/export/home/moldach/bin/MoMI-G/src/widgets/SVList.tsx
(337,11): No overload matches this call.
  Overload 1 of 2, '(props: Readonly<Partial<TableProps<any, any>>>): ReactTable<any>', gave the following error.
    Type '{ defaultSorted: { id: string; desc: true; }[]; ref: (r: ReactTable<any>) => ReactTable<any>; loading: boolean; data: any; columns: ({ Header: () => Element; id: string; width: number; Filter: ({ filter, onChange }: { ...; }) => Element; accessor: (d: any) => Element; columns?: undefined; } | { ...; } | { ...; })[];...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactTable<any>> & Readonly<Partial<TableProps<any, any>>> & Readonly<...>'.
      Property 'filters' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactTable<any>> & Readonly<Partial<TableProps<any, any>>> & Readonly<...>'.
  Overload 2 of 2, '(props: Partial<TableProps<any, any>>, context?: any): ReactTable<any>', gave the following error.
    Type '{ defaultSorted: { id: string; desc: true; }[]; ref: (r: ReactTable<any>) => ReactTable<any>; loading: boolean; data: any; columns: ({ Header: () => Element; id: string; width: number; Filter: ({ filter, onChange }: { ...; }) => Element; accessor: (d: any) => Element; columns?: undefined; } | { ...; } | { ...; })[];...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactTable<any>> & Readonly<Partial<TableProps<any, any>>> & Readonly<...>'.
      Property 'filters' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactTable<any>> & Readonly<Partial<TableProps<any, any>>> & Readonly<...>'.

A browser window opens up showing this:

OKAY

SequenceTubeMap Manifest Not Found

image

Hi! For some reason the yarn build is failing on your branch of sequenceTubeMap. I am using Yarn 4.0.2 and nodejs-20.9.0, with a tunnel to my LocalHost:3000. I am not sure what the issue is here? If you could give any suggestions it would be greatly appreciated.

Hosting on a remote server

Hi

This is an amazing genome graph visualisation tool you have developed.

I'm currently trying to get it to run. I can run locally on my laptop with the demo dataset you have, but what I would like to do is run on the cluster where my genome alignments are running, and deploy from one of the nodes.

I have tried both methods you describe in the Readme, yarn start and through Docker:

Yarn gives me this error and when going to the nodes ip address with port 3000. It can't be reached from the browser:

yarn start

Compiled with warnings.

./src/Dashboard.tsx
[113, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/DashboardInner.tsx
[165, 23]: block is empty

./src/widgets/SVList.tsx
[11, 7]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[58, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/Linear.tsx
[62, 43]: block is empty

./src/widgets/Circos.tsx
[63, 41]: expected parameter: 'k' to have a typedef
[67, 42]: expected parameter: 'k' to have a typedef
[71, 38]: expected parameter: 'k' to have a typedef
[79, 31]: expected parameter: 'd' to have a typedef
[79, 34]: expected parameter: 'step' to have a typedef
[131, 23]: expected parameter: 'd' to have a typedef
[131, 26]: expected parameter: 'i' to have a typedef
[155, 47]: expected parameter: 'i' to have a typedef
[226, 24]: expected parameter: 'd' to have a typedef
[232, 35]: expected parameter: 'd' to have a typedef
[235, 38]: expected parameter: 'd' to have a typedef
[239, 22]: expected parameter: 'd' to have a typedef
[294, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[335, 15]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/Dnd.tsx
[9, 7]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[20, 7]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[24, 7]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[81, 9]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/GraphWrapper.tsx
[907, 1]: Exceeds maximum line length of 200
[229, 5]: expected parameter: 'colorOption' to have a typedef
[394, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/AutoComplete.tsx
[43, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/ChromosomeSelector.tsx
[25, 51]: block is empty

./src/widgets/PathRegionForm.tsx
[76, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE
[142, 11]: variable name must be in lowerCamelCase, snake_case or UPPER_CASE

./src/widgets/Tags.tsx
[24, 16]: expected parameter: 'tags' to have a typedef

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Using Docker, I also can't reach the server from my browser:

ubuntu@node-0:~/MoMI-G$ docker run --init -p 8081:8081 momigteam/momig-backend
Unable to find image 'momigteam/momig-backend:latest' locally
latest: Pulling from momigteam/momig-backend
08cf77306a68: Pull complete
a0c1c1564765: Pull complete
90f45bc8df86: Pull complete
a4355860543c: Pull complete
47b3999ad7e4: Pull complete
2e0d72a9883e: Pull complete
Digest: sha256:7b3dc29eb884c71ae5bfb2db40a2cb1682bd79b308dde545360f2ed4d64650d8
Status: Downloaded newer image for momigteam/momig-backend:latest
[2020-07-09T07:11:39Z INFO graph_genome_browser_backend::vg] VG Version: v1.6.0-213-gc0c19fe

[2020-07-09T07:11:39Z INFO graph_genome_browser_backend::vg] VG minor version: 6
[2020-07-09T07:11:39Z INFO graph_genome_browser_backend::features] Parsing: "static/gencode.v27lift37.basic.annotation.gff3"
[2020-07-09T07:12:23Z INFO graph_genome_browser_backend::features] Parsing: "static/gencode.v27.basic.annotation.gff3"
6
Start server on 0.0.0.0:8081

Is there something I'm missing, perhaps I need to open a port through the clusters firewall or something?

In regards to my genome analysis and what I want to visualise:

I have aligned 3 barley genomes (4.7GBps each) using Cactus. I'm currently only looking at chromosome 1, as aligning the entire genome in one job with the resources I have is not possible. I only have a cluster with 16 cores and 64GB RAM per node. I've been running each chromosome per node in my cluster. I intend to merge the VG files later. I realise I will likely miss SV across chromosomes, but for now, this is acceptable.

I'm using VG v1.25.0. I've called variants to a VCF file from the graph, I've indexed my graph, and I have generated GFA files using Seqwish. I'm working with the PackedGraph format *.pg instead of *.vg as it's more memory efficient. I also have genome annotation files in GFF format and BED files so I can add tracks to visualise where the SV are within genes.

If I could get MoMIG running from my cluster, that would be a great start. I'll then begin testing it out with my dataset.

Thanks.

Error running vcf2xg.sh on c. elegans

First off, I have to say great job on the tool! I've played around with the practice data and now I'm very excited to try this tool out and show it to my laboratory. I've been evaluating ~10 tools for looking at SVs and yours by-far looks the most promising!

I'm getting an error trying to convert a .VCF to .xg using the vcf2xg.sh script on the reference genome (C. elegans) used for alignment.

(base):~/TEST-MOMIG$ sudo bash ~/MoMI-G/scripts/vcf2xg.sh \
    ~/projects/maddog/CNVnator/470.vcf  \
    momig-vcf-test-output ~/vg \
    c_elegans.PRJNA13758.WS265.genomic.fa.gz

Traceback (most recent call last):
	3: from /home/MoMI-G/scripts/vcf2gfa/vcf2pcf.rb:10:in `<main>'
	2: from /home/MoMI-G/scripts/vcf2gfa/vcf2pcf.rb:10:in `each'
	1: from /home/MoMI-G/scripts/vcf2gfa/vcf2pcf.rb:89:in `block in <main>'
/home/MoMI-G/scripts/vcf2gfa/vcf2pcf.rb:89:in `+': no implicit conversion of nil into String (TypeError)
+ input=.//momig-vcf-test-output.pcf
+ reference=c_elegans.PRJNA13758.WS265.genomic.fa.gz
+ pref=.//momig-vcf-test-output.pcf
+ sort -t, -k 7n .//momig-vcf-test-output.pcf
+ sed -e 's/[ ]*//g'
+ awk -F '[,:]' '{print $1,"\t",$2,"\n",$4,"\t",$5}' /dev/fd/63
+ sort -k 1,1 -k 2,2n
+ uniq
++ sed 1d .//momig-vcf-test-output.pcf
+ '[' '!' -s c_elegans.PRJNA13758.WS265.genomic.fa.gz.fai ']'
++ dirname /home/mtg/MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby /home/mtg/MoMI-G/scripts/vcf2gfa/json_to_breakpoint_list.rb .//momig-vcf-test-output.pcf.bp.tsv c_elegans.PRJNA13758.WS265.genomic.fa.gz
+ cat .//momig-vcf-test-output.pcf.bp.tsv breakpoint_list_tmp.tsv
+ sort -k 1,1 -k 2,2n
+ uniq
++ dirname /home/MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby /home/MoMI-G/scripts/vcf2gfa/gfa_generator.rb .//momig-vcf-test-output.pcf.bp.merged.tsv .//momig-vcf-test-output.pcf.output.pcf c_elegans.PRJNA13758.WS265.genomic.fa.gz
[W::fai_get_val] Reference :0-270000000 not found in FASTA file, returning empty sequence
[faidx] Failed to fetch sequence in :0-270000000
ERROR: Signal 11 occurred. VG has crashed. Run 'vg bugs --new' to report a bug.
Stack trace path: /tmp/vg_crash_YNr9xC/stacktrace.txt
Please include the stack trace file in your bug report!
error[VPKG::load_one]: Correct input type not found while loading handlegraph::MutablePathDeletableHandleGraph
error[VPKG::load_one]: Correct input type not found while loading handlegraph::HandleGraph

I tried another call set (Delly) to see if it's something specific to the format of VCF but got a similar error:

(base) mtg@mtg-ThinkPad-P53:~/TEST-MOMIG$ sudo bash ~/MoMI-G/scripts/vcf2xg.sh ~/projects/maddog/delly/delly.vcf  momig-vcf-test-output ~/vg c_elegans.PRJNA13758.WS265.genomic.fa.gz
+ input=.//momig-vcf-test-output.pcf
+ reference=c_elegans.PRJNA13758.WS265.genomic.fa.gz
+ pref=.//momig-vcf-test-output.pcf
+ sort -t, -k 7n .//momig-vcf-test-output.pcf
+ sed -e 's/[ ]*//g'
+ awk -F '[,:]' '{print $1,"\t",$2,"\n",$4,"\t",$5}' /dev/fd/63
+ sort -k 1,1 -k 2,2n
+ uniq
++ sed 1d .//momig-vcf-test-output.pcf
+ '[' '!' -s c_elegans.PRJNA13758.WS265.genomic.fa.gz.fai ']'
++ dirname /home/MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby /home/MoMI-G/scripts/vcf2gfa/json_to_breakpoint_list.rb .//momig-vcf-test-output.pcf.bp.tsv c_elegans.PRJNA13758.WS265.genomic.fa.gz
+ cat .//momig-vcf-test-output.pcf.bp.tsv breakpoint_list_tmp.tsv
+ sort -k 1,1 -k 2,2n
+ uniq
++ dirname /home/MoMI-G/scripts/vcf2gfa/pcf2gfa.sh
+ ruby /home/MoMI-G/scripts/vcf2gfa/gfa_generator.rb .//momig-vcf-test-output.pcf.bp.merged.tsv .//momig-vcf-test-output.pcf.output.pcf c_elegans.PRJNA13758.WS265.genomic.fa.gz
[faidx] Truncated sequence: I:15066834-270000000
[faidx] Truncated sequence: II:15124909-270000000
[faidx] Truncated sequence: III:13778981-270000000
[faidx] Truncated sequence: IV:17493322-270000000
[faidx] Truncated sequence: MtDNA:13794-270000000
[faidx] Truncated sequence: V:20916455-270000000
[faidx] Truncated sequence: X:17629941-270000000
ERROR: Signal 11 occurred. VG has crashed. Run 'vg bugs --new' to report a bug.
Stack trace path: /tmp/vg_crash_Vnjilw/stacktrace.txt
Please include the stack trace file in your bug report!
error[VPKG::load_one]: Correct input type not found while loading handlegraph::MutablePathDeletableHandleGraph
error[VPKG::load_one]: Correct input type not found while loading handlegraph::HandleGraph

The stack-trace from Delly is:

Crash report for vg v1.23.0 "Lavello"
Stack trace (most recent call last):
#8    Object "/home/vg", at 0x4dd279, in _start
#7    Object "/home/vg", at 0x1bb8ec8, in __libc_start_main
#6    Object "/home/vg", at 0x40aed7, in main
#5    Object "/home/vg", at 0x9e77c7, in vg::subcommand::Subcommand::operator()(int, char**) con>
#4    Object "/home/vg", at 0x9f6a61, in main_view(int, char**)
#3    Object "/home/vg", at 0xa6c4ab, in vg::get_input_file(std::__cxx11::basic_string<char, std>
#2    Object "/home/vg", at 0x9f2ad5, in std::_Function_handler<void (std::istream&), main_view(>
#1    Object "/home/vg", at 0xbc103b, in vg::gfa_to_graph(std::istream&, vg::VG*, bool)
#0    Object "/home/vg", at 0x12e3f20, in stPinchThread_getLast

Any idea what could be happening here? One thought is that chromosome in H. sapiens are usuallly labeled chr1 but in C. elegans they are labeled (I, II, III, IV, V, X, MtDNA) - not sure if this information helps?

As for the Reference :0-270000000 part I have no idea of the context of this number: 270000000? It seems like a very round number? The entire genome of C. elegans is ~100286401bp.

Unable to load Annotations on my own data

Hello,

I have been trying to visualize some tomato data using MoMI-G. I have been successful loading and visualizing all my files (xg and pcf) except for the annotation file. So basically, the circos plot, the feature table, and the SequenceTubeMap are working properly, but the "LinearView:Annotations" sections simply shows "No Data".

I have tried loading the annotation as a gff file, as a bed file, and as a bigbed file, and none of those seem to work. I have also tried to include the annotation file under the "reference" section in the config.yaml file, and I later tried moving it under the static_files section, but again, none of those are working. Here is my current config.yaml file (here I have the annotation in two spots to show the two spots where I've tried including it):

`bin:
vg: "vg"
vg_tmp: "vg"
graphviz: "dot"
fa22bit: "faToTwobit"
bigbed: "bedToBigBed"
reference:
chroms: "static/tomatoCHR.json"
data:
- name: "SL4"
features:
- name: "gene_annotation"
url: "static/ITAG4.0_gene_models.bb"
chr_prefix: "SL4.0ch"
data:

  • name: "tomato_BGV006336"
    desc: "2021-01-25"
    chr_prefix: ""
    ref_id: "SL4"
    source:
    xg: "static/data.xg"
    csv: "static/clean_BGV006336.tomato_graphFile.pcf"
    features: []
    static_files:
    • name: 'Genes'
      url: 'static/ITAG4.0_gene_models.bb'
      viz: 'bigbed'`

Also, the annotations in your current demo page are not working on my end either --any chance that these two issues are related?

I would really appreciate any input on this issue. Thanks in advance!!

error 'cannot get position' when running bam2gam.sh

Hi,
I'm trying to run bam2gam for my own dataset with the following command:

singularity exec --pwd /home/xxt050/opt/MoMI-G/scripts docker://momigteam/momig-tools:autobuild bash -x bam2gam.sh /home/xxt050/Data/A673_pacbio/HiFi/bam/A673.HiFi.hg19.sorted.md.bam /home/xxt050/Data/A673_pacbio/HiFi/vcf/momig_input.xg /vg/bin/vg

and encountered this error:

/vg/bin/vg annotate -p -x /home/xxt050/Data/A673_pacbio/HiFi/vcf/momig_input.xg -b .//.bed.2
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot get position 159109948 along path chr7 of length 159101024

The momig_input.xg was generated using:

singularity run docker://momigteam/momig-tools:autobuild ~/Data/A673_pacbio/HiFi/vcf/A673.HiFi.hg19.sniffles.TRA.vcf momig_input ~/opt/vg ~/hg19/hg19.fa

Can you please help me figure out how to fix this?

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.