Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Sep 30, 2024
1 parent 48c7dd6 commit 614c72c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<artifactId>eva-pipeline</artifactId>
<version>2.9.8-SNAPSHOT</version>

<packaging>jar</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -177,9 +178,13 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ public HgvsMongo(String type, String name) {
this.type = type;
this.name = name;
}

public String getName() {
return name;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ public class VariantSourceEntryMongo {
// Spring empty constructor
}

public VariantSourceEntryMongo(String fileId, String studyId, String[] alternates, BasicDBObject attrs, String format, BasicDBObject samp) {
this.fileId = fileId;
this.studyId = studyId;
if (alternates != null && alternates.length > 0) {
this.alternates = Arrays.stream(alternates)
.map(a -> a.toUpperCase())
.collect(Collectors.toList())
.toArray(new String[0]);
}
this.attrs = attrs;
this.format = format;
this.samp = samp;
}

public VariantSourceEntryMongo(String fileId, String studyId, String[] alternates, Map<String, String> attributes) {
this.fileId = fileId;
this.studyId = studyId;
Expand Down Expand Up @@ -193,4 +207,8 @@ public String[] getAlternates() {
public BasicDBObject getAttrs() {
return attrs;
}

public String getFormat() {
return format;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ public class VariantStatsMongo {
//Empty constructor for spring
}

public VariantStatsMongo(String studyId, String fileId, String cohortId, float maf, float mgf, String mafAllele, String mgfGenotype, int missingAlleles, int missingGenotypes, Map<String, Integer> numGt) {
this.studyId = studyId;
this.fileId = fileId;
this.cohortId = cohortId;
this.maf = maf;
this.mgf = mgf;
this.mafAllele = mafAllele;
this.mgfGenotype = mgfGenotype;
this.missingAlleles = missingAlleles;
this.missingGenotypes = missingGenotypes;
this.numGt = numGt;
}

public VariantStatsMongo(String studyId, String fileId, String cohortId, VariantStats stats) {
this.studyId = studyId;
this.fileId = fileId;
Expand Down

0 comments on commit 614c72c

Please sign in to comment.