首页 > 其他分享 >minimap2安装使用

minimap2安装使用

时间:2023-11-02 13:05:46浏览次数:32  
标签:index 安装 minimap2 使用 2.17 query ref alignment

官网:

https://github.com/lh3/minimap2

https://github.com/lh3/minimap2/releases/tag/v2.17

 

Download and install:

wget https://github.com/lh3/minimap2/releases/download/v2.17/minimap2-2.17_x64-linux.tar.bz2
tar -jxvf minimap2-2.17_x64-linux.tar.bz2
cd minimap2-2.17_x64-linux/
/home/software/minimap2/minimap2-2.17_x64-linux/minimap2

 

General usage

Without any options, minimap2 takes a reference database and a query sequence file as input and produce approximate mapping, without base-level alignment (i.e. no CIGAR), in the PAF format:

minimap2 ref.fa query.fq > approx-mapping.paf

You can ask minimap2 to generate CIGAR at the cg tag of PAF with:

minimap2 -c ref.fa query.fq > alignment.paf

or to output alignments in the SAM format:

minimap2 -a ref.fa query.fq > alignment.sam

Minimap2 seamlessly works with gzip'd FASTA and FASTQ formats as input. You don't need to convert between FASTA and FASTQ or decompress gzip'd files first.

For the human reference genome, minimap2 takes a few minutes to generate a minimizer index for the reference before mapping. To reduce indexing time, you can optionally save the index with option -d and replace the reference sequence file with the index file on the minimap2 command line:

minimap2 -d ref.mmi ref.fa                     # indexing
minimap2 -a ref.mmi reads.fq > alignment.sam   # alignment

Importantly, it should be noted that once you build the index, indexing parameters such as -k, -w, -H and -I can't be changed during mapping. If you are running minimap2 for different data types, you will probably need to keep multiple indexes generated with different parameters. This makes minimap2 different from BWA which always uses the same index regardless of query data types.

 

REF:

https://github.com/lh3/minimap2#install

 



标签:index,安装,minimap2,使用,2.17,query,ref,alignment
From: https://blog.51cto.com/emanlee/8143874

相关文章

  • samtools 安装使用
    官网:https://github.com/samtools/samtoolshttps://github.com/samtools/samtools/releaseshttps://github.com/samtools/samtools/blob/develop/INSTALL 安装:wgethttps://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2tar-jxvfsamtools-1.9.tar......
  • Doris安装及使用
    Doris简介ApacheDoris是一个基于MPP架构的高性能、实时的分析型数据库,以极速易用的特点被人们所熟知,仅需亚秒级响应时间即可返回海量数据下的查询结果,不仅可以支持高并发的点查询场景,也能支持高吞吐的复杂分析场景。基于此,ApacheDoris能够较好的满足报表分析、即席查询、统一......
  • javamail发送附件DataSource使用文件流解决方案
    问题:在使用james邮件服务器发送邮件时,附件是存储在华为云服务器上的,只能通过ApacheHttpClient去下载,存储在FTP上的文件同样会碰到这个问题。API上邮件添加附件的方法:/*************1.本地文件*************///将本地文件作为附件DataSourcedataSource=newFileDataSourc......
  • ckeditor富文本编辑器的使用和图片上传,复制粘贴图片上传
    项目开发需要用到在线编辑和图片上传,最终讨论使用ckeditor,原因就是其丰富的API。考虑到最新版本ckeditor5可能不够稳定,我们选择使用ckedtior4.9.2版本。官网链接:ckeditor官网特别注意:下面截图中url中的/editor/upload/1?其中的/1是根据自己需求添加不同类型数据上传时候的区分,......
  • Thinkpad 智能控温系统TPFanControl软件安装教程
    由于原来的tpfancontrol.com已经下线了,现在的TPFanControl可以到https://thinkwiki.de/TPFanControl里面进行下载,这里面复制了之前TPFanControl.com的页面,直接拉到下面点击下载: 下载安装后如果发现乱码,可以在页面FAQ下找到解决乱码的方案:问题描述是,在远东地区的windows......
  • 使用docker 部署testlink
    docker部署testlink1、拉取db镜像:dockerpullbitnami/mariadb 2、拉取testlink镜像:dockerpullbitnami/testlink3、容器网络:docker networkcreatetestlink4、查看网络:dockernetworkls 4.1、删除网络 dockernetworkrm<networkname>5、创建数据库卷......
  • wsl系统修改安装目录
    #显示所有wsl分发子系统wsl-l--all-v#导出系统到其他磁盘wsl--exportUbuntu-20.04D:\ubuntu20.04.tar#注销当前分发版本wsl--unregisterUbuntu-20.04#重新导入wsl--importUbuntu-20.04D:\wsl\ubuntuD:\ubuntu20.04.tar--version2#设置默认登陆用户为安......
  • k8s中使用prometheus
    使用方法gitclonehttps://github.com/prometheus-operator/kube-prometheus.gitcdkube-prometheus#先部署kube-prometheus的CRD和创建monitoringnamespacekubectlapply-fmanifests/setup/#在这一步直接apply可能会报错,具体错误如下:#TheCustomResourceDef......
  • linux安装maven
    一目的linux安装maven 二准备1.从官网下载maven包,注意和jdk版本匹配 三步骤1.将maven包上传到服务器2.解压包tar-zxvfapache-maven-3.8.8-bin.tar.gz3.测试/work/maven/apache-maven-3.8.8/bin/mvn/work/maven/apache-maven-3.8.8/bin/mvn-version......
  • 使用async和await获取axios的数据注意事项
    使用async和await获取axios的数据的注意事项确定正确使用asyncfunctiongetInfo(){constres=awaitaxios.get('http://example.com')returnres.data}上述代码等同于asyncfunctiongetInfo(){constresult=(awaitaxios.get('http://example.com')).data......