Skip to content
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

EVA-3667 minor updates for helping in lowercase nucleotide remediation script #200

Merged
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
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
Loading