{"id":27218595,"url":"https://github.com/cpauvert/plnnetwork-workflow","last_synced_at":"2025-10-11T00:08:27.527Z","repository":{"id":95280740,"uuid":"307644027","full_name":"cpauvert/PLNnetwork-workflow","owner":"cpauvert","description":"Infer network from count data within Snakemake using a sparse Poisson lognormal model (PLNnetwork)","archived":false,"fork":false,"pushed_at":"2020-11-19T15:56:36.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T20:45:59.876Z","etag":null,"topics":["count-data","microbiome-analysis","network-inference","snakemake","snakemake-workflows"],"latest_commit_sha":null,"homepage":"","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/cpauvert.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-27T09:12:31.000Z","updated_at":"2020-11-19T15:56:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7698211-7ded-46ff-a549-cded1346d676","html_url":"https://github.com/cpauvert/PLNnetwork-workflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cpauvert/PLNnetwork-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpauvert%2FPLNnetwork-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpauvert%2FPLNnetwork-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpauvert%2FPLNnetwork-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpauvert%2FPLNnetwork-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpauvert","download_url":"https://codeload.github.com/cpauvert/PLNnetwork-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpauvert%2FPLNnetwork-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005645,"owners_count":26083940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["count-data","microbiome-analysis","network-inference","snakemake","snakemake-workflows"],"created_at":"2025-04-10T05:38:54.363Z","updated_at":"2025-10-11T00:08:27.521Z","avatar_url":"https://github.com/cpauvert.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PLNnetwork-workflow\nInfer a network from count data within Snakemake using a sparse Poisson lognormal model (PLNnetwork)\n\nThis [Snakemake](https://snakemake.readthedocs.io/) workflow provides the means to fit a sparse Poisson lognormal model for sparse covariance inference for counts (aka PLNnetwork). This model is a subset of a nice collection of models bundled into the R package [PLNmodels](https://github.com/jchiquet/PLNmodels). The R version and package dependencies are contained within `conda` environment for reproducibility.\nThe R commands are splitted as Snakemake rules to be able to start again on error and follow up the dependencies between the created files (such as RDS files for the models or bootstraps).\n\n## Usage\n\nThe organisation of this workflow was adapted from the template of [snakemake workflows](https://github.com/snakemake-workflows/docs).\n\n### Step 1: Obtain a copy of this workflow\n\n1. Create a new github repository using this workflow [as a template](https://help.github.com/en/articles/creating-a-repository-from-a-template).\n2. [Clone](https://help.github.com/en/articles/cloning-a-repository) the newly created repository to your local system, into the place where you want to perform the data analysis.\n\n### Step 2: Configure workflow\n\nConfigure the workflow according to your needs via editing the `config.yaml` file in the `config/` folder. The default configuration runs with a toy dataset which is a subset of the example used in the R package [PLNmodels](https://github.com/jchiquet/PLNmodels).\n\n### Step 3: Install Snakemake\n\nInstall Snakemake using [conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html):\n\n    conda create -c bioconda -c conda-forge -n snakemake snakemake\n\nFor installation details, see the [instructions in the Snakemake documentation](https://snakemake.readthedocs.io/en/stable/getting_started/installation.html).\n\n### Step 4: Execute workflow\n\nActivate the conda environment:\n\n    conda activate snakemake\n\nTest your configuration by performing a dry-run via\n\n    snakemake --use-conda -n\n\nExecute the workflow locally via\n\n    snakemake --use-conda --cores $N \n\nIf you have previously installed the dependencies (`R` and `PLNmodels`) for this workflow independently or using the following commands, the `--use-conda` is not necessary:\n\n    conda create -n PLNmodels r-plnmodels\n    snakemake -n --cores $N \n\n### Step 5: Visualise an automatic report of the results\n\nSnakemake has built-in capabilities of reporting the results of the workflow. To do so, you can execute the following line:\n\n    snakemake --report report.html\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpauvert%2Fplnnetwork-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpauvert%2Fplnnetwork-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpauvert%2Fplnnetwork-workflow/lists"}