Skip to content
代码片段 群组 项目
提交 d95e8e6b 编辑于 作者: Alec Wysoker's avatar Alec Wysoker
浏览文件

Clearer error message when paired reads but SECOND_END_FASTQ is not specified.

上级 9a461661
无相关合并请求
......@@ -144,8 +144,12 @@ public class SamToFastq extends CommandLineProgram {
} else {
assertPairedMates(firstRecord, currentRecord);
if (OUTPUT_PER_RG && fq.size() == 1) {
fq.add(factory.newWriter(makeReadGroupFile(currentRecord.getReadGroup(), "_2")));
if (fq.size() == 1) {
if (OUTPUT_PER_RG) {
fq.add(factory.newWriter(makeReadGroupFile(currentRecord.getReadGroup(), "_2")));
} else {
throw new PicardException("Input contains paired reads but no SECOND_END_FASTQ specified.");
}
}
final SAMRecord read1 =
......
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册