{"id":39554187,"url":"https://github.com/jackhump/leafviz","last_synced_at":"2026-01-18T07:00:40.944Z","repository":{"id":49898550,"uuid":"298634817","full_name":"jackhump/leafviz","owner":"jackhump","description":"Just the leafviz parts of Leafcutter","archived":false,"fork":false,"pushed_at":"2022-12-05T13:41:24.000Z","size":24877,"stargazers_count":9,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-20T20:31:59.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackhump.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-25T17:12:09.000Z","updated_at":"2023-07-17T15:12:58.000Z","dependencies_parsed_at":"2023-01-24T05:30:40.605Z","dependency_job_id":null,"html_url":"https://github.com/jackhump/leafviz","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/jackhump/leafviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhump%2Fleafviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhump%2Fleafviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhump%2Fleafviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhump%2Fleafviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackhump","download_url":"https://codeload.github.com/jackhump/leafviz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackhump%2Fleafviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28532575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T07:00:22.690Z","updated_at":"2026-01-18T07:00:40.933Z","avatar_url":"https://github.com/jackhump.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeafViz \n\nJack Humphrey, David A. Knowles, Yang I. Li\n2017-2021\n\n\nA lightweight, standalone version of the **Leafcutter Visualisation** Shiny app.\n\nThis was created due to the complexities of installing Leafcutter on local machines.\n\n## Installation:\n\n```\n## in R:\ninstall.packages(\"remotes\")\nremotes::install_github(\"jackhump/leafviz\")\n``` \n\nDocker image now available, created by @NaotoKubota \n\nSee https://hub.docker.com/r/naotokubota/leafviz\n\n\n## Running the shiny app\n\n### Setting the browser (for Windows only)\n\nFirst set the browser option (using double backward slash or a single forward slash is due to windows) such as for the main 3 browers:\n(thanks to bsouthey for this tip)\n\n\n```\noptions(browser=\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\")\noptions(browser=\"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\")\noptions(browser=\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\")\n```\n\n\n### Running app on example dataset:\n\n```\nlibrary(leafviz)\nleafviz()\n```\n\n### Running leafviz on your own dataset:\n\nThis assumes you've prepared your differential splicing results for leafviz using the prepare_results.R script within Leafcutter.\n\n```\nlibrary(leafviz)\nleafviz(\"\u003cpath/to/your_leafcutter_results.RData\u003e\")\n```\n\n### Generating simple reports\n\nLeafviz now allows you to export information to reports. Currently under development.\n\n```\nmake_report(infile = \"\u003cpath/to/your_leafcutter_results.RData\u003e\", outfile = \"./report.html\")\n```\n\nThe following output is produced:\n\n`\u003coutfolder\u003e/\u003ccode\u003e_report.html` - a HTML file viewable in your browser, containing the same information as in the summary tab of the LeafViz browser session.\n\n\n### Exporting tables\n\nYou can now export the clusters and introns tables to TSV with one command:\n\n```\nexport_tables(infile = \"\u003cpath/to/your_leafcutter_results.RData\u003e\", outfolder = \".\")\n```\n\nThe following outputs are produced:\n\n`\u003coutfolder\u003e/\u003ccode\u003e_sig_clusters.tsv` - the cluster-level information on each significant cluster\n`\u003coutfolder\u003e/\u003ccode\u003e_sig_introns.tsv` - the intron-level information for each significant cluster\n\n`\u003ccode\u003e` is already set in the RData object\n\n## Classify clusters as cassette exons and determine directionality and novelty\n\n```\nclassify_clusters(infile = \"\u003cpath/to/your_leafcutter_results.RData\u003e\", outfolder = \".\")\n```\n\n\nLeafviz also contains a function to classify leafcutter junction clusters as cassette exons, if they contain 3 introns with thecorrect topology (2 child (inclusion) introns; 1 parent (skipping) intron)\n\nIt then works out the directionality based on the leafcutter model effect sizes for the 3 introns. A skipped cassette exon would have a positive effect size for the parent intron and negative effect sizes for the two child introns, whereas an included exon would have the reverse.\n\nIt then uses the annotation status of each intron to determine whether the exon is novel (cryptic exon; the two inclusion introns are novel) or the skipping event is novel (skiptic exon; the skipping intron only is novel); or completely unannotated.\n\nExon and intron coordinates are then inferred from the junction coordinates.\n\nThe following files are produced:\n\n`\u003coutfolder\u003e/\u003ccode\u003e_classifications.tsv` - the classification for each cluster\n`\u003coutfolder\u003e/\u003ccode\u003e_summary.tsv` - the summary, tallying by classification\n\n`code` is already set in the RData file.\n\nOptions:\n\n`full_results`  - logical TRUE or FALSE - whether to also output the clusters that couldn't be classified in the output files.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhump%2Fleafviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackhump%2Fleafviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhump%2Fleafviz/lists"}