-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clinical sample attributes metadata support
- Loading branch information
Showing
5 changed files
with
45 additions
and
5 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
14 changes: 14 additions & 0 deletions
14
src/main/java/org/cbioportal/file/model/ClinicalSampleAttributesMetadata.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,14 @@ | ||
package org.cbioportal.file.model; | ||
|
||
public record ClinicalSampleAttributesMetadata( | ||
String cancerStudyIdentifier, | ||
String dataFilename | ||
) implements GenericStudyDataDescriptor { | ||
public String geneticAlterationType() { | ||
return "CLINICAL"; | ||
} | ||
|
||
public String datatype() { | ||
return "SAMPLE_ATTRIBUTES"; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/org/cbioportal/file/model/GenericStudyDataDescriptor.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,7 @@ | ||
package org.cbioportal.file.model; | ||
|
||
public interface GenericStudyDataDescriptor extends StudyRelated { | ||
String geneticAlterationType(); | ||
String datatype(); | ||
String dataFilename(); | ||
} |
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,5 @@ | ||
package org.cbioportal.file.model; | ||
|
||
public interface StudyRelated { | ||
String cancerStudyIdentifier(); | ||
} |
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