Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Zachary Heins <zackheins@gmail.com>
- Loading branch information
Showing
8 changed files
with
546 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/main/java/org/cbio/gdcpipeline/model/ensemblmap/EnsemblMap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package org.cbio.gdcpipeline.model.ensemblmap; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ | ||
"mappings" | ||
}) | ||
public class EnsemblMap { | ||
@JsonProperty("mappings") | ||
private List<Mapping> mappings = new ArrayList<Mapping>(); | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
/** | ||
* No args constructor for use in serialization | ||
* | ||
*/ | ||
public EnsemblMap() {} | ||
|
||
/** | ||
* | ||
* @param mappings | ||
*/ | ||
public EnsemblMap(List<Mapping> mappings) { | ||
super(); | ||
this.mappings = mappings; | ||
} | ||
|
||
@JsonProperty("mappings") | ||
public List<Mapping> getMappings() { | ||
return mappings; | ||
} | ||
|
||
@JsonProperty("mappings") | ||
public void setMappings(List<Mapping> mappings) { | ||
this.mappings = mappings; | ||
} | ||
|
||
public EnsemblMap withMappings(List<Mapping> mappings) { | ||
this.mappings = mappings; | ||
return this; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
public EnsemblMap withAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
return this; | ||
} | ||
} |
166 changes: 166 additions & 0 deletions
166
src/main/java/org/cbio/gdcpipeline/model/ensemblmap/Mapped.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
package org.cbio.gdcpipeline.model.ensemblmap; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ | ||
"end", | ||
"assembly", | ||
"coord_system", | ||
"strand", | ||
"start", | ||
"seq_region_name" | ||
}) | ||
public class Mapped { | ||
@JsonProperty("end") | ||
private Integer end; | ||
@JsonProperty("assembly") | ||
private String assembly; | ||
@JsonProperty("coord_system") | ||
private String coordSystem; | ||
@JsonProperty("strand") | ||
private Integer strand; | ||
@JsonProperty("start") | ||
private Integer start; | ||
@JsonProperty("seq_region_name") | ||
private String seqRegionName; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
/** | ||
* No args constructor for use in serialization | ||
* | ||
*/ | ||
public Mapped() {} | ||
|
||
/** | ||
* | ||
* @param start | ||
* @param assembly | ||
* @param strand | ||
* @param seqRegionName | ||
* @param coordSystem | ||
* @param end | ||
*/ | ||
public Mapped(Integer end, String assembly, String coordSystem, Integer strand, Integer start, String seqRegionName) { | ||
super(); | ||
this.end = end; | ||
this.assembly = assembly; | ||
this.coordSystem = coordSystem; | ||
this.strand = strand; | ||
this.start = start; | ||
this.seqRegionName = seqRegionName; | ||
} | ||
|
||
@JsonProperty("end") | ||
public Integer getEnd() { | ||
return end; | ||
} | ||
|
||
@JsonProperty("end") | ||
public void setEnd(Integer end) { | ||
this.end = end; | ||
} | ||
|
||
public Mapped withEnd(Integer end) { | ||
this.end = end; | ||
return this; | ||
} | ||
|
||
@JsonProperty("assembly") | ||
public String getAssembly() { | ||
return assembly; | ||
} | ||
|
||
@JsonProperty("assembly") | ||
public void setAssembly(String assembly) { | ||
this.assembly = assembly; | ||
} | ||
|
||
public Mapped withAssembly(String assembly) { | ||
this.assembly = assembly; | ||
return this; | ||
} | ||
|
||
@JsonProperty("coord_system") | ||
public String getCoordSystem() { | ||
return coordSystem; | ||
} | ||
|
||
@JsonProperty("coord_system") | ||
public void setCoordSystem(String coordSystem) { | ||
this.coordSystem = coordSystem; | ||
} | ||
|
||
public Mapped withCoordSystem(String coordSystem) { | ||
this.coordSystem = coordSystem; | ||
return this; | ||
} | ||
|
||
@JsonProperty("strand") | ||
public Integer getStrand() { | ||
return strand; | ||
} | ||
|
||
@JsonProperty("strand") | ||
public void setStrand(Integer strand) { | ||
this.strand = strand; | ||
} | ||
|
||
public Mapped withStrand(Integer strand) { | ||
this.strand = strand; | ||
return this; | ||
} | ||
|
||
@JsonProperty("start") | ||
public Integer getStart() { | ||
return start; | ||
} | ||
|
||
@JsonProperty("start") | ||
public void setStart(Integer start) { | ||
this.start = start; | ||
} | ||
|
||
public Mapped withStart(Integer start) { | ||
this.start = start; | ||
return this; | ||
} | ||
|
||
@JsonProperty("seq_region_name") | ||
public String getSeqRegionName() { | ||
return seqRegionName; | ||
} | ||
|
||
@JsonProperty("seq_region_name") | ||
public void setSeqRegionName(String seqRegionName) { | ||
this.seqRegionName = seqRegionName; | ||
} | ||
|
||
public Mapped withSeqRegionName(String seqRegionName) { | ||
this.seqRegionName = seqRegionName; | ||
return this; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
public Mapped withAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
return this; | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
src/main/java/org/cbio/gdcpipeline/model/ensemblmap/Mapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
package org.cbio.gdcpipeline.model.ensemblmap; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ | ||
"original", | ||
"mapped" | ||
}) | ||
public class Mapping { | ||
|
||
@JsonProperty("original") | ||
private Original original; | ||
@JsonProperty("mapped") | ||
private Mapped mapped; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
/** | ||
* No args constructor for use in serialization | ||
* | ||
*/ | ||
public Mapping() {} | ||
|
||
/** | ||
* | ||
* @param original | ||
* @param mapped | ||
*/ | ||
public Mapping(Original original, Mapped mapped) { | ||
super(); | ||
this.original = original; | ||
this.mapped = mapped; | ||
} | ||
|
||
@JsonProperty("original") | ||
public Original getOriginal() { | ||
return original; | ||
} | ||
|
||
@JsonProperty("original") | ||
public void setOriginal(Original original) { | ||
this.original = original; | ||
} | ||
|
||
public Mapping withOriginal(Original original) { | ||
this.original = original; | ||
return this; | ||
} | ||
|
||
@JsonProperty("mapped") | ||
public Mapped getMapped() { | ||
return mapped; | ||
} | ||
|
||
@JsonProperty("mapped") | ||
public void setMapped(Mapped mapped) { | ||
this.mapped = mapped; | ||
} | ||
|
||
public Mapping withMapped(Mapped mapped) { | ||
this.mapped = mapped; | ||
return this; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
public Mapping withAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
return this; | ||
} | ||
} |
Oops, something went wrong.