From: Scott C. <sc...@sc...> - 2019-07-31 06:21:13
|
Hi Michal, Yes, you can suppress the feature labels by adding "label" : false to the style section of the trackList.json config section. For adding a link for a feature, it is moderately more complicated and depends on where you want it to link to. This section of the docs will get you started: http://jbrowse.org/docs/mouse_configs.html#customizing-left-click-behavior-1 but you might need a javascript callback to get it working. If it's not obvious, please respond and give a description of what you'd like the link to do and we can give you more help. Scott On Tue, Jul 30, 2019 at 10:03 PM Michał T. Lorenc <m.t...@gm...> wrote: > Hi, > I have a GFF3 file with SNPs (please see below) and I loaded it into > Jbrowse/Apollo with *flatfile-to-json.pl <http://flatfile-to-json.pl> > --gff /efs/apollo/snps.fasta.m_snp.gff3 --compress --trackLabel "SNPs" > --out /efs/apollo/ * . > > > > *##gff-version 3NbV1Ch01 SGSautoSNP SNP 1245 1245 . > . . > Name=NbV1ChF00000000000000000001;ID=NbV1ChF00000000000000000001;Contig > name=NbV1Ch01;SNP score=5;SNP pos. on scaffold=1245;Genotype > L=26*T;Genotype Q=5*C;Changes=C/T* > *NbV1Ch01 SGSautoSNP SNP 1303 1303 . . . > > Name=NbV1ChF00000000000000000002;ID=NbV1ChF00000000000000000002;Contig > name=NbV1Ch01;SNP score=4;SNP pos. on scaffold=1303;Genotype > L=18*T;Genotype Q=4*A;Changes=A/T* > > [image: image.png] > > How is it possible to hide the SNP description and only show it when the > user mouse over or click on the SNP? Additionally, when the SNP description > appears would it be possible to add a click event to be redirected to a new > page? > > Thank you in advance, > > Best wishes, > > Michal > > > _______________________________________________ > Gmod-ajax mailing list > Gmo...@li... > https://lists.sourceforge.net/lists/listinfo/gmod-ajax > -- ------------------------------------------------------------------------ Scott Cain, Ph. D. scott at scottcain dot net GMOD Coordinator (http://gmod.org/) 216-392-3087 Ontario Institute for Cancer Research |