mutect2报错:More than two reads with the same name found

今天跑mutect2出现报错:More than two reads with the same name found.  Using two reads randomly to combine as a fragment.找到两个以上具有相同名称的读取。使用两次随机读取组合为片段

这个报错的意思是在bam文件中有相同名称的reads

怀疑代码写错,把两个输入文件写成一样了,查看muect2脚本:

果然大意了,写了两个DOX4A

最后顺便分享下mutect2

gatk Mutect2 -R $genome -I $RNA_bam_list \
    -I $DNA_bam \
    -normal $normal \
    -O $prefix.temp.vcf

  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Here's an example program that reads the data from the "equipment.txt" file and displays each hospital with the number of items needed to make the number of masks and gowns the same: ```c++ #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; int main() { ifstream file("equipment.txt"); string line; // Read each line of the file while (getline(file, line)) { stringstream ss(line); string hospital; int masks, gowns; // Parse the line into hospital name, number of masks, and number of gowns getline(ss, hospital, ';'); ss >> masks; ss.ignore(); ss >> gowns; // Calculate the number of items needed to make masks and gowns the same int diff = abs(masks - gowns); int total = masks + gowns; int needed = total / 2 - min(masks, gowns); // Display the results cout << hospital << ": Needs " << needed << " more of "; if (masks < gowns) { cout << "masks\n"; } else { cout << "gowns\n"; } } // Close the file file.close(); return 0; } ``` In this program, we first create an object of the `ifstream` class named "file" and pass the name of the file we want to read from as an argument to the constructor. Then, we read each line of the file using the `getline()` function and parse it into the hospital name, number of masks, and number of gowns using a `stringstream`. Next, we calculate the number of items needed to make masks and gowns the same by finding the absolute difference between the two and dividing the total by 2, then subtracting the lower number of masks or gowns. Finally, we display the results by printing the hospital name and the number of items needed to make the two numbers the same, along with whether more masks or gowns are needed. Note that we use the `abs()` function to ensure that the difference between masks and gowns is always positive, regardless of which number is greater.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值