
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
ImmunoTyper2 is a powerful tool for Immunoglobulin Variable Gene genotyping and CNV analysis from whole genome sequencing (WGS) short reads using ILP Optimization. Check out our paper here00352-0?_returnURL=https%3A%2F%2Flinkinghub.elsevier.com%2Fretrieve%2Fpii%2FS2405471222003520%3Fshowall%3Dtrue) for more details.
📢 New Feature:
--solver or-tools param ! 🎉 Note it is best suited to lower coverage or less complex loci (e.g. does not work on 30x IGHV).<prefix>-<gene_type>-novel-variants.txt and phased VCFs are available in <prefix>-<gene_type>-novel_variant_vcfs/<gene_id>_variants.vcf.For the easiest installation, we recommend using Singularity by pulling the Docker image available on DockerHub at cdslsahinalp/immunotyper-sr.
To run the image with Singularity (commonly used on HPCs), use the following command:
shsingularity pull docker://cdslsahinalp/immunotyper-sr singularity run -B <BAM_DIRECTORY>:<BAM_DIRECTORY> -B <OUTPUT_PATH>:/output immunotyper-sr_latest.sif <OPTIONAL ARGUMENTS> <BAM_DIRECTORY>/<BAM_FILE>
You can also run the image with Docker, however this method has not been tested:
shdocker pull cdslsahinalp/immunotyper-sr docker run -v <BAM_DIRECTORY>:<BAM_DIRECTORY> -v <OUTPUT_PATH>:/output immunotyper-sr <OPTIONAL ARGUMENTS> <BAM_DIRECTORY>/<BAM_FILE>
If you already have BWA installed and prefer not to create a new environment, you can download the latest release ***ary (see right toolbar) and install it with pip:
pip install <binary.whl>
For the best experience, we recommend setting up a clean environment first:
conda create -n immunotyper-SR -c bioconda python=3.8 bwa bowtie2 freebayes whatshap conda install -y -n immunotyper-SR -c gurobi gurobi conda install -y -n immunotyper-SR -c conda-forge samtools conda activate immunotyper-SR pip install <binary.whl>
Installing ImmunoTyper-SR with pip will automatically install these dependencies:
In addition to the above, you will need
conda create -n immunotyper-SR -c bioconda python=3.8 bwa samtools conda activate immunotyper-SR pip install <binary.whl>
To check that gurobi is correctly configured, run gurobi_cl from a shell.
If the ***ary fails to install, you can build the tool from source:
conda create -n immunotyper-SR -c bioconda python=3.8 bwa bowtie2 freebayes whatshap conda install -y -n immunotyper-SR -c gurobi gurobi conda install -y -n immunotyper-SR -c conda-forge samtools conda activate immunotyper-SR git clone git@github.com:algo-cancer/ImmunoTyper-SR.git ./ImmunoTyper-SR cd ImmunoTyper-SR python -m pip install --upgrade build python -m build pip install dist/<.tar.gz or .whl build>
What is Prefix Consistency?
Source of Accuracy Metrics & Optimal Threshold Calculation:
optimal_threshold for each gene, used in this report, was determined by maximizing the F-beta score (with $\beta=0.5$, thereby prioritizing precision over recall) on this reference dataset. This methodology aims to provide high-confidence allele identifications. Further details on this validation and the prefix consistency metric are covered in our upcoming paper (currently under review).After installing with pip, use the command immunotyper-SR. The only required input is a BAM file. Outputs are generated in the current working directory, where
gene position ref alt.Allele, Functional status, Consistency value, Probability of TP, Passes Optimal Threshold, Optimal Threshold Gene Accuracy. Note: This output is currently only generated when using the Gurobi solver. For a detailed explanation of Prefix Consistency and how the accuracy metrics are derived, please see the "🔬 Prefix Consistency Analysis Details" section.IMPORTANT: If your BAM was mapped to GRCh37 use the --hg37 flag.
$ immunotyper-SR --help usage: immunotyper-SR [-h] [--gene_type {ighv,iglv,trav,igkv,trbv,trdv,trgv}] [--output_dir OUTPUT_DIR] [--ref REF] [--hg37] [--solver {gurobi,or-tools}] [--bwa BWA] [--max_copy MAX_COPY] [--landmarks_per_group LANDMARKS_PER_GROUP] [--landmark_groups LANDMARK_GROUPS] [--stdev_coeff STDEV_COEFF] [--seq_error_rate SEQ_ERROR_RATE] [--solver_time_limit SOLVER_TIME_LIMIT] [--debug_log_path DEBUG_LOG_PATH] [--write_cache_path WRITE_CACHE_PATH] [--threads THREADS] [--no_coverage_estimation] [--save_extracted_reads] [--solution_precision SOLUTION_PRECISION] [--no_vcf] [--no_read_assignment] [--multi_band_solutions] bam_path ImmunoTyper-SR: Ig Genotyping using Short Read WGS positional arguments: bam_path Input BAM file optional arguments: -h, --help show this help message and exit --gene_type {ighv,iglv,trav,igkv,trbv,trdv,trgv} Specify which genes to target --output_dir OUTPUT_DIR Path to output directory. Outputs txt file of allele calls with prefix matching input BAM file name. --ref REF Path to the reference FASTA to decode CRAM files. Option is not used if bam_path is not a CRAM. --hg37 Flag if BAM mapped to GRCh37 not GRCh38 --solver {gurobi,or-tools} Choose ilp solver --bwa BWA path to bwa executible if not in $PATH --max_copy MAX_COPY Maximum number of allele copies to call --landmarks_per_group LANDMARKS_PER_GROUP Number of landmarks per group to use (default = 6) --landmark_groups LANDMARK_GROUPS Number of landmark groups to use (default = 6) --stdev_coeff STDEV_COEFF Standard deviation scaling coefficient (default = 1.5) --seq_error_rate SEQ_ERROR_RATE Expected sequence error rate (default = 0.02) --solver_time_limit SOLVER_TIME_LIMIT Time limit for ILP solver in hours --debug_log_path DEBUG_LOG_PATH Path to write log --write_cache_path WRITE_CACHE_PATH Specific location and name of allele db sam mapping cache --threads THREADS Max number of threads to use --no_coverage_estimation Disables empirical coverage --save_extracted_reads Save the extracted reads FASTA file instead of deleting it after use --solution_precision SOLUTION_PRECISION Optimality gap parameter for the solver, interger value: 1e-{solution_precision} --no_vcf Do not write VCF files for novel variants --no_read_assignment Do not write read assignment files --multi_band_solutions Calculate and write multi band solutions
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务