{"id":19829138,"url":"https://github.com/ssi-dk/cdiff_fbi","last_synced_at":"2026-03-04T15:32:40.240Z","repository":{"id":244780683,"uuid":"815073263","full_name":"ssi-dk/cdiff_fbi","owner":"ssi-dk","description":"Typing of Clostridioides difficile isolates using NGS data (reads and contigs) based on tandem repeat loci (TR6, TR10), and toxin genes (cdtA, cdtB, tcdA, tcdB, tcdC).","archived":false,"fork":false,"pushed_at":"2025-04-25T12:37:59.000Z","size":76515,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T13:48:36.289Z","etag":null,"topics":["cdiff","fbi","tandem-repeats","toxins","typing"],"latest_commit_sha":null,"homepage":"","language":"ASP.NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssi-dk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-14T09:42:31.000Z","updated_at":"2025-03-18T08:39:32.000Z","dependencies_parsed_at":"2024-06-17T12:15:55.577Z","dependency_job_id":"3ef48aba-7349-499c-8957-3d25d5a870f7","html_url":"https://github.com/ssi-dk/cdiff_fbi","commit_stats":null,"previous_names":["ssi-dk/cdiff_fbi"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ssi-dk/cdiff_fbi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssi-dk%2Fcdiff_fbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssi-dk%2Fcdiff_fbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssi-dk%2Fcdiff_fbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssi-dk%2Fcdiff_fbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssi-dk","download_url":"https://codeload.github.com/ssi-dk/cdiff_fbi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssi-dk%2Fcdiff_fbi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30084978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"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":["cdiff","fbi","tandem-repeats","toxins","typing"],"created_at":"2024-11-12T11:17:52.988Z","updated_at":"2026-03-04T15:32:40.212Z","avatar_url":"https://github.com/ssi-dk.png","language":"ASP.NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdiff_fbi\nTyping of *Clostridioides difficile* isolates using NGS data (reads and contigs) based on tandem repeat loci (TR6, TR10), and toxin genes (cdtA, cdtB, tcdA, tcdB, tcdC).\n\n## Quick start\n```bash\n# Type\nbash cdifftyping.sh -h\n# Process\nbash postcdifftyping.sh -h\n# Summarize\npython3 qc_cdiff_summary.py -h\n```\n\n## Installation\n### Source\n```bash\n# Clone this repo\ngit clone https://github.com/ssi-dk/cdiff_fbi.git\n# Create an environment with the required tools with conda\nconda create --name cdiff_pipeline picard gatk4 biopython ruamel.yaml kraken bwa samtools\n# Activate the environment\nconda activate cdiff pipeline\n# Install a custom tool\ngit clone https://github.com/ssi-dk/serum_readfilter\ncd serum_readfilter\npip install .\n```\n\n## Usage\n### Example\n```bash\n# Download data into the test folder\nmkdir -p test\nwget -nc ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR142/ERR142064/ERR142064_2.fastq.gz -P test\nwget -nc ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR142/ERR142064/ERR142064_1.fastq.gz -P test\ntouch ERR142064.fasta  # Create an empty file as a fake assembly for testing purposes\n```\n\n### Pipeline\n```bash\n# Build the db\nbash cdifftyping.sh -db db -update yes  # WARNING: Not yet implemented for serumdb or trstdb\n# Type\nbash cdifftyping.sh -i ERR142064 -R1 test/ERR142064_1.fastq.gz -R2 test/ERR142064_2.fastq.gz -c test/ERR142064.fasta -qc pass -o test -db db -update no\n# Process\nbash postcdifftyping.sh -i ERR142064 -d test -stbit \"STNA;NA:NA\"\n# Summarize\npython3 qc_cdiff_summary.py -i test -o test\n```\n\n## Output\n### .csv\n```\nName;cdtA/B;tcdA;tcdB;tcdClength;117del;A117T;TRST;TR6;TR10;ST;STalleles;WGS;tcdA:tcdB:tcdC:cdtA:cdtB\nERR142064;+/+;+;+;0;+;-;Unknown;Unknown;Unknown;STNA;NA:NA;test;8119/8133:6914/7101:700/700:1389/1389:2628/2628\n```\n### .json\n```\n{\"Name\": \"ERR142064\", \"cdtA\": \"+\", \"cdtB\": \"+\", \"tcdA\": \"+\", \"tcdB\": \"+\", \"tcdClength\": \"0\", \"117del\": \"+\", \"A117T\": \"-\", \"TRST\": \"Unknown\", \"TR6\": \"Unknown\", \"TR10\": \"Unknown\", \"ST\": \"STNA;NA:NA\", \"WGS\": \"test\", \"cov_info\": {\"tcdA\": \"8119/8133\", \"tcdB\": \"6914/7101\", \"tcdC\": \"700/700\", \"cdtA\": \"1389/1389\", \"cdtB\": \"2628/2628\"}}\n```\n\n## Updating the db\n```bash\n# Build the db\nbash cdifftyping.sh -db db -update yes  # WARNING: Not yet implemented for serumdb or trstdb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssi-dk%2Fcdiff_fbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssi-dk%2Fcdiff_fbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssi-dk%2Fcdiff_fbi/lists"}