X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=help%2Fhtml%2Ffeatures%2Fbiojsmsa.html;h=fbbb1351e15671fed5212d61fbfcc35d3a40e1b5;hb=d8d179f9c399205f61e7b936dd11a061bfb5de80;hp=7b383b0eafe68bb64ec327fc2aae1c295f14bb5b;hpb=89a2e87d1860722d5bf5da2f0ad0165ac79aa891;p=jalview.git diff --git a/help/html/features/biojsmsa.html b/help/html/features/biojsmsa.html index 7b383b0..fbbb135 100644 --- a/help/html/features/biojsmsa.html +++ b/help/html/features/biojsmsa.html @@ -1,48 +1,44 @@

BioJS MSA Viewer

-Since Jalview 2.9, BioJS MSA HTML files can be generated from alignment within the Jalview desktop application. BioJS MSA Viewer is a JavaScript based multiple sequence alignment visualisation system. Jalview generates BioJS HTML files by parsing a BioJS MSA export template file and embedding BioJSON data from a given alignment on the Jalview desktop application. +Since Jalview 2.9, BioJS MSA HTML files can be generated from an alignment within the Jalview desktop application. BioJS MSA Viewer is a JavaScript based multiple sequence alignment visualisation system. Jalview generates BioJS HTML files by parsing a BioJS MSA export template file and embedding BioJSON data from a given alignment on the Jalview desktop application.

To ensure that the BioJS MSA export mechanism is easily extensible, the export templates are externalised from the Jalview codebase. Consequently, new versions of BioJS MSA Viewer can easily be integrated into Jalview without having to deploy a new version of Jalview.

What constitutes a BioJS MSA Template

+
  • Place holder for BioJSON data (this can be a div or input element as show below): +
    <div name="seqData" id="seqData" style="display: none;">#valid BioJSON data#</div>  OR
    +<input type="hidden" id="seqData" name="seqData" value='#valid BioJSON data#'/>
    +
  • - - - -The externalised BioJS MSA templates are available in the github repository https://github.com/jalview/exporter-templates/tree/master/biojs. -
    Jalview looks at the package.json file at https://github.com/jalview/exporter-templates/blob/master/biojs/package.json to work out the available versions of BioJS MSA Viewer templates and the latest release version to use for its exports. +The externalised BioJS MSA templates are available in the Github repository https://github.com/jalview/exporter-templates/tree/master/biojs. +
    Jalview processes the package.json file at https://github.com/jalview/exporter-templates/blob/master/biojs/package.json to work out the available versions of BioJS MSA Viewer templates and the latest release version to use for its exports.

    Creating/Updating a new BioJS MSA Template

    -The following steps can be taken to create a new BioJS MSA template +The following steps can be taken to create or update a BioJS MSA template
    1. Add/update all BioJS MSA scripts to the template file
    2. -
    3. Update codes for transforming BioJSON data to BioJS MSA data (this requires knowledge of both data models)
    4. -
    5. Ensure that the new template created can be employed by Jalivew to generate valid BioJS MSA files. This can be achieved by following the steps below to deploy the new export template to a test repo and subsequently configure jalview to use the test repo for testing the template:
    6. - -
    7. Commit the new template to the official Jalview-BioJS github template repository https://github.com/jalview/exporter-templates/tree/master/biojs
    8. -
    9. Update the package.json of the official template repo at https://github.com/jalview/exporter-templates/blob/master/biojs/package.json accordingly
    10. -
    11. Restore value for 'biojs_template_git_repo' in jalview_properties to point to the official template repo
    12. -
    13. Restart Jalview
    14. +
    + +
  • Commit the new template to the official Jalview-BioJS Github template repository https://github.com/jalview/exporter-templates/tree/master/biojs
  • +
  • Update the package.json of the official template repository at https://github.com/jalview/exporter-templates/blob/master/biojs/package.json accordingly
  • +
  • Restore value for 'biojs_template_git_repo' in jalview_properties to point to the official template repository
  • +
  • Repeat steps 4iii to 4v above
  • Note: -Whenever Jalview starts up, if internet connection is available, it checks if there are new updates of BioJS MSA template added to the repository and downloads them to a local user directory for subsequent offline use. +When Jalview starts up, provided that there is an internet connection, Jalview checks if there are new updates of BioJS MSA template added to the repository and downloads them to a local user directory for subsequent offline use.