forked from virusseq/muse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fields and fix number templating bug (virusseq#81)
* add two new fields * update docker setup * fix number templating * update song schema to fixed one * check for integer and float separately and fmt * clean up
- Loading branch information
jaserud
authored
Aug 10, 2021
1 parent
5920467
commit e1da65b
Showing
11 changed files
with
97 additions
and
59 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
study_id specimen collector sample ID sample collected by sequence submitted by sample collection date sample collection date null reason geo_loc_name (country) geo_loc_name (state/province/territory) organism fasta header name purpose of sampling purpose of sampling details anatomical material anatomical part body product environmental material environmental site collection device collection method host (scientific name) host disease host age host age null reason host age unit host age bin host gender purpose of sequencing purpose of sequencing details sequencing instrument sequencing protocol raw sequence data processing method dehosting method consensus sequence software name consensus sequence software version breadth of coverage value depth of coverage value reference genome accession gene name diagnostic pcr Ct value bioinformatics protocol isolate | ||
COVIDPR Qc-L00210314 Not Provided Laboratoire de santé publique du Québec (LSPQ) 2021-03-01 Canada Quebec Severe acute respiratory syndrome coronavirus 2 Canada/Qc-L00210314/2020 Cluster/Outbreak investigation Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Homo sapiens COVID-19 41 year 40 - 49 Female Baseline surveillance (random sampling) Not Provided Oxford Nanopore 1D_DNA_MinION Trimmomatic v. 0.38 Nanostripper bcftools 1 95% 400x NC_045512.2 E gene (orf4) 21 | ||
COVIDPR Qc-L00212401 Not Provided Laboratoire de santé publique du Québec (LSPQ) 2021-03-04 Canada Quebec Severe acute respiratory syndrome coronavirus 2 Canada/Qc-L00212401/2020 Cluster/Outbreak investigation Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Homo sapiens COVID-19 42 year 40 - 49 Male Baseline surveillance (random sampling) Not Provided Oxford Nanopore 1D_DNA_MinION Trimmomatic v. 0.38 Nanostripper bcftools 1 98% 400x NC_045512.2 E gene (orf4) 21 | ||
study_id specimen collector sample ID sample collected by sequence submitted by sample collection date sample collection date null reason geo_loc_name (country) geo_loc_name (state/province/territory) organism fasta header name purpose of sampling purpose of sampling details anatomical material anatomical part body product environmental material environmental site collection device collection method host (scientific name) host disease host age host age null reason host age unit host age bin host gender purpose of sequencing purpose of sequencing details sequencing instrument sequencing protocol raw sequence data processing method dehosting method consensus sequence software name consensus sequence software version breadth of coverage value depth of coverage value reference genome accession gene name diagnostic pcr Ct value bioinformatics protocol isolate GISAID accession diagnostic pcr Ct value null reason | ||
COVIDPR MUSE-1111 Not Provided Laboratoire de santé publique du Québec (LSPQ) 2021-03-01 Canada Quebec Severe acute respiratory syndrome coronavirus 2 Canada/Qc-L00210314/2020 Cluster/Outbreak investigation Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Homo sapiens COVID-19 41 year 40 - 49 Male Baseline surveillance (random sampling) Not Provided Oxford Nanopore 1D_DNA_MinION Trimmomatic v. 0.38 Nanostripper bcftools 1 95% 400x NC_045512.2 E gene (orf4) 21 | ||
COVIDPR MUSE-2222 Not Provided Laboratoire de santé publique du Québec (LSPQ) 2021-03-04 Canada Quebec Severe acute respiratory syndrome coronavirus 2 Canada/Qc-L00212401/2020 Cluster/Outbreak investigation Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Not Provided Homo sapiens COVID-19 42 year 40 - 49 Female Baseline surveillance (random sampling) Not Provided Oxford Nanopore 1D_DNA_MinION Trimmomatic v. 0.38 Nanostripper bcftools 1 98% 400x NC_045512.2 E gene (orf4) 21 |
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
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
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
18 changes: 18 additions & 0 deletions
18
src/main/java/org/cancogenvirusseq/muse/utils/StringUtils.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,18 @@ | ||
package org.cancogenvirusseq.muse.utils; | ||
|
||
import java.util.regex.Pattern; | ||
import lombok.experimental.UtilityClass; | ||
|
||
@UtilityClass | ||
public class StringUtils { | ||
private static final Pattern INTEGER_PATTERN = Pattern.compile("^-?\\d+$"); | ||
private static final Pattern DOUBLE_PATTERN = Pattern.compile("^-?\\d+\\.\\d+$"); | ||
|
||
public static Boolean isDouble(String s) { | ||
return DOUBLE_PATTERN.matcher(s).matches(); | ||
} | ||
|
||
public static Boolean isInteger(String s) { | ||
return INTEGER_PATTERN.matcher(s).matches(); | ||
} | ||
} |
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
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
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
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
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