https://github.com/cancerit/cgpjbrowsetoolkit
Holds publicly useful scripts and tools for JBrowse users and admins
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.9%) to scientific vocabulary
Keywords
Repository
Holds publicly useful scripts and tools for JBrowse users and admins
Basic Info
Statistics
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 3
- Releases: 7
Topics
Metadata Files
README.md
cgpJBrowseToolkit
Contains the script 'jbrowse_rasterize.js', a script to generate images from JBrowse.
Installation
Requires a working installation of node and npm. Depending on your operating system, you may also need to install additional pacakages for running chromium. For an out-of-the-box installation, please see installation with Docker.
git clone https://github.com/cancerit/cgpJBrowseToolkit.git;
npm install .;
Installation with Docker
For conveniance, a Dockerfile is provided to build an image with all necessary requirements installed.
git clone https://github.com/cancerit/cgpJBrowseToolkit.git;
cd cgpJBrowseToolkit.git;
docker build --tag cgpjbrowsetoolkit:develop;
Usage
jbrowse_rasterize.js generates screenshots from your JBrowse instance using the URL and a BED file of locations of interest.
``` Usage: jbrowse_rasterize [options]
Generate images against a JBrowse server
Options:
-l, --locs
Additional information:
Image quality: Best image quality is achieved with pdf, but ~5x larger than png.
Zoom: To allow capturing same region in a wider image as JBrowse has a maximum width per base.
--locs bed file:
Can include comment lines to switch the baseUrl used for the next block of coordinates.
Any comment line will be processed into a dataset ($DS) name and URL. Files generated will be output to a subfolder of the specified --output area as:
$OUTPUT/$DS/$CHR-$START_$END.
FORMAT:
DATASET_NAME URL
CHR START END
DATASET_NAME2 URL
CHR START END ...
Comment/URL separator lines can be space or tab separated elements. BED formatted lines must be tab separated and only have 3 elements. ```
Example: Running with 'baseUrl' option
volvox.bed:
ctgA 17173 23150
bash
mkdir -p out;
node js/jbrowse_rasterize.js \
--imgType png \
--locs volvox.bed \
--outdir out \
--baseUrl 'http://jbrowse.org/code/JBrowse-1.12.4/?tracks=Transcript%2Cvolvox-sorted_bam_coverage&data=sample_data%2Fjson%2Fvolvox';
Example: Running with embedded URL
volvox_urlEmbedded.bed:
```
EmbeddedUrl http://0.0.0.0:8080/?tracks=DNA%2CTranscript%2Cvolvox-sortedbamcoverage%2Cvolvox-sortedbam&data=sampledata%2Fjson%2Fvolvox
ctgA 17173 23150 ```
bash
mkdir -p out;
node js/jbrowse_rasterize.js \
--imgType png \
--locs volvox_urlEmbedded.bed \
--outdir out
Example: Running with Docker
bash
mkdir -p out;
docker run \
--rm \
-v ${PWD}:/home/ubuntu \
--user $(id -u):$(id -g) \
cgpjbrowsetoolkit:develop \
node jbrowse_rasterize.js \
--imgType png \
--locs volvox_urlEmbedded.bed \
--outdir out
HTTP-BASIC Authentication
To use this with a site secured with http_basic (username and password) you will need to provide this in a file whos path is set with the --passwdFile option.
eg. pass.txt
username
password
Please set permissions accordingly for this file and preferably delete it after use.
LICENCE
``` Copyright (c) 2016-2023 Genome Research Ltd.
Author: CASM/Cancer IT cgphelp@sanger.ac.uk
This file is part of cgpJBrowseToolkit.
cgpJBrowseToolkit is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- The usage of a range of years within a copyright statement contained within this distribution should be interpreted as being equivalent to a list of years including the first and last year specified and all consecutive years between them. For example, a copyright statement that reads ‘Copyright (c) 2005, 2007- 2009, 2011-2012’ should be interpreted as being identical to a statement that reads ‘Copyright (c) 2005, 2007, 2008, 2009, 2011, 2012’ and a copyright statement that reads ‘Copyright (c) 2005-2012’ should be interpreted as being identical to a statement that reads ‘Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012’." ```
Owner
- Name: CASM IT
- Login: cancerit
- Kind: organization
- Email: cgpit@sanger.ac.uk
- Location: Hinxton, Cambridge, UK
- Website: http://www.sanger.ac.uk/science/programmes/cancer-genetics-and-genomics
- Repositories: 89
- Profile: https://github.com/cancerit
CASM IT provide bioinformatic support for Cancer, Ageing and Somatic Mutation group at the Wellcome Sanger Institute
GitHub Events
Total
Last Year
Dependencies
- agent-base 4.2.0
- async-limiter 1.0.0
- balanced-match 1.0.0
- brace-expansion 1.1.11
- commander 2.15.1
- concat-map 0.0.1
- concat-stream 1.6.0
- core-util-is 1.0.2
- debug 2.6.9
- debug 3.1.0
- es6-promise 4.2.4
- es6-promisify 5.0.0
- extract-zip 1.6.6
- fd-slicer 1.0.1
- fs.realpath 1.0.0
- glob 7.1.2
- https-proxy-agent 2.2.1
- inflight 1.0.6
- inherits 2.0.3
- isarray 1.0.0
- mime 1.6.0
- minimatch 3.0.4
- minimist 0.0.8
- mkdirp 0.5.0
- mkdirp 0.5.1
- ms 2.0.0
- once 1.4.0
- path-is-absolute 1.0.1
- pend 1.2.0
- process-nextick-args 2.0.0
- progress 2.0.0
- proxy-from-env 1.0.0
- puppeteer 1.1.1
- readable-stream 2.3.4
- rimraf 2.6.2
- safe-buffer 5.1.1
- stat-mode 0.2.2
- string_decoder 1.0.3
- typedarray 0.0.6
- ultron 1.1.1
- util-deprecate 1.0.2
- wrappy 1.0.2
- ws 3.3.3
- yauzl 2.4.1
- commander ^2.15.1
- mkdirp ^0.5.1
- puppeteer ^1.1.1
- stat-mode ^0.2.2
- ubuntu 22.04 build