smehringer / SViper

Swipe your Structural Variants called on long (ONT/PacBio) reads with short exact (Illumina) reads.
BSD 3-Clause "New" or "Revised" License
32 stars 8 forks source link

Check first if SVLEN=- exists. #10

Closed joshuak94 closed 5 years ago

joshuak94 commented 5 years ago

Currently, the regex for SVLEN will not replace a negative number and just appends. You end up with something like "SVLEN=99-100", where "SVLEN=-100" was the original, and it should be "SVLEN=-99" afterwards.

This pull request changes it such that it first performs a regex search for the presence of the negative, and if it doesn't find it, then does it without the negative.

smehringer commented 5 years ago

Can you please rebase the commit on the current master?

joshuak94 commented 5 years ago

@smehringer Done!

smehringer commented 5 years ago

sorry. please rebase again :see_no_evil:

joshuak94 commented 5 years ago

Haha, done again!

smehringer commented 5 years ago

yay. travis works