{"id":19749537,"url":"https://github.com/mskcc/facets","last_synced_at":"2026-03-10T14:32:37.745Z","repository":{"id":32064598,"uuid":"35636429","full_name":"mskcc/facets","owner":"mskcc","description":"Algorithm to implement Fraction and Copy number Estimate from Tumor/normal Sequencing.","archived":false,"fork":false,"pushed_at":"2023-06-04T17:04:26.000Z","size":27697,"stargazers_count":150,"open_issues_count":129,"forks_count":67,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-04-30T09:49:41.812Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mskcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-05-14T20:54:49.000Z","updated_at":"2025-03-15T07:04:38.000Z","dependencies_parsed_at":"2022-07-13T15:29:48.275Z","dependency_job_id":"de834dca-ae73-4b9d-b4bf-c48bc796c224","html_url":"https://github.com/mskcc/facets","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mskcc/facets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskcc%2Ffacets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskcc%2Ffacets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskcc%2Ffacets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskcc%2Ffacets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskcc","download_url":"https://codeload.github.com/mskcc/facets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskcc%2Ffacets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30337237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-12T02:27:08.769Z","updated_at":"2026-03-10T14:32:37.737Z","avatar_url":"https://github.com/mskcc.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# facets\nAlgorithm to implement Fraction and Allele specific Copy number Estimate from Tumor/normal Sequencing.\n\n**GitHub Actions CI** (_Linux, macOS \u0026 MS Windows_) [![R-CMD-check](https://github.com/mskcc/facets/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mskcc/facets/actions/workflows/R-CMD-check.yaml)\n**Test coverage** [![codecov.io](https://codecov.io/github/mskcc/facets/coverage.svg?branch=master)](https://codecov.io/github/mskcc/facets?branch=master)\n\nYou can install the current version (along with the vignette) using the command\n\n```R\nremotes::install_github(\"mskcc/facets\", build_vignettes = TRUE)\n```\n\npctGCdata is a required package. So install that also (needs to be done only once)\n\n```R\nremotes::install_github(\"mskcc/pctGCdata\")\n```\nIf you get an error message about pctGCdata use\n\n```R\nremotes::install_github(\"veseshan/pctGCdata\")\n```\n\n## NOTES\n\n### 2016_11_11 (version 0.5.6)\n\nThe new version estimates the log-ratio level corresponding to the diploid state. It is embedded into the procSample call.\nIn terms of using the package you can now do:\n\n```r\nrcmat \u003c- readSnpMatrix(filename, ...)\nxx \u003c- preProcSample(rcmat, ...)\n# specify cval you like\noo \u003c- procSample(xx, cval = 300)\n```\n\nAnd go straight to\n```r\nemcncf(oo)\n```\nThe `emcncf2(oo)` option imposes a clonal cluster structure. This function is currently being reworked. Please use with caution.\n\nThe output of procSample now has 4 elements:\n\n* `jointseg` – same as before\n* `out` – as before with 3 additional columns: cf, tcn, lcn\n* `dipLogR` – the estimated location of diploid log-ratio value\n* `flags` – this gives an indication of whether the dipLogR is estimated well.\n\nIf `flags` is NULL then no obvious problem with the dipLogR estimate. It can have two other comments: \"mafR not sufficiently small\" and \"could be polyclonal 1 copy loss\". The first one means that there aren't segments with sufficiently balanced alleles and so the estimate may not be great. The second one means that it looks like genome doubling; the only lower level segments are 2+1 and 2+0 (from 2+2); a model without genome doubling but single copy loss (1+0 from 1+1) with two different cellular fraction could fit better.\n\nNote: I am not claiming that I have covered all possible scenarios that lead to bad dipLogR estimate. If you come across anything that doesn't seem right but flags is NULL let me know.\n\n## Citation\n\nShen R, Seshan VE. FACETS: allele-specific copy number and clonal heterogeneity analysis tool for high-throughput DNA sequencing. Nucleic Acids Res. 2016 Sep 19;44(16):e131. doi: 10.1093/nar/gkw520. Epub 2016 Jun 7. PMID: 27270079; PMCID: PMC5027494.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskcc%2Ffacets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskcc%2Ffacets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskcc%2Ffacets/lists"}