close
Syntax
Description
Examples
Add NGS Data to Genomics Viewer Programmatically
This example requires an internet connection.
Open a new instance of the Genomics Viewer app. Specify to use Human (GRCh38/hg38) as the reference sequence and the corresponding cytoband ideogram file.
gv = genomicsViewer(ReferenceFile="https://s3.amazonaws.com/igv.broadinstitute.org/genomes/seq/hg38/hg38.fa",... CytoBand="https://s3.amazonaws.com/igv.org.genomes/hg38/annotations/cytoBandIdeo.txt.gz");
Alternatively, you can use the setReference
function to specify the reference sequence and the cytoband file.
In the IGV panel, click Chromosome 10 to zoom in on it.
The IGV panel is updated as follows.
Add the Refseq genes as the annotation file.
addTracks(gv,"https://s3.amazonaws.com/igv.org.genomes/hg38/refGene.sorted.txt.gz");
Load a low coverage alignment data. The sample ID is NA18564 and the sample has been identified with the CYP2C19*3 mutation.
addTracks(gv,"https://s3.amazonaws.com/1000genomes/data/NA18564/alignment/NA18564.alt_bwamem_GRCh38DH.20150718.CHB.low_coverage.cram");
To center the alignment data around the location of the mutation on the CYP2C19 gene, enter chr10:94,780,635-94,780,673
in the search text box.
To show the bases on track2, click the gear icon and select Show all bases.
The IGV panel is updated as follows.
For additional information on other interactive visualization options, see Visualize NGS Data Using Genomics Viewer App.
Close the app.
close(gv);
Input Arguments
gv
— Genomics viewer object
genomicsViewer
object
Genomics viewer object, specified as a genomicsViewer
object.
Version History
Introduced in R2024a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)