Skip to content

Commit

Permalink
Make chimeric read filter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhess committed Sep 13, 2021
1 parent df19552 commit f22f927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ private LocusReadPile filterReads(final ReferenceContext ref, final ReadBackedPi

// is this a discordant read pair?
// TODO: add option to disable this filter
if(read.getMateReferenceIndex() != read.getReferenceIndex()) {
if(MTAC.EXCLUDE_CHIMERIC_READS && read.getMateReferenceIndex() != read.getReferenceIndex()) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public class MuTectArgumentCollection {
@Argument(fullName = "heavily_clipped_read_fraction", required = false, doc = "if this fraction or more of the bases in a read are soft/hard clipped, do not use this read for mutation calling")
public float HEAVILY_CLIPPED_READ_FRACTION = 0.30f;

@Argument(fullName = "exclude_chimeric_reads", required = false, doc = "exclude chimeric reads from processing")
public boolean EXCLUDE_CHIMERIC_READS = false;

@Argument(fullName = "fraction_mapq0_threshold", required = false, doc = "threshold for determining if there is relatedness between the alt and ref allele read piles")
public float FRACTION_MAPQ0_THRESHOLD = 0.5f;

Expand Down

0 comments on commit f22f927

Please sign in to comment.