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
fixed an error where the read mate key in SplitNCigarReads was not sufficiently strict about readnames causing cigar errors #6909
Conversation
Travis reported job failures from build 31916
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me. Test are broken for mysterious reasons right? What's with the sudos? Did you test what happens if someone has illegal read names? I'm just curious if we ban it or it just silently goes through and breaks stuff.
.travis.yml
Outdated
@@ -110,14 +110,14 @@ install: | |||
elif [[ $TEST_DOCKER == true ]]; then | |||
echo "Skip the install because we're doing a docker build"; | |||
else | |||
./gradlew assemble; | |||
./gradlew installDist; | |||
sudo ./gradlew assemble; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
@VisibleForTesting | ||
static String makeKey(String name, boolean firstOfPair, int mateStart) { | ||
// NOTE: We use the '@' character here because it is explicitly forbidden for use in read names by the SAM Spec and we don't want to risk accidental matches across read pairs | ||
return name + "@" + (firstOfPair ? 1 : 0) + "@" + mateStart; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -201,6 +201,20 @@ public void testMappingReadMateRepair() { | |||
Assert.assertEquals(read2.getMateStart(), 10003); | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamesemery Have you tested what happens if you add a read with a @s in the name which could recreate the problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge when tests are passing.
85cf539
to
be2f870
Compare
be2f870
to
fdb6f8e
Compare
Travis reported job failures from build 32069
|
…fficiently strict about readnames causing cigar errors
fdb6f8e
to
034e18e
Compare
Fixes #6776