Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,18 @@
</execution>
</executions>
</plugin>

<!--
Use a newer version of the plugin to avoid long build times on
machines with slow Unix group lookups
https://www.mail-archive.com/issues@maven.apache.org/msg95302.html
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>

</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public void processElement(ProcessContext context) {
List<Variant> blockRecords = new LinkedList<>();

for (Variant record : records) {
Variant updatedRecord = record.clone();
if (!VariantUtils.IS_NON_VARIANT_SEGMENT.apply(updatedRecord)) {
if (!VariantUtils.IS_NON_VARIANT_SEGMENT.apply(record)) {
Variant updatedRecord = record.clone();
// TODO: determine and implement the correct criteria for overlaps of non-SNP variants
if (VariantUtils.IS_SNP.apply(updatedRecord)) {
for (Iterator<Variant> iterator = blockRecords.iterator(); iterator.hasNext();) {
Expand All @@ -200,7 +200,7 @@ public void processElement(ProcessContext context) {
}
context.output(updatedRecord);
} else {
blockRecords.add(updatedRecord);
blockRecords.add(record);
}
}
}
Expand Down