Skip to content

Commit

Permalink
Update DbSnpAlleleParser to only return Alleles with frequency data.
Browse files Browse the repository at this point in the history
  • Loading branch information
julesjacobsen committed Feb 13, 2024
1 parent 099175c commit 22ef11f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ List<Allele> parseInfoField(List<Allele> alleles, String info) {
}
}
}
return alleles;
return alleles.stream().filter(allele -> !allele.getFrequencies().isEmpty()).toList();
}

// ##INFO=<ID=CAF,Number=.,Type=String,Description="An ordered, comma delimited list of allele frequencies based on 1000Genomes, starting with the reference allele followed by alternate alleles as ordered in the ALT column. Where a 1000Genomes alternate allele is not in the dbSNPs alternate allele set, the allele is added to the ALT column. The minor allele is the second largest value in the list, and was previuosly reported in VCF as the GMAF. This is the GMAF reported on the RefSNP and EntrezSNP pages and VariationReporter">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,26 +242,6 @@ CREATE INDEX human_gene_symbol_2
CREATE INDEX entrez_id_2
ON human2fish_orthologs (entrez_id);

/*
* The Exomiser - A tool to annotate and prioritize genomic variants
*
* Copyright (c) 2016-2020 Queen Mary University of London.
* Copyright (c) 2012-2016 Charité Universitätsmedizin Berlin and Genome Research Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

--
-- TOC entry 1854 (class 1259 OID 16471)
-- Name: mgi_gene_id; Type: INDEX; Schema: public; Owner: -
Expand Down

0 comments on commit 22ef11f

Please sign in to comment.