-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paired-end pileup with annotation file - question #58
Comments
Would do you mean by annotation file? A fasta reference via "-R REF-FASTA"? Or you mean R1 maps to chr1 and R2 maps to chr2 or is not mapped. In that case JACUAS2 pileup "will count what is there". The relevant part of the source code is in public boolean isValid(SAMRecord samRecord) {
if (! samRecord.getReadUnmappedFlag()
&& ! samRecord.getNotPrimaryAlignmentFlag() // ignore non-primary alignments CHECK
&& (mapq < 0 || mapq >= getMinMAPQ()) // filter by mapping quality
&& (getFilterFlags() == 0 || (getFilterFlags() > 0 && ((samRecord.getFlags() & getFilterFlags()) == 0)))
&& (getRetainFlags() == 0 || (getRetainFlags() > 0 && ((samRecord.getFlags() & getRetainFlags()) > 0)))
&& errors == null // isValid is expensive
) { // only store valid records that contain mapped reads
// custom filter
for (final MaxValueSamTagFilter samTagFilter : getSamTagFilters()) {
if (samTagFilter.filter(samRecord)) {
return false;
}
}
// no errors found
return true;
}
// print error messages
if (errors != null) {
for (SAMValidationError error : errors) {
AbstractTool.getLogger().addError(error.toString());
}
}
// something went wrong
return false; |
By annotation I mean bed file, the |
Are you missing some reads when you use |
Not that I'm aware of, I just wanted to make sure I understood how paired-end reads are counted when mapped across defined regions. Thanks! |
Dear JACUSA2 team,
When using
pileup
with paired-end alignments and passing an annotation file, if R1 maps within one annotation but R2 maps outside (either in a different annotation or no annotation), how are R1/R2 counted? Is there a way this can be controlled?The text was updated successfully, but these errors were encountered: